staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Classes | Namespaces | Functions
copying_source.hpp File Reference
#include <ios>
#include <utility>
#include "staticlib/config.hpp"
#include "staticlib/io/operations.hpp"
#include "staticlib/io/reference_sink.hpp"
#include "staticlib/io/reference_source.hpp"
#include "staticlib/io/span.hpp"

Go to the source code of this file.

Classes

class  staticlib::io::copying_source< Source, Sink >
 Source wrapper that copies all the data read from it into the sink specified on construction. More...

Namespaces

namespace  staticlib
namespace  staticlib::io

Functions

template<typename Source , typename Sink , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type, class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
copying_source< Source, Sink > staticlib::io::make_copying_source (Source &&source, Sink &&sink)
 Factory function for creating copying sources, created source wrapper will own specified source and sink.
template<typename Source , typename Sink >
copying_source
< reference_source< Source >
, reference_sink< Sink > > 
staticlib::io::make_copying_source (Source &source, Sink &sink)
 Factory function for creating copying sources, created source wrapper will NOT own specified source and sink.