43 #ifndef LIB_IOS_SAVEPOINT_H 44 #define LIB_IOS_SAVEPOINT_H 61 std::ostream& theStream_;
62 std::ios_base::fmtflags prevFlags_;
68 : theStream_{stream_to_capture}
69 , prevFlags_{theStream_.flags()}
70 , fillChar_{theStream_.fill()}
75 theStream_.flags(prevFlags_);
76 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.