FunctionRef

Synopsis

Declared in <absl/functional/function_ref.h>

template<typename T>
class FunctionRef;

Description

Dummy class declaration to allow the partial specialization based on function types below.

Specializations

Name

Description

FunctionRef<R const(Args...)>

FunctionRef

Deduction Guides

Name

Description

FunctionRef<F>

Deduces a FunctionRef wrapping a function pointer.

FunctionRef<std::remove_pointer_t<decltype(Func)>>

Deduces a FunctionRef wrapping a compile‐time known free function.

FunctionRef<M>

Deduces a FunctionRef wrapping a compile‐time known member pointer.

FunctionRef<R(Args...)>

Deduces a FunctionRef wrapping a compile‐time known free function bound to an object argument.

FunctionRef<std::invoke_result_t<decltype(Func), U&>()>

Deduces a FunctionRef wrapping a compile‐time known member function.

Created with MrDocs