[#absl-any_cast] = xref:absl.adoc[absl]::any_cast :relfileprefix: ../ :mrdocs: Casts the value stored in an `any` object to type `T` (deprecated). == Synopsis Declared in `<absl/types/any.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename... Args> [[deprecated]] constexpr decltype(std::any_cast<T>(std::declval<Args>()...)) any_cast(Args&&... args); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value The result of `std::any_cast<T>`. == Parameters [cols="1,4"] |=== | Name| Description | *args* | Arguments forwarded to `std::any_cast`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#