]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*-----------------------------------------------------------------------------+ |
2 | Copyright (c) 2011-2011: Joachim Faulhaber | |
3 | +------------------------------------------------------------------------------+ | |
4 | Distributed under the Boost Software License, Version 1.0. | |
5 | (See accompanying file LICENCE.txt or copy at | |
6 | http://www.boost.org/LICENSE_1_0.txt) | |
7 | +-----------------------------------------------------------------------------*/ | |
8 | #ifndef BOOST_ICL_TYPE_TRAITS_IS_INCREASING_HPP_JOFA_110416 | |
9 | #define BOOST_ICL_TYPE_TRAITS_IS_INCREASING_HPP_JOFA_110416 | |
10 | ||
11 | #include <functional> | |
12 | ||
13 | namespace boost{ namespace icl | |
14 | { | |
15 | ||
16 | template <class DomainT, class Compare> | |
17 | struct is_increasing | |
18 | { | |
19 | typedef is_increasing type; | |
20 | BOOST_STATIC_CONSTANT(bool, value = true); | |
21 | }; | |
22 | ||
23 | template <class DomainT> | |
24 | struct is_increasing<DomainT, std::greater<DomainT> > | |
25 | { | |
26 | typedef is_increasing type; | |
27 | BOOST_STATIC_CONSTANT(bool, value = false); | |
28 | }; | |
29 | ||
30 | }} // namespace boost icl | |
31 | ||
32 | #endif | |
33 | ||
34 |