blob: d96240a3810f20dadddf6aec973d2449e415100e [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (C) Copyright John Maddock and Steve Cleary 2000.
2// Use, modification and distribution are subject to the Boost Software License,
3// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt).
5//
6// See http://www.boost.org/libs/type_traits for most recent version including documentation.
7
Jeff Thompson3d613fd2013-10-15 15:39:04 -07008#ifndef NDNBOOST_TT_DETAIL_ICE_EQ_HPP_INCLUDED
9#define NDNBOOST_TT_DETAIL_ICE_EQ_HPP_INCLUDED
Jeff Thompsonf7d49942013-08-01 16:47:40 -070010
Jeff Thompson2277ce52013-08-01 17:34:11 -070011#include <ndnboost/config.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070012
13namespace ndnboost {
14namespace type_traits {
15
16template <int b1, int b2>
17struct ice_eq
18{
Jeff Thompson3d613fd2013-10-15 15:39:04 -070019 NDNBOOST_STATIC_CONSTANT(bool, value = (b1 == b2));
Jeff Thompsonf7d49942013-08-01 16:47:40 -070020};
21
22template <int b1, int b2>
23struct ice_ne
24{
Jeff Thompson3d613fd2013-10-15 15:39:04 -070025 NDNBOOST_STATIC_CONSTANT(bool, value = (b1 != b2));
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026};
27
Jeff Thompson3d613fd2013-10-15 15:39:04 -070028#ifndef NDNBOOST_NO_INCLASS_MEMBER_INITIALIZATION
Jeff Thompsonf7d49942013-08-01 16:47:40 -070029template <int b1, int b2> bool const ice_eq<b1,b2>::value;
30template <int b1, int b2> bool const ice_ne<b1,b2>::value;
31#endif
32
33} // namespace type_traits
34} // namespace ndnboost
35
Jeff Thompson3d613fd2013-10-15 15:39:04 -070036#endif // NDNBOOST_TT_DETAIL_ICE_EQ_HPP_INCLUDED