Helper comparison class to sort an array or vector based on an ArrayOfNumeric.
More...
#include <array.h>
Helper comparison class to sort an array or vector based on an ArrayOfNumeric.
Usage:
Vector v1 ArrayOfNumeric v2; ... std::sort(v1.begin(), v1.end(), CmpArrayOfNumeric(v2));
Source: http://stackoverflow.com/questions/8147911/locking-two-vectors-and-sorting-them
Definition at line 331 of file array.h.
◆ CmpArrayOfNumeric()
◆ operator()()
bool CmpArrayOfNumeric::operator() |
( |
const int & |
a, |
|
|
const int & |
b |
|
) |
| const |
|
inline |
◆ values
The documentation for this class was generated from the following file: