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

Go to the source code of this file.

Classes

class  staticlib::io::counting_sink< Sink >
 Sink wrapper that counts the number of bytes written through it. More...

Namespaces

namespace  staticlib
namespace  staticlib::io

Functions

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