[#absl-visit] = xref:absl.adoc[absl]::visit :relfileprefix: ../ :mrdocs: Applies a visitor to the alternatives of one or more variants (deprecated). == Synopsis Declared in `<absl/types/variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... Args> [[deprecated]] constexpr decltype(std::visit(std::declval<Args>()...)) visit(Args&&... args); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value The value returned by `std::visit`. == Parameters [cols="1,4"] |=== | Name| Description | *args* | Arguments forwarded to `std::visit`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#