acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
compare_predicate.h
1
#pragma once
2
3
4
5
6
7
template
<
typename
ARG_TYPE >
8
class
less_predicate_base
:
9
virtual
public
particle
10
{
11
public
:
12
13
virtual ::i32 less(ARG_TYPE a1, ARG_TYPE a2) = 0;
14
15
};
16
17
18
template
<
typename
ARG_TYPE,
typename
PRED >
19
class
less_predicate :
20
public
less_predicate_base
< ARG_TYPE >
21
{
22
public
:
23
24
25
PRED m_predicate;
26
27
28
less_predicate(PRED pred) : m_predicate(pred) {}
29
30
virtual ::i32 less(ARG_TYPE a1, ARG_TYPE a2)
31
{
32
33
return
m_predicate(a1, a2);
34
35
}
36
37
};
less_predicate_base
Definition
compare_predicate.h:10
prototype
prototype
compare_predicate.h
Generated by
1.17.0