TupleElementLessThan Struct Reference

#include <tuple.h>

Detailed Description

A utility class to generate a binary compare function that can be used to test if a specific tuple element is less than another value. Example:

BaseArray<Tuple<String, Int>> data;
auto match1 = Find(data, ByValue(42, TupleElementLessThan::ByIndex<1>()));
auto match2 = Find(data, ByValue(43, TupleElementLessThan::ByType<Int>()));


struct  ByIndex
struct  ByType
auto ByValue(const T &value) -> PredicateMatcher< ValuePredicate< T >>
Returns a value matcher for the given value.
Definition: algorithms.h:2535