staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Classes | Namespaces | Functions
buffered_sink.hpp File Reference
#include <cstring>
#include <array>
#include <ios>
#include <utility>
#include "staticlib/config.hpp"
#include "staticlib/io/io_exception.hpp"
#include "staticlib/io/reference_sink.hpp"
#include "staticlib/io/span.hpp"

Go to the source code of this file.

Classes

class  staticlib::io::buffered_sink< Sink, buf_size >
 Sink wrapper that buffers the output. More...

Namespaces

namespace  staticlib
namespace  staticlib::io

Functions

template<typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
buffered_sink< Sink > staticlib::io::make_buffered_sink (Sink &&sink)
 Factory function for creating buffered sinks, created sink wrapper will own specified sink.
template<typename Sink >
buffered_sink< reference_sink
< Sink > > 
staticlib::io::make_buffered_sink (Sink &sink)
 Factory function for creating buffered sinks, created sink wrapper will NOT own specified sink.