Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
putil
firstOfPairLess.h
1
// Filename: firstOfPairLess.h
2
// Created by: drose (27Jun01)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef FIRSTOFPAIRLESS_H
16
#define FIRSTOFPAIRLESS_H
17
18
#include "pandabase.h"
19
20
////////////////////////////////////////////////////////////////////
21
// Class : FirstOfPairLess
22
// Description : An STL function object class, this is intended to be
23
// used on any ordered collection of pairs of objects.
24
// It uses < to compare the first elements of the pair.
25
////////////////////////////////////////////////////////////////////
26
template
<
class
ObjectType>
27
class
FirstOfPairLess
{
28
public
:
29
INLINE
bool
operator ()
(
const
ObjectType &a,
const
ObjectType &b)
const
;
30
};
31
32
#include "firstOfPairLess.I"
33
34
#endif
35
FirstOfPairLess::operator()
bool operator()(const ObjectType &a, const ObjectType &b) const
Returns true if a sorts before b, false otherwise.
Definition:
firstOfPairLess.I:22
FirstOfPairLess
An STL function object class, this is intended to be used on any ordered collection of pairs of objec...
Definition:
firstOfPairLess.h:27
Generated on Mon Feb 1 2016 13:44:38 for Panda3D by
1.8.5