llvm::bind_back

bind_back overloads

Synopses

Declared in <llvm/ADT/STLForwardCompat.h>

C++26 bind_back with a compile-time callable.

template<
    auto ConstFn,
    typename... BindArgsT>
constexpr
auto
bind_back(BindArgsT&&... BindArgs);
» more...

C++23 bind_back appends bound arguments to the callable.

template<
    typename FnT,
    typename... BindArgsT>
constexpr
auto
bind_back(
    FnT&& Fn,
    BindArgsT&&... BindArgs);
» more...

Return Value

A function object that appends BindArgs when called.

Parameters

NameDescription
BindArgsArguments to append when the returned object is called.
FnThe callable to bind arguments to.