folly::poly_type

/////////////////////////////////////////////////////////////////////////////

Synopsis

Declared in <folly/Poly.h>

template<class I>
std::type_info const&
poly_type(/* implementation-defined */ const& that) noexcept;

Description

Returns a reference to the std::type_info object corresponding to the object currently stored in that. If that is empty, returns typeid(void).

Return Value

The std::type_info of the stored object, or typeid(void).

Parameters

NameDescription
thatThe Poly object to inspect.