CMR  1.3.0
Public Member Functions | List of all members
tu::is_non_zero Struct Reference

#include <comparators.hpp>

Public Member Functions

 is_non_zero ()
 
void operator() (int value)
 
bool operator() ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ is_non_zero()

tu::is_non_zero::is_non_zero ( )
inline

Constructs the functor.

Member Function Documentation

◆ 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
valueA value to be tested

The documentation for this struct was generated from the following file: