24 #ifndef STATICLIB_IO_COUNTING_SINK_HPP
25 #define STATICLIB_IO_COUNTING_SINK_HPP
29 #include "staticlib/config.hpp"
40 template<
typename Sink>
59 sink(std::move(sink)) { }
82 sink(std::move(other.sink)),
94 sink = std::move(other.sink);
107 std::streamsize res = sink.write(span);
108 if (sl::support::is_sizet(res)) {
109 count +=
static_cast<size_t>(res);
150 template <
typename Sink,
151 class =
typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
163 template <
typename Sink>