RTI Connext Modern C++ API  Version 6.0.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rti::util::StreamFlagSaver Class Reference

#include <StreamFlagSaver.hpp>

Detailed Description

RAII utility to save and restore the flags of a std::ostream

Use: void example(std::ostream& out) { rti::util::StreamFlagSaver flag_saver (out); out << std::hex << 33; // ... } // out flags restored


RTI Connext Modern C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc