ReactOS 0.4.16-dev-250-g3ecd236
ThrowCompare.h
Go to the documentation of this file.
1/***********************************************************************************
2 ThrowCompare.h
3
4 Interface for the ThrowCompare class
5
6 * Copyright (c) 1997
7 * Mark of the Unicorn, Inc.
8 *
9 * Permission to use, copy, modify, distribute and sell this software
10 * and its documentation for any purpose is hereby granted without fee,
11 * provided that the above copyright notice appear in all copies and
12 * that both that copyright notice and this permission notice appear
13 * in supporting documentation. Mark of the Unicorn makes no
14 * representations about the suitability of this software for any
15 * purpose. It is provided "as is" without express or implied warranty.
16
17***********************************************************************************/
18#ifndef ThrowCompare_H_
19#define ThrowCompare_H_
20
21#include "Prefix.h"
22#include "TestClass.h"
23
25 bool operator()( const TestClass& a, const TestClass& b ) const {
27 return a < b;
28 }
29};
30
31
32struct ThrowEqual {
33 inline bool operator()( const TestClass& a, const TestClass& b ) const {
35 return a == b;
36 }
37};
38
39struct ThrowHash { // : private ThrowCompare
40 inline EH_CSTD::size_t operator()( const TestClass& a ) const {
42 return EH_CSTD::size_t(a.value());
43 }
44};
45
46#endif // ThrowCompare_H_
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define b
Definition: ke_i.h:79
void simulate_possible_failure()
Definition: nc_alloc.h:117
bool operator()(const TestClass &a, const TestClass &b) const
Definition: ThrowCompare.h:25
bool operator()(const TestClass &a, const TestClass &b) const
Definition: ThrowCompare.h:33
EH_CSTD::size_t operator()(const TestClass &a) const
Definition: ThrowCompare.h:40