]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/icl/include/boost/icl/detail/exclusive_less_than.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / icl / include / boost / icl / detail / exclusive_less_than.hpp
1 /*-----------------------------------------------------------------------------+
2 Copyright (c) 2010-2010: 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_DETAIL_EXCLUSIVE_LESS_THAN_HPP_JOFA_100929
9 #define BOOST_ICL_DETAIL_EXCLUSIVE_LESS_THAN_HPP_JOFA_100929
10
11 #include <boost/icl/concept/interval.hpp>
12
13 namespace boost{ namespace icl
14 {
15
16 /// Comparison functor on intervals implementing an overlap free less
17 template <class IntervalT>
18 struct exclusive_less_than
19 {
20 /** Operator <tt>operator()</tt> implements a strict weak ordering on intervals. */
21 bool operator()(const IntervalT& left, const IntervalT& right)const
22 {
23 return icl::non_empty::exclusive_less(left, right);
24 }
25 };
26
27 }} // namespace boost icl
28
29 #endif
30
31