Panda3D
panda
src
putil
firstOfPairLess.I
1
// Filename: firstOfPairLess.I
2
// Created by: drose (04Apr00)
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
////////////////////////////////////////////////////////////////////
16
// Function: FirstOfPairLess::operator ()
17
// Access: Public
18
// Description: Returns true if a sorts before b, false otherwise.
19
////////////////////////////////////////////////////////////////////
20
template
<
class
ObjectType>
21
INLINE
bool
FirstOfPairLess<ObjectType>::
22
operator ()
(
const
ObjectType &a,
const
ObjectType &b)
const
{
23
return
a.first < b.first;
24
}
FirstOfPairLess::operator()
bool operator()(const ObjectType &a, const ObjectType &b) const
Returns true if a sorts before b, false otherwise.
Definition:
firstOfPairLess.I:22
Generated on Wed May 17 2017 23:46:56 for Panda3D by
1.8.13