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