#include <DS_OrderedList.h>
Public Member Functions | |
bool | HasData (const key_type &key, int(*cf)(const key_type &, const data_type &)=default_comparison_function) const |
bool DataStructures::OrderedList< key_type, data_type, default_comparison_function >::HasData | ( | const key_type & | key, | |
int(*)(const key_type &, const data_type &) | cf = default_comparison_function | |||
) | const [inline] |
comparisonFunction must take a key_type and a data_type and return <0, ==0, or >0 If the data type has comparison operators already defined then you can just use defaultComparison