Sink wrapper that holds a "std::unique_ptr" to the underlying sink. More...
#include <staticlib/io/unique_sink.hpp>
Public Member Functions | |
| unique_sink (Sink *sink) | |
| Constructor. | |
| unique_sink (const unique_sink &) | |
| Deleted copy constructor. | |
| unique_sink & | operator= (const unique_sink &) |
| Deleted copy assignment operator. | |
| unique_sink (unique_sink &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| unique_sink & | operator= (unique_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::unique_ptr" to the underlying sink.
|
inlineexplicit |
Constructor.
| sink | destination sink |
| staticlib::io::unique_sink< Sink >::unique_sink | ( | const unique_sink< Sink > & | ) |
Deleted copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Flushes destination sink.
|
inline |
Underlying sink accessor.
| unique_sink& staticlib::io::unique_sink< Sink >::operator= | ( | const unique_sink< Sink > & | ) |
Deleted 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