iRoCS Toolbox
1.1.0
|
The TinyVectorLessThan struct provides an operator for comparing TinyVectors defining a strict weak ordering between them. More...
#include "libArrayToolbox/Neighborhood.hh"
Public Member Functions | |
bool | operator() (blitz::TinyVector< DataT, Dim > const &v1, blitz::TinyVector< DataT, Dim > const &v2) const |
Strict weak ordering function for TinyVectors. More... | |
The TinyVectorLessThan struct provides an operator for comparing TinyVectors defining a strict weak ordering between them.
This is especially useful for the STL containers set and map and their multi-variants, which require a strict weak ordering on their stored keys.
Definition at line 57 of file Neighborhood.hh.
bool atb::TinyVectorLessThan< DataT, Dim >::operator() | ( | blitz::TinyVector< DataT, Dim > const & | v1, |
blitz::TinyVector< DataT, Dim > const & | v2 | ||
) | const |
Strict weak ordering function for TinyVectors.
v1 | The first vector |
v2 | The second vector |