#include <comparators.hpp>
This functor can be used to test a vector for being non-zero. Repeated calls with parameter determine the result which can be obtained by a call without a parameter.
◆ is_non_zero()
tu::is_non_zero::is_non_zero |
( |
| ) |
|
|
inline |
◆ operator()() [1/2]
bool tu::is_non_zero::operator() |
( |
| ) |
|
|
inline |
Resets the result to an empty vector.
- Returns
- The result of the tests from the last call to this.
◆ operator()() [2/2]
void tu::is_non_zero::operator() |
( |
int |
value | ) |
|
|
inline |
Each call tests one entry of the vector.
- Parameters
-
value | A value to be tested |
The documentation for this struct was generated from the following file: