Sink implementation that writes data to the underlying "std::string".
More...
#include <staticlib/io/string_sink.hpp>
Detailed Description
Sink implementation that writes data to the underlying "std::string".
Constructor & Destructor Documentation
| staticlib::io::string_sink::string_sink |
( |
| ) |
|
|
inline |
| staticlib::io::string_sink::string_sink |
( |
std::string && |
str | ) |
|
|
inlineexplicit |
| staticlib::io::string_sink::string_sink |
( |
const string_sink & |
| ) |
|
Deleted copy constructor.
- Parameters
-
| staticlib::io::string_sink::string_sink |
( |
string_sink && |
other | ) |
|
|
inline |
Move constructor.
- Parameters
-
Member Function Documentation
| std::streamsize staticlib::io::string_sink::flush |
( |
| ) |
|
|
inline |
No-op flush implementation.
- Returns
- 0
| std::string& staticlib::io::string_sink::get_string |
( |
| ) |
|
|
inline |
Underlying string accessor.
- Returns
- underlying string
Deleted copy assignment operator.
- Parameters
-
- Returns
- this instance
Move assignment operator.
- Parameters
-
- Returns
- this instance
| std::streamsize staticlib::io::string_sink::write |
( |
span< const char > |
span | ) |
|
|
inline |
Buffered write implementation.
- Parameters
-
- Returns
- number of bytes processed
The documentation for this class was generated from the following file: