Casts the value stored in an any object to type T (deprecated).

Synopsis

Declared in <absl/types/any.h>

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

Deprecated. Use of this entity is allowed but discouraged.

Return Value

The result of std::any_cast<T>.

Parameters

Name

Description

args

Arguments forwarded to std::any_cast.

Created with MrDocs