3#include <gtest/gtest.h>
11 bool operator()(
const int & a,
const int & b)
const {
return a < b; }
16 bool operator()(
const int & a,
const int & b)
const {
return a == b; }
28 bool operator()(
const int & a,
const int & b) {
return a < b; }
43 bool operator()(
const int & a,
const int & b)
const {
return a < b; }
44 void operator()(
const int & a,
const int & b) { (void) a; (void) b; }
50TEST(AhConceptsHeaderTest, IsSelfContained)
53 EXPECT_TRUE(less(1, 2));
54 EXPECT_FALSE(less(2, 1));
C++20 concepts hub: comparison, BST policy, and Aleph container concepts.
A callable that takes two const T& and returns bool.
Equivalence relation constraint for equality comparators.
Strict weak ordering constraint for BST comparators.
bool operator()(const int &a, const int &b) const
bool operator()(const int &a, const int &b) const
void operator()(const int &a, const int &b)
bool operator()(const int &a, const int &b) const
bool operator()(const int &a, const int &b)