33 lines
963 B
C++
33 lines
963 B
C++
/*!
|
|
@file
|
|
Defines `Boost::hana::Comparable`.
|
|
|
|
@copyright Louis Dionne 2013-2017
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#ifndef ACTIV_BOOST_HANA_CONCEPT_COMPARABLE_HPP
|
|
#define ACTIV_BOOST_HANA_CONCEPT_COMPARABLE_HPP
|
|
|
|
#include <ActivBoost/hana/fwd/concept/comparable.hpp>
|
|
|
|
#include <ActivBoost/hana/config.hpp>
|
|
#include <ActivBoost/hana/core/default.hpp>
|
|
#include <ActivBoost/hana/core/tag_of.hpp>
|
|
#include <ActivBoost/hana/detail/integral_constant.hpp>
|
|
#include <ActivBoost/hana/equal.hpp>
|
|
|
|
|
|
namespace Boost { namespace hana {
|
|
template <typename T>
|
|
struct Comparable
|
|
: hana::integral_constant<bool,
|
|
!is_default<equal_impl<typename tag_of<T>::type,
|
|
typename tag_of<T>::type>>::value
|
|
>
|
|
{ };
|
|
}} // end namespace Boost::hana
|
|
|
|
#endif // ACTIV_BOOST_!ACTIV_BOOST_HANA_CONCEPT_COMPARABLE_HPP
|