VCCC  2024.05
VisualCamp Common C++ library
Separator Class Reference

#include <vccc/__log/iomanip.hpp>

+ Inheritance diagram for Separator:

Detailed Description

stream << 1 << 2 << 3; // stream.str() == "123"
stream.str("");
stream << vccc::Separator("FOO") << 1 << 2 << 3; // stream.str() == "1FOO2FOO3"
stream wrapper that supports extended operator overloading
Definition: stream_wrapper.hpp:186
string_type str() const
Equals to stream().str()
Definition: stream_wrapper.hpp:244
Set separator to vccc::BasicStreamWrapper.
Definition: iomanip.hpp:27

Public Member Functions

 Separator (std::string sep)
 
template<typename CharT , typename String , typename Stream >
BasicStreamWrapper< CharT, String, Stream > & operator() (BasicStreamWrapper< CharT, String, Stream > &stream) const
 
- Public Member Functions inherited from StreamManipulator
 StreamManipulator ()=default
 
 ~StreamManipulator ()=default
 

Constructor & Destructor Documentation

◆ Separator()

Separator ( std::string  sep)
inlineexplicit

Member Function Documentation

◆ operator()()

BasicStreamWrapper<CharT, String, Stream>& operator() ( BasicStreamWrapper< CharT, String, Stream > &  stream) const
inline

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