folly::poly_type

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

Synopses

Declared in <folly/Poly.h>

[[noreturn]]
std::type_info const&
poly_type(/* implementation-defined */ const&) noexcept;
» more...
template<class Poly>
requires detail::IsPoly<Poly>::value
constexpr
decltype(poly_type(that.get()))
poly_type(Poly const& that) noexcept;
» more...

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

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

Return Value

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

Parameters

NameDescription
thatThe Poly object to inspect.