DxLibEx
is_well_format.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_WELL_FORMAT_HPP_
9 #define DXLE_INC_TYPE_TRAITS_IS_WELL_FORMAT_HPP_
10 #include <type_traits>
11 #include "enable_if.hpp"
12 namespace dxle {
14 namespace type_traits {
15 
16  template<typename T, typename = nullptr_t>
17  struct has_operator_notequal_to_zero_impl : std::false_type {};
18  template<typename T>
19  struct has_operator_notequal_to_zero_impl < T, enable_if_t<ignore_type<decltype(std::declval<T>() != 0)>::value, nullptr_t>>
20  : std::true_type {};
21  template<typename T>
23 
24  template<typename T, typename = nullptr_t>
25  struct has_operator_notequal_to_this_impl : std::false_type {};
26  template<typename T>
27  struct has_operator_notequal_to_this_impl < T, enable_if_t<ignore_type<decltype(std::declval<T>() != std::declval<T>())>::value, nullptr_t>>
28  : std::true_type {};
29  template<typename T>
31 
32 }//namespace
33 using namespace type_traits;
34 }
35 #endif //DXLE_INC_TYPE_TRAITS_IS_WELL_FORMAT_HPP_
Definition: point2d.hpp:672
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
typename type_traits::enable_if< B, T >::type enable_if_t
Definition: enable_if.hpp:17