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_
10
#include "
dxlibex/config/no_min_max.h
"
11
#include <type_traits>
12
13
namespace
dxle
{
15
namespace
type_traits {
16
17
template
<
typename
From,
typename
To>
18
struct
is_nothrow_convertable
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
no_min_max.h
dxle
Definition:
cast_if.hpp:12
dxle::type_traits::is_nothrow_convertable
Definition:
is_nothrow.hpp:18
dxlibex
type_traits
is_nothrow.hpp
Generated on Sun Jan 1 2017 10:49:51 for DxLibEx by
1.8.12