24 #ifndef STATICLIB_IO_SHARED_SINK_HPP
25 #define STATICLIB_IO_SHARED_SINK_HPP
30 #include "staticlib/config.hpp"
40 template <
typename Sink>
45 std::shared_ptr<Sink> sink;
54 sink(std::move(sink)) { }
81 sink(std::move(other.sink)) { }
90 sink = std::move(other.sink);
101 return sink->write(span);
110 return sink->flush();
130 template <
typename Sink>