|
codac 2.0.0
|
Comparison functor for codac2::Vector objects.
More...
#include <codac2_Vector.h>
Public Member Functions | |
| bool | operator() (const Vector &a, const Vector &b) const |
| Defines an increasing-order comparison between two vectors of real numbers. | |
Comparison functor for codac2::Vector objects.
This functor defines a strict weak ordering on codac2::Vector objects so that they can be used as keys in associative containers such as std::map. The ordering is based on increasing real values, inspected sequentially from index 0 to the last. If all corresponding components are equal, the operator returns false to indicate that neither vector is strictly less than the other.
Defines an increasing-order comparison between two vectors of real numbers.
| a | The first vector to compare. |
| b | The second vector to compare. |
true if a is considered strictly smaller than b, false otherwise.