Namespaces
Variants
Views
Actions

std::any::type

From cppreference.com
< cpp‎ | utility‎ | any
const std::type_info& type() const noexcept;
(since C++17)

Queries the contained type.

[edit] Parameters

(none)

[edit] Return value

The typeid of the contained value if instance is non-empty, otherwise typeid(void).