[#absl-make_any-08] = xref:absl.adoc[absl]::make_any :relfileprefix: ../ :mrdocs: Constructs an `any` object holding a `T` from an initializer list (deprecated). == Synopsis Declared in `<absl/types/any.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename... Args> [[deprecated]] constexpr decltype(std::make_any<T>( std::declval<std::initializer_list<U>>(), std::declval<Args>()...)) make_any( std::initializer_list<U> il, Args&&... args); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value An `any` holding the constructed value. == Parameters [cols="1,4"] |=== | Name| Description | *il* | Initializer list forwarded to `std::make_any`. | *args* | Additional arguments forwarded to `std::make_any`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#