#include <fbxmap.h>
Default compare functor for FbxMap and FbxSet2, which assumes operator < is defined.
Here is examples of different compare class implementations: With Key = int
class IntCompare { inline int operator()(int pKeyA, int pKeyB) const { return (pKeyA < pKeyB) ? -1 : ((pKeyB < pKeyA) ? 1 : 0); } };
With Key = Class
class ClassCompare { inline int operator()(const Class& pKeyA, const Class& pKeyB) const { return (pKeyA < pKeyB) ? -1 : ((pKeyB < pKeyA) ? 1 : 0); } };
With Key = char*
class StrCompare { inline int operator()(const char* pKeyA, const char* pKeyB) const { return strcmp(pKeyA, pKeyB); } };
Public Member Functions |
|
| int | operator() (const Type &pLeft, const Type &pRight) const |
| int operator() | ( | const Type & | pLeft, |
| const Type & | pRight | ||
| ) | const [inline] |