24 #ifndef STATICLIB_IO_REFERENCE_SINK_HPP
25 #define STATICLIB_IO_REFERENCE_SINK_HPP
30 #include "staticlib/config.hpp"
40 template <
typename Sink>
45 std::reference_wrapper<Sink> sink;
72 this->sink = other.sink;
82 sink(std::move(other.sink)) { }
91 sink = std::move(other.sink);
102 return sink.get().write(span);
111 return sink.get().flush();
131 template <
typename Sink>