absl::make_any

Constructs an any object holding a value of type T (deprecated).

Synopsis

Declared in <absl/types/any.h>

template<
    typename T,
    typename... Args>
[[deprecated]]
constexpr
decltype(std::make_any<T>(std::declval<Args>()...))
make_any(Args&&... args);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

An any holding the constructed value.

Parameters

NameDescription
argsArguments forwarded to std::make_any.