Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83165 - sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1
From: afojgo_at_[hidden]
Date: 2013-02-26 13:49:12


Author: jofaber
Date: 2013-02-26 13:49:11 EST (Tue, 26 Feb 2013)
New Revision: 83165
URL: http://svn.boost.org/trac/boost/changeset/83165

Log:
Induced ordering.
Text files modified:
   sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Tree.h | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Tree.h
==============================================================================
--- sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Tree.h (original)
+++ sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Tree.h 2013-02-26 13:49:11 EST (Tue, 26 Feb 2013)
@@ -212,6 +212,13 @@
 }
 
 
+template<class Type, class Selector> struct Ordering
+{
+ Ordering(const Selector& select): m_select(select){}
+ bool operator()(Type const& lhs, Type const& rhs){ m_select(lhs) < m_select(rhs); }
+ Selector m_select;
+};
+
 template<class Type>
 Node<Type> merge(const Node<Type>& lhs, const Node<Type>& rhs)
 {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk