ARTS
2.4.0(git:4fb77825)
|
Helper comparison class to sort an array or vector based on an ArrayOfNumeric. More...
#include <array.h>
Public Member Functions | |
CmpArrayOfNumeric (const ArrayOfNumeric &vec) | |
bool | operator() (const int &a, const int &b) const |
Public Attributes | |
const ArrayOfNumeric & | values |
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
|
inline |
|
inline |
const ArrayOfNumeric& CmpArrayOfNumeric::values |
Definition at line 338 of file array.h.
Referenced by operator()().