type_info_of overloads

Synopses

Declared in <folly/lang/TypeInfo.h>

Returns &typeid(T) if RTTI is available, nullptr otherwise, for the static type T.

template<typename T>
constexpr
std::type_info const*
type_info_of();

Returns &typeid(t) if RTTI is available, nullptr otherwise, for the dynamic type of t.

template<typename T>
constexpr
std::type_info const*
type_info_of(T const& t);

Return Value

  • Pointer to the type_info of T, or nullptr when RTTI is unavailable

  • Pointer to the type_info of t, or nullptr when RTTI is unavailable

Parameters

Name

Description

t

Object whose dynamic type is queried

Created with MrDocs