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

Go to the source code of this file.

Classes

class  staticlib::io::counting_source< Source >
 Source wrapper that counts the number of bytes read through it. More...

Namespaces

namespace  staticlib
namespace  staticlib::io

Functions

template<typename Source , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
counting_source< Source > staticlib::io::make_counting_source (Source &&source)
 Factory function for creating counting sources, created source wrapper will own specified source.
template<typename Source >
counting_source
< reference_source< Source > > 
staticlib::io::make_counting_source (Source &source)
 Factory function for creating counting sources, created source wrapper will NOT own specified source.