MADARA  3.4.1
Comparators.h
Go to the documentation of this file.
1 #pragma once
2 
11 namespace madara
12 {
13  namespace utility
14  {
21  {
22 
28  bool operator()(const char* l, const char* r) const
29  {
30  return std::strcmp(l, r) < 0;
31  }
32  };
33 
40  {
46  bool operator()(const char* l, const char* r) const
47  {
48  return std::strcmp(l, r) > 0;
49  }
50  };
51  }
52 }
53 
Provides utility functions and classes for common tasks and needs.
Definition: IteratorImpl.h:15
Copyright(c) 2020 Galois.
Less than comparator for non-object-oriented types.
Definition: Comparators.h:40
bool operator()(const char *l, const char *r) const
Compares two c strings for greater than relationship, e.g.
Definition: Comparators.h:46
Less than comparator for non-object-oriented types.
Definition: Comparators.h:21
bool operator()(const char *l, const char *r) const
Compares two c strings for less than relationship, e.g.
Definition: Comparators.h:28