Api-TypeTraits.h
1/* Copyright (C) 2008 Marc Boris Duerner
2 SPDX-License-Identifier: LGPL-2.1-or-later WITH mif-exception
3*/
4
5#ifndef PT_API_TYPETRAITS_H
6#define PT_API_TYPETRAITS_H
7
8#include <Pt/Api.h>
9#include <cstddef>
10
24
25namespace Pt {
26
36template <typename T>
38{
40 typedef IMPLEMENTATION_DEFINED Value;
41
43 typedef IMPLEMENTATION_DEFINED ConstValue;
44
46 typedef IMPLEMENTATION_DEFINED Reference;
47
49 typedef IMPLEMENTATION_DEFINED ConstReference;
50
52 typedef IMPLEMENTATION_DEFINED Pointer;
53
55 typedef IMPLEMENTATION_DEFINED ConstPointer;
56
58 static const unsigned int isConst;
59
61 static const unsigned int isVolatile;
62
64 static const unsigned int isPointer;
65
67 static const unsigned int isReference;
68};
69
70} // namespace Pt
71
72#endif
Core module.
Definition Allocator.h:33
Traits for type properties.
Definition Api-TypeTraits.h:38
static const unsigned int isReference
Definition Api-TypeTraits.h:67
IMPLEMENTATION_DEFINED Pointer
The derived pointer type.
Definition Api-TypeTraits.h:52
static const unsigned int isConst
Definition Api-TypeTraits.h:58
IMPLEMENTATION_DEFINED ConstReference
The derived const qualified reference type.
Definition Api-TypeTraits.h:49
IMPLEMENTATION_DEFINED ConstPointer
The derived const qualified reference type.
Definition Api-TypeTraits.h:55
static const unsigned int isPointer
Definition Api-TypeTraits.h:64
IMPLEMENTATION_DEFINED Reference
The derived reference type.
Definition Api-TypeTraits.h:46
static const unsigned int isVolatile
Definition Api-TypeTraits.h:61
IMPLEMENTATION_DEFINED Value
The derived value type.
Definition Api-TypeTraits.h:40
IMPLEMENTATION_DEFINED ConstValue
The derived const qualified value type.
Definition Api-TypeTraits.h:43