DxLibEx
enable_if.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_ENABLE_IF_HPP_
9 #define DXLE_INC_TYPE_TRAITS_ENABLE_IF_HPP_
10 #include <type_traits>
11 namespace dxle {
13 namespace type_traits {
14 
15  using std::enable_if;
16  template<bool B, typename T = void>
17  using enable_if_t = typename type_traits::enable_if<B, T>::type;
18 
19  using std::nullptr_t;
20 }//namespace
21 using namespace type_traits;
22 }
23 #endif //DXLE_INC_TYPE_TRAITS_ENABLE_IF_HPP_
Definition: cast_if.hpp:12
typename type_traits::enable_if< B, T >::type enable_if_t
Definition: enable_if.hpp:17