34 #ifndef LIB_IOS_SAVEPOINT_H 35 #define LIB_IOS_SAVEPOINT_H 52 std::ostream& theStream_;
53 std::ios_base::fmtflags prevFlags_;
59 : theStream_{stream_to_capture}
60 , prevFlags_{theStream_.flags()}
61 , fillChar_{theStream_.fill()}
66 theStream_.flags(prevFlags_);
67 theStream_.fill(fillChar_);
Types marked with this mix-in may be moved but not copied.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
RAII helper to capture and restore output stream format settings.