Class fill_guard

Synopsis

#include <include/cpptoml.h>

class fill_guard

Description

No description yet.

Methods

fill_guard
~fill_guard

Source

Lines 168-184 in include/cpptoml.h.

class fill_guard
{
  public:
    fill_guard(std::ostream& os) : os_(os), fill_{os.fill()}
    {
        // nothing
    }

    ~fill_guard()
    {
        os_.fill(fill_);
    }

  private:
    std::ostream& os_;
    std::ostream::char_type fill_;
};





Add Discussion as Guest

Log in