boost::capy::any_stream::any_stream
Construct by taking ownership of a bidirectional stream.
Synopsis
Declared in <boost/capy/io/any_stream.hpp>
template<class S>
requires ReadStream<S> && WriteStream<S> &&
(!std::same_as<std::decay_t<S>, any_stream>)
any_stream(S s);
Description
Allocates storage and moves the stream into this wrapper. The wrapper owns the stream and will destroy it.
Parameters
| Name | Description |
|---|---|
s |
The stream to take ownership of. Must satisfy both ReadStream and WriteStream concepts. |
Created with MrDocs