BloombergLP::bdlf::Bind::Bind

Create a binder for the specified invocable and moved argument list.

Synopsis

Declared in <bdlf_bind.h>

Bind(
    bslmf::ForwardingType<t_FUNC>::Type func,
    bslmf::MovableRef<t_BOUND_TUPLE> list,
    bslma::Allocator* allocator = 0);

Description

Create a Bind object that is bound to the specified func invocable object with the specified argument list list moved into the object. Optionally specify an allocator used to supply memory. If allocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
funcinvocable object to bind
listbound-argument tuple to move from
allocatormemory allocator; null uses the default