Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit dcea408971.
PrevUpHomeNext
basic_stream::basic_stream (2 of 3 overloads)

Constructor.

Synopsis
template<
    class RatePolicy_,
    class... Args>
basic_stream(
    RatePolicy_&& policy,
    Args&&... args);
Description

This constructor creates the stream with the specified rate policy, and forwards all remaining arguments to the underlying socket. The socket then needs to be open and connected or accepted before data can be sent or received on it.

Parameters

Name

Description

policy

The rate policy object to use. The stream will take ownership of this object by decay-copy.

args

A list of parameters forwarded to the constructor of the underlying socket.


PrevUpHomeNext