blob: d4584e64f2f86b5a8754b3acfd2339ecf69826ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <typeinfo>
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
// Enables accessing type_info for incomplete types.
//! Place this macro in header file after forward-declaring a type.
#define YT_DECLARE_TYPEID(type)
//! Place this macro in header or source file after fully defining a type.
#define YT_DEFINE_TYPEID(type)
//! Equivalent to |typeid(T)| but also works for incomplete types
//! annotated with YT_DECLARE_TYPEID.
template <class T>
const std::type_info& Typeid();
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
#define TYPEID_INL_H_
#include "typeid-inl.h"
#undef TYPEID_INL_H_
|