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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

cancellation_slot_binder

A call wrapper type to bind a cancellation slot of type CancellationSlot to an object of type T.

template<
    typename T,
    typename CancellationSlot>
class cancellation_slot_binder
Types

Name

Description

argument_type

The type of the function's argument.

cancellation_slot_type

The type of the associated cancellation slot.

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

cancellation_slot_binder [constructor]

Construct a cancellation slot wrapper for the specified object.

Copy constructor.

Construct a copy, but specify a different cancellation slot.

Construct a copy of a different cancellation slot wrapper type.

Construct a copy of a different cancellation slot wrapper type, but specify a different cancellation slot.

Move constructor.

Move construct the target object, but specify a different cancellation slot.

Move construct from a different cancellation slot wrapper type.

Move construct from a different cancellation slot wrapper type, but specify a different cancellation slot.

get

Obtain a reference to the target object.

get_cancellation_slot

Obtain the associated cancellation slot.

operator()

Forwarding function call operator.

~cancellation_slot_binder [destructor]

Destructor.

Requirements

Header: boost/asio/bind_cancellation_slot.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext