Chris@16: /*-----------------------------------------------------------------------------+ Chris@16: Copyright (c) 2010-2010: Joachim Faulhaber Chris@16: +------------------------------------------------------------------------------+ Chris@16: Distributed under the Boost Software License, Version 1.0. Chris@16: (See accompanying file LICENCE.txt or copy at Chris@16: http://www.boost.org/LICENSE_1_0.txt) Chris@16: +-----------------------------------------------------------------------------*/ Chris@16: #ifndef BOOST_ICL_CONCEPT_JOINABLE_HPP_JOFA_100920 Chris@16: #define BOOST_ICL_CONCEPT_JOINABLE_HPP_JOFA_100920 Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost{ namespace icl Chris@16: { Chris@16: Chris@16: namespace segmental Chris@16: { Chris@16: template Chris@16: typename enable_if, bool>::type Chris@16: is_joinable(typename Type::iterator it_, typename Type::iterator next_, Type* = 0) Chris@16: { Chris@16: return touches(*it_, *next_); Chris@16: } Chris@16: Chris@16: template Chris@16: typename enable_if, bool>::type Chris@16: is_joinable(typename Type::iterator it_, typename Type::iterator next_, Type* = 0) Chris@16: { Chris@16: return touches((*it_).first, (*next_).first) Chris@16: && (*it_).second == (*next_).second ; Chris@16: } Chris@16: } Chris@16: Chris@16: Chris@16: Chris@16: }} // namespace boost icl Chris@16: Chris@16: #endif Chris@16: Chris@16: