DATAKIT API  V2025.4
dtk Namespace Reference

Functions

template<typename T , class Predicate >
bool all_of (const Dtk_tab< T > &tab, Predicate Pred)
 Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise. More...
 
template<class InputIterator , class Predicate >
bool all_of (InputIterator first, InputIterator last, Predicate Pred)
 Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise. More...
 
template<typename T , class Predicate >
bool any_of (const Dtk_tab< T > &tab, Predicate Pred)
 Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty. More...
 
template<class InputIterator , class Predicate >
bool any_of (InputIterator first, InputIterator last, Predicate Pred)
 Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty. More...
 
template<typename T , class Predicate >
bool none_of (const Dtk_tab< T > &tab, Predicate Pred)
 Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise. More...
 
template<class InputIterator , class Predicate >
bool none_of (InputIterator first, InputIterator last, Predicate Pred)
 Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise. More...
 

Function Documentation

◆ all_of() [1/2]

template<typename T , class Predicate >
bool dtk::all_of ( const Dtk_tab< T > &  tab,
Predicate  Pred 
)

Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise.

Parameters
firstInput iterator to the initial position in a sequence
lastInput iterator to the final position in a sequence
PredUnary function that accepts an element in the range as argument and returns a value convertible to bool.
Remarks
Note that invalid parameters cause undefined behavior.
Specialized version for Dtk_tab.

◆ all_of() [2/2]

template<class InputIterator , class Predicate >
bool dtk::all_of ( InputIterator  first,
InputIterator  last,
Predicate  Pred 
)

Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise.

Parameters
firstInput iterator to the initial position in a sequence
lastInput iterator to the final position in a sequence
PredUnary function that accepts an element in the range as argument and returns a value convertible to bool.
Remarks
Note that invalid parameters cause undefined behavior.

◆ any_of() [1/2]

template<typename T , class Predicate >
bool dtk::any_of ( const Dtk_tab< T > &  tab,
Predicate  Pred 
)

Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty.

Parameters
firstInput iterator to the initial position in a sequence
lastInput iterator to the final position in a sequence
PredUnary function that accepts an element in the range as argument and returns a value convertible to bool.
Remarks
Note that invalid parameters cause undefined behavior.
Specialized version for Dtk_tab.

◆ any_of() [2/2]

template<class InputIterator , class Predicate >
bool dtk::any_of ( InputIterator  first,
InputIterator  last,
Predicate  Pred 
)

Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty.

Parameters
firstInput iterator to the initial position in a sequence
lastInput iterator to the final position in a sequence
PredUnary function that accepts an element in the range as argument and returns a value convertible to bool.
Remarks
Note that invalid parameters cause undefined behavior.

◆ none_of() [1/2]

template<typename T , class Predicate >
bool dtk::none_of ( const Dtk_tab< T > &  tab,
Predicate  Pred 
)

Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise.

Parameters
firstInput iterator to the initial position in a sequence
lastInput iterator to the final position in a sequence
PredUnary function that accepts an element in the range as argument and returns a value convertible to bool.
Remarks
Note that invalid parameters cause undefined behavior.
Specialized version for Dtk_tab.

◆ none_of() [2/2]

template<class InputIterator , class Predicate >
bool dtk::none_of ( InputIterator  first,
InputIterator  last,
Predicate  Pred 
)

Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise.

Parameters
firstInput iterator to the initial position in a sequence
lastInput iterator to the final position in a sequence
PredUnary function that accepts an element in the range as argument and returns a value convertible to bool.
Remarks
Note that invalid parameters cause undefined behavior.