MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / __any_if

Function __any_if

inst/include/Rcpp/algo.h:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96/* generic implementation for the input iterator case */
97template<class InputIterator, class Predicate>
98inline bool __any_if( InputIterator first, InputIterator last, Predicate pred, std::input_iterator_tag ){
99 for ( ; first!=last ; first++ ) if ( pred(*first) ) return true ;
100 return false;
101}
102
103/* RAI case */
104template<class RandomAccessIterator, class Predicate>

Callers 1

any_ifFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected