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_
Definition: cast_if.hpp:12
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