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

Synopsis

Declared in <folly/lang/TypeInfo.h>

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

Parameters

Name

Description

t

Object whose dynamic type is queried

Created with MrDocs