boost::capy::any_stream::any_stream

Constructors

Synopses

Default constructor.

constexpr
any_stream() = default;

Non‐copyable.

any_stream(any_stream const& other) = delete;

Move constructor.

any_stream(any_stream&& other) noexcept;

Construct by taking ownership of a bidirectional stream.

template<class S>
requires ReadStream<S> && WriteStream<S> &&
            (!std::same_as<std::decay_t<S>, any_stream>)
any_stream(S s);

Construct by wrapping a bidirectional stream without ownership.

template<class S>
requires ReadStream<S> && WriteStream<S>
any_stream(S* s);

Parameters

Name Description

other

The wrapper to move from.

s

The stream to take ownership of. Must satisfy both ReadStream and WriteStream concepts.

Created with MrDocs