Chris@101: /* Copyright 2003-2013 Joaquin M Lopez Munoz. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: * Chris@16: * See http://www.boost.org/libs/multi_index for library home page. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_MULTI_INDEX_ORDERED_INDEX_FWD_HPP Chris@16: #define BOOST_MULTI_INDEX_ORDERED_INDEX_FWD_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost{ Chris@16: Chris@16: namespace multi_index{ Chris@16: Chris@16: namespace detail{ Chris@16: Chris@16: template< Chris@16: typename KeyFromValue,typename Compare, Chris@16: typename SuperMeta,typename TagList,typename Category Chris@16: > Chris@16: class ordered_index; Chris@16: Chris@16: template< Chris@16: typename KeyFromValue1,typename Compare1, Chris@16: typename SuperMeta1,typename TagList1,typename Category1, Chris@16: typename KeyFromValue2,typename Compare2, Chris@16: typename SuperMeta2,typename TagList2,typename Category2 Chris@16: > Chris@16: bool operator==( Chris@16: const ordered_index< Chris@16: KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, Chris@16: const ordered_index< Chris@16: KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); Chris@16: Chris@16: template< Chris@16: typename KeyFromValue1,typename Compare1, Chris@16: typename SuperMeta1,typename TagList1,typename Category1, Chris@16: typename KeyFromValue2,typename Compare2, Chris@16: typename SuperMeta2,typename TagList2,typename Category2 Chris@16: > Chris@16: bool operator<( Chris@16: const ordered_index< Chris@16: KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, Chris@16: const ordered_index< Chris@16: KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); Chris@16: Chris@16: template< Chris@16: typename KeyFromValue1,typename Compare1, Chris@16: typename SuperMeta1,typename TagList1,typename Category1, Chris@16: typename KeyFromValue2,typename Compare2, Chris@16: typename SuperMeta2,typename TagList2,typename Category2 Chris@16: > Chris@16: bool operator!=( Chris@16: const ordered_index< Chris@16: KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, Chris@16: const ordered_index< Chris@16: KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); Chris@16: Chris@16: template< Chris@16: typename KeyFromValue1,typename Compare1, Chris@16: typename SuperMeta1,typename TagList1,typename Category1, Chris@16: typename KeyFromValue2,typename Compare2, Chris@16: typename SuperMeta2,typename TagList2,typename Category2 Chris@16: > Chris@16: bool operator>( Chris@16: const ordered_index< Chris@16: KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, Chris@16: const ordered_index< Chris@16: KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); Chris@16: Chris@16: template< Chris@16: typename KeyFromValue1,typename Compare1, Chris@16: typename SuperMeta1,typename TagList1,typename Category1, Chris@16: typename KeyFromValue2,typename Compare2, Chris@16: typename SuperMeta2,typename TagList2,typename Category2 Chris@16: > Chris@16: bool operator>=( Chris@16: const ordered_index< Chris@16: KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, Chris@16: const ordered_index< Chris@16: KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); Chris@16: Chris@16: template< Chris@16: typename KeyFromValue1,typename Compare1, Chris@16: typename SuperMeta1,typename TagList1,typename Category1, Chris@16: typename KeyFromValue2,typename Compare2, Chris@16: typename SuperMeta2,typename TagList2,typename Category2 Chris@16: > Chris@16: bool operator<=( Chris@16: const ordered_index< Chris@16: KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, Chris@16: const ordered_index< Chris@16: KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); Chris@16: Chris@16: template< Chris@16: typename KeyFromValue,typename Compare, Chris@16: typename SuperMeta,typename TagList,typename Category Chris@16: > Chris@16: void swap( Chris@16: ordered_index& x, Chris@16: ordered_index& y); Chris@16: Chris@16: } /* namespace multi_index::detail */ Chris@16: Chris@16: /* ordered_index specifiers */ Chris@16: Chris@16: template Chris@16: struct ordered_unique; Chris@16: Chris@16: template Chris@16: struct ordered_non_unique; Chris@16: Chris@16: } /* namespace multi_index */ Chris@16: Chris@16: } /* namespace boost */ Chris@16: Chris@16: #endif