Source wrapper that holds a "std::unique_ptr" to the underlying source. More...
#include <staticlib/io/unique_source.hpp>
Public Member Functions | |
| unique_source (Source *src) | |
| Constructor. | |
| unique_source (const unique_source &) | |
| Deleted copy constructor. | |
| unique_source & | operator= (const unique_source &) |
| Deleted copy assignment operator. | |
| unique_source (unique_source &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| unique_source & | operator= (unique_source &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | read (span< char > span) |
| Read implementation delegated to the underlying source. | |
| Source & | get_source () |
| Underlying source accessor. | |
Source wrapper that holds a "std::unique_ptr" to the underlying source.
|
inlineexplicit |
Constructor.
| src | input source |
| staticlib::io::unique_source< Source >::unique_source | ( | const unique_source< Source > & | ) |
Deleted copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Underlying source accessor.
| unique_source& staticlib::io::unique_source< Source >::operator= | ( | const unique_source< Source > & | ) |
Deleted copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Read implementation delegated to the underlying source.
| span | buffer span |
1.8.1.2