folly::bind::ext::bind_as_argument

Forward a bound storage reference as the argument implied by its bind-info category.

Synopsis

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

template<
    auto BI,
    typename StorageRef>
requires std::same_as<decltype(BI), bind_info_t>
constexpr
decltype(auto)
bind_as_argument(StorageRef&& sr);

Return Value

The stored value forwarded per the binding category

Parameters

NameDescription
srStorage reference to forward as an argument