- Main Page
- Classes
- Files

# ioflags.hpp

Go to the documentation of this file.

    00001 #ifndef IOFLAGS_HPP_
    00002 #define IOFLAGS_HPP_
    00003
    00015 class ioflags
    00016 {
    00017 public:
    00020   ioflags(std::basic_ios<char>& stream) : stream_(stream), flags_(stream.flags()) {}
    00022   ~ioflags() { stream_.flags(flags_); }
    00023 private:
    00024   std::basic_ios<char>& stream_;
    00025   std::ios_base::fmtflags flags_;
    00026 };
    00027
    00028 #endif