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

PrevUpHomeNext
connection::connection (2 of 3 overloads)

Initializing constructor with buffer params.

Synopsis
template<
    class... Args,
    class EnableIf = typename std::enable_if<std::is_constructible<Stream, Args...>::value>::type>
connection(
    const buffer_params& buff_params,
    Args&&... args);
Description

As part of the initialization, an internal Stream object is created.

Exception safety

Basic guarantee. Throws if the Stream constructor throws or if memory allocation for internal state fails.

Parameters

Name

Description

buff_params

Specifies initial sizes for internal buffers.

args

Arguments to be forwarded to the Stream constructor.


PrevUpHomeNext