- Main Page
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# FbxLessCompare< Type > Struct Template Reference

Search for all occurrences

## Detailed Description

### template<typename Type>
struct FbxLessCompare< Type >

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

Definition at line 58 of file fbxmap.h.

`#include <fbxmap.h>`

List of all members.

## Public Member Functions
int | operator() (const Type &pLeft, const Type &pRight) const

## Member Function Documentation

int operator() | ( | const Type & | pLeft,
|  | const Type & | pRight
| ) |  | const`[inline]`

Definition at line 60 of file fbxmap.h.

        {
            return (pLeft < pRight) ? -1 : ((pRight < pLeft) ? 1 : 0);
        }

The documentation for this struct was generated from the following file:

- fbxsdk/core/base/fbxmap.h