DxLibEx
is_representable.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_REPRESENTABLE_HPP_
9
#define DXLE_INC_TYPE_TRAITS_IS_REPRESENTABLE_HPP_
10
#include <type_traits>
11
#include "
dxlibex/type_traits/common_type.hpp
"
12
namespace
dxle
{
14
namespace
type_traits {
15
template
<
typename
from,
typename
to >
16
struct
is_representable
17
: std::is_same<typename common_type<from, to>::type, to >
18
{ } ;
19
}
//namespace
20
using namespace
type_traits;
21
}
22
#endif //DXLE_INC_TYPE_TRAITS_IS_REPRESENTABLE_HPP_
dxle::type_traits::is_representable
Definition:
is_representable.hpp:16
dxle
Definition:
cast_if.hpp:12
common_type.hpp
dxlibex
type_traits
is_representable.hpp
Generated on Sun Jan 1 2017 10:49:51 for DxLibEx by
1.8.12