mpqc::FormIO::indentbuf< C > Class Template Reference
Collaboration diagram for mpqc::FormIO::indentbuf< C >:

Documentation

template<typename C = char>
class mpqc::FormIO::indentbuf< C >

auto-indenting streambuf

Follows up \n and \r with the current indentation margin, and replaces \t with the default indentation margin (2 whitespaces).

Template Parameters
Ccharacter type, char or wchar_t

Public Types

using char_type = typename std::basic_streambuf< C >::char_type
 
using int_type = typename std::basic_streambuf< C >::int_type
 
using traits_type = typename std::basic_streambuf< C >::traits_type
 

Public Member Functions

 indentbuf (std::basic_ios< char_type > *ios)
 
 ~indentbuf ()=default
 

Member Typedef Documentation

◆ char_type

template<typename C = char>
using mpqc::FormIO::indentbuf< C >::char_type = typename std::basic_streambuf<C>::char_type

◆ int_type

template<typename C = char>
using mpqc::FormIO::indentbuf< C >::int_type = typename std::basic_streambuf<C>::int_type

◆ traits_type

template<typename C = char>
using mpqc::FormIO::indentbuf< C >::traits_type = typename std::basic_streambuf<C>::traits_type

Constructor & Destructor Documentation

◆ indentbuf()

template<typename C = char>
mpqc::FormIO::indentbuf< C >::indentbuf ( std::basic_ios< char_type > *  ios)

◆ ~indentbuf()

template<typename C = char>
mpqc::FormIO::indentbuf< C >::~indentbuf ( )
default

The documentation for this class was generated from the following files: