folly::variadic_constant_of_fn

variadic_constant_of variadic_constant_of_fn

Synopsis

Declared in <folly/Utility.h>

template<auto Value>
struct variadic_constant_of_fn;

Description

An invocable object and type that has no side-effects - that does nothing when invoked regardless of the arguments with which it is invoked - and that returns a constant value.

Type Aliases

NameDescription
value_type Type of the constant value returned.

Member Functions

NameDescription
operator() Returns the constant value regardless of the arguments passed.

Static Data Members

NameDescription
value The constant value returned on invocation.