TupleElementLessThan Struct Reference

#include <tuple.h>

详细描述

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>()));

Classes

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