cgv
Loading...
Searching...
No Matches
is_standard_type.h
1
#pragma once
2
3
#include <string>
4
#include <cgv/type/standard_types.h>
5
6
namespace
cgv
{
7
namespace
type {
8
namespace
cond {
9
11
template
<
typename
T>
12
struct
is_standard_type
13
{
14
static
const
bool
value =
false
;
15
};
16
17
template
<>
struct
is_standard_type
<bool> {
static
const
bool
value =
true
; };
18
template
<>
struct
is_standard_type
<
int8_type
> {
static
const
bool
value =
true
; };
19
template
<>
struct
is_standard_type
<
int16_type
> {
static
const
bool
value =
true
; };
20
template
<>
struct
is_standard_type
<
int32_type
> {
static
const
bool
value =
true
; };
21
template
<>
struct
is_standard_type
<
int64_type
> {
static
const
bool
value =
true
; };
22
template
<>
struct
is_standard_type
<
uint8_type
> {
static
const
bool
value =
true
; };
23
template
<>
struct
is_standard_type
<
uint16_type
> {
static
const
bool
value =
true
; };
24
template
<>
struct
is_standard_type
<
uint32_type
> {
static
const
bool
value =
true
; };
25
template
<>
struct
is_standard_type
<
uint64_type
> {
static
const
bool
value =
true
; };
26
template
<>
struct
is_standard_type
<
flt32_type
> {
static
const
bool
value =
true
; };
27
template
<>
struct
is_standard_type
<
flt64_type
> {
static
const
bool
value =
true
; };
28
template
<>
struct
is_standard_type
<
wchar_type
> {
static
const
bool
value =
true
; };
29
template
<>
struct
is_standard_type
<std::wstring> {
static
const
bool
value =
true
; };
30
template
<>
struct
is_standard_type
<std::string> {
static
const
bool
value =
true
; };
31
32
}
33
}
34
}
cgv::base::single_method_action
complete implementation of method actions that only call one method when entering a node
Definition
action.h:113
cgv::type::wchar_type
wchar_t wchar_type
wide character type
Definition
standard_types.h:28
cgv
the cgv namespace
Definition
print.h:11
cgv::type::cond::is_standard_type
template condition returning, whether the given type is a standard type (excluding void and enum type...
Definition
is_standard_type.h:13
cgv
type
cond
is_standard_type.h
Generated by
1.9.8