Sink wrapper that holds a "std::reference_wrapper" to the underlying sink. More...
#include <staticlib/io/reference_sink.hpp>
Public Member Functions | |
| reference_sink (Sink &sink) | |
| Constructor. | |
| reference_sink (const reference_sink &other) | |
| Copy constructor. | |
| reference_sink & | operator= (const reference_sink &other) |
| Copy assignment operator. | |
| reference_sink (reference_sink &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| reference_sink & | operator= (reference_sink &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | write (span< const char > span) |
| Write implementation delegated to the underlying sink. | |
| std::streamsize | flush () |
| Flushes destination sink. | |
| Sink & | get_sink () |
| Underlying sink accessor. | |
Sink wrapper that holds a "std::reference_wrapper" to the underlying sink.
|
inlineexplicit |
Constructor.
| sink | destination sink |
|
inline |
Copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Flushes destination sink.
|
inline |
Underlying sink accessor.
|
inline |
Copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Write implementation delegated to the underlying sink.
| span | buffer span |
1.8.1.2