Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

allocator_binder

A call wrapper type to bind an allocator of type Allocator to an object of type T.

template<
    typename T,
    typename Allocator>
class allocator_binder
Types

Name

Description

allocator_type

The type of the associated allocator.

argument_type

The type of the function's argument.

first_argument_type

The type of the function's first argument.

result_type

The return type if a function.

second_argument_type

The type of the function's second argument.

target_type

The type of the target object.

Member Functions

Name

Description

allocator_binder [constructor]

Construct an allocator wrapper for the specified object.

Copy constructor.

Construct a copy, but specify a different allocator.

Construct a copy of a different allocator wrapper type.

Construct a copy of a different allocator wrapper type, but specify a different allocator.

Move constructor.

Move construct the target object, but specify a different allocator.

Move construct from a different allocator wrapper type.

Move construct from a different allocator wrapper type, but specify a different allocator.

get

Obtain a reference to the target object.

get_allocator

Obtain the associated allocator.

operator()

Forwarding function call operator.

~allocator_binder [destructor]

Destructor.

Requirements

Header: boost/asio/bind_allocator.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext