boost::capy::any_write_stream::rebind

Rebind to a new stream after move.

Synopsis

template<WriteStream S>
void
rebind(S& new_stream) noexcept;

Description

Updates the internal pointer to reference a new stream object. Used by owning wrappers after move assignment when the owned object has moved to a new location.

Terminates if called with a stream of different type than the original.

Parameters

Name Description

new_stream

The new stream to bind to. Must be the same type as the original stream.

Created with MrDocs