Concatenates several like_args lists, mapping each bind_info_t through BindInfoFn.

Synopsis

Declared in <folly/lang/bind/Bind.h>

template<
    typename BindInfoFn,
    typename... Ts>
class merge_update_args
    : public like_args

Description

This is the implementation base for the bind::args modifiers such as constant and const_ref.

Base Classes

Name

Description

like_args

Base class for any type modeling a list of bound args with modifiers.

Type Aliases

Name

Description

binding_list_t

The concatenated binding list with each bind_info_t mapped by BindInfoFn.

Member Functions

Name

Description

merge_update_args [constructor]

Constructors

unsafe_tuple_to_bind

Move out the concatenated tuple of bound values.

Protected Member Functions

Name

Description

~merge_update_args [destructor]

Protected destructor; the type is only used as a base class.

Derived Classes

Name

Description

args<Ts...>

capture

bind::capture() and bind::capture_indirect() work much like other folly::bind modifiers. However, since they're primarily intended for async_closure arguments, you will practically only use them: ‐ alone, for non‐`co_cleanup` arguments; ‐ with bind::in_place() or bind::in_place_with(), for co_cleanup arguments; ‐ with constant(), for either.

capture_const_ref

Sugar for capture{const_ref{...}}, capturing a const reference.

capture_indirect

Binds an async‐closure capture whose pointer‐like value is dereferenced once to expose the underlying object.

capture_mut_ref

Sugar for capture{mut_ref{...}}, capturing a mutable reference.

const_ref

Binding modifier that binds a const reference to each argument.

constant

Binding modifier that makes each argument const.

copy

Binding modifier that passes its arguments as decay‐copied prvalues.

id_arg

A bound‐args list tagged with the identifier string Str.

move

Binding modifier that passes its arguments as rvalue references.

mut

Binding modifier that keeps each argument mutable.

mut_ref

Binding modifier that binds a mutable reference to each argument.

self_id_arg

A bound‐args list tagged with the self‐reference identifier.

Created with MrDocs