TupleElementCompare Struct Reference

#include <tuple.h>

Detailed Description

A compare class that provides element-wise LessThan and IsEqual functions for tuples. Elements are selected by index or by type. Example:

BaseArray<Tuple<String, Int>> data;
SimpleSort<TupleElementCompare::ByIndex<1>> s1;
SimpleSort<TupleElementCompare::ByType<String>> s2;
s1.Sort(data); // Sort by second attribute
s2.Sort(data); // Sort by first attribute

Classes

struct  ByIndex
 
struct  ByType