DxLibEx
ignore.hpp
Go to the documentation of this file.
1
/*=============================================================================
2
Copyright (C) 2015-2017 DxLibEx project
3
https://github.com/Nagarei/DxLibEx/
4
5
Distributed under the Boost Software License, Version 1.0.
6
(See http://www.boost.org/LICENSE_1_0.txt)
7
=============================================================================*/
8
#ifndef DXLE_INC_TYPE_TRAITS_IGNORE_HPP_
9
#define DXLE_INC_TYPE_TRAITS_IGNORE_HPP_
10
#include <type_traits>
11
12
namespace
dxle
{
14
namespace
type_traits{
15
39
template
<
typename
>
40
struct
ignore_type
: std::true_type {};
41
42
template
<
typename
T,
typename
...>
43
struct
first_type
{
44
typedef
T
type
;
45
};
46
template
<
typename
T,
typename
... args>
47
using
first_type_t
=
first_type
<T, args...>;
48
49
}
//namespace
50
using namespace
type_traits;
51
}
//namespace
52
#endif //DXLE_INC_TYPE_TRAITS_IGNORE_HPP_
dxle::type_traits::first_type::type
T type
Definition:
ignore.hpp:44
dxle
Definition:
cast_if.hpp:12
dxle::type_traits::first_type
Definition:
ignore.hpp:43
dxle::type_traits::ignore_type
Trait class whose value is true regardless of what T is. we can use it, when we want to let SFINAE wo...
Definition:
ignore.hpp:40
dxlibex
type_traits
ignore.hpp
Generated on Sun Jan 1 2017 10:49:51 for DxLibEx by
1.8.12