DxLibEx
is_nothrow.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_IS_NOTHROW_HPP_
9 #define DXLE_INC_TYPE_TRAITS_IS_NOTHROW_HPP_
11 #include <type_traits>
12 
13 namespace dxle {
15 namespace type_traits {
16 
17  template<typename From, typename To>
19  : std::conditional<std::is_nothrow_move_constructible<From>::value
20  && std::is_nothrow_constructible<To, From>::value
21  , std::true_type, std::false_type>::type
22  {};
23 
24 }//namespace
25 using namespace type_traits;
26 }
27 
28 #endif
Definition: cast_if.hpp:12