|
qxLib
|
#include <algorithm>Go to the source code of this file.
Functions | |
| template<class fwd_it_t , class predicate_t > | |
| bool | qx::all_of_equal (fwd_it_t itBegin, fwd_it_t itEnd, const predicate_t &predicate) |
| Returns true if the predicate yields the same value for all elements in the range [itBegin, itEnd). More... | |
| template<class container_t , class predicate_t > | |
| bool | qx::all_of_equal (const container_t &container, const predicate_t &predicate) |
| Returns true if the predicate yields the same value for all elements in the range [itBegin, itEnd). More... | |
Definition in file all_of_equal.h.
| bool qx::all_of_equal | ( | const container_t & | container, |
| const predicate_t & | predicate | ||
| ) |
Returns true if the predicate yields the same value for all elements in the range [itBegin, itEnd).
This implements a logical biconditional (logical equivalence) over the range: predicate(x1) <-> predicate(x2) <-> ... <-> predicate(xn)
| container_t | - container type |
| predicate_t | - predicate type |
| container | - input range |
| predicate | - predicate to check |
Definition at line 54 of file all_of_equal.h.
| bool qx::all_of_equal | ( | fwd_it_t | itBegin, |
| fwd_it_t | itEnd, | ||
| const predicate_t & | predicate | ||
| ) |
Returns true if the predicate yields the same value for all elements in the range [itBegin, itEnd).
This implements a logical biconditional (logical equivalence) over the range: predicate(x1) <-> predicate(x2) <-> ... <-> predicate(xn)
| fwd_it_t | - forward iterator type |
| predicate_t | - predicate type |
| itBegin | - range begin iterator |
| itEnd | - range end iterator |
| predicate | - predicate to check |
Definition at line 28 of file all_of_equal.h.