Boost C++ Libraries Home Libraries People FAQ More

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