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
11 #include <boost/icl/concept/interval.hpp>
13 namespace boost{ namespace icl
16 /// Comparison functor on intervals implementing an overlap free less
17 template <class IntervalT>
18 struct exclusive_less_than
20 /** Operator <tt>operator()</tt> implements a strict weak ordering on intervals. */
21 bool operator()(const IntervalT& left, const IntervalT& right)const
23 return icl::non_empty::exclusive_less(left, right);
27 }} // namespace boost icl