24 #ifndef STATICLIB_IO_COPYING_SOURCE_HPP
25 #define STATICLIB_IO_COPYING_SOURCE_HPP
30 #include "staticlib/config.hpp"
44 template<
typename Source,
typename Sink>
65 sink(std::move(sink)) { }
88 src(std::move(other.src)),
89 sink(std::move(other.sink)) { }
98 src = std::move(other.src);
99 sink = std::move(other.sink);
111 std::streamsize res = src.read(span);
112 if (std::char_traits<char>::eof() != res) {
155 template<
typename Source,
typename Sink,
156 class =
typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type,
157 class = typename std::enable_if<!std::is_lvalue_reference<Sink>::value>::type>
170 template<
typename Source,
typename Sink>
171 copying_source<reference_source<Source>, reference_sink<Sink>>