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
const Py_UNICODE * s2
Definition: unicodeobject.h:1176

Classes

struct  ByIndex
 
struct  ByType