folly::bind::capture_in_place_with

Bind an in-place-constructed capture built by a factory function.

Synopsis

Declared in <folly/coro/safe/BindCaptures.h>

auto
capture_in_place_with(
    auto make_fn,
    auto&&... as);

Description

Sugar for capture{in_place_with(fn, ...)}.

Return Value

A capture binding that in-place-constructs via make_fn.

Parameters

NameDescription
make_fnFactory invoked to construct the captured value.
asArguments forwarded to the factory function.