OKlibrary  0.2.1.6
OKlib::Programming::Utilities::OrderRelations::SizeLessThan< LessThanRelation > Class Template Reference

Predicate-functor, which turns a container-comparator into one which compares first the sizes. More...

#include <OrderConstructions.hpp>

Inheritance diagram for OKlib::Programming::Utilities::OrderRelations::SizeLessThan< LessThanRelation >:
binary_function

List of all members.

Public Member Functions

bool operator() (const typename boost::binary_traits< LessThanRelation >::first_argument_type &arg1, const typename boost::binary_traits< LessThanRelation >::second_argument_type &arg2) const

Detailed Description

template<class LessThanRelation>
class OKlib::Programming::Utilities::OrderRelations::SizeLessThan< LessThanRelation >

Predicate-functor, which turns a container-comparator into one which compares first the sizes.

If < is the comparison for containers A, B, then we have A <' B, where <' is the obtained comparison, iff either A.size() < B.size() or A.size() = B.size() and A < B.

Todo:
Write tests

Definition at line 38 of file OrderConstructions.hpp.


Member Function Documentation

template<class LessThanRelation >
bool OKlib::Programming::Utilities::OrderRelations::SizeLessThan< LessThanRelation >::operator() ( const typename boost::binary_traits< LessThanRelation >::first_argument_type &  arg1,
const typename boost::binary_traits< LessThanRelation >::second_argument_type &  arg2 
) const [inline]

Definition at line 42 of file OrderConstructions.hpp.


The documentation for this class was generated from the following file: