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

Function __any

inst/include/Rcpp/algo.h:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30/* generic implementation for the input iterator case */
31template<class InputIterator, class T>
32inline bool __any( InputIterator first, InputIterator last, const T& value, std::input_iterator_tag ){
33 for ( ;first!=last; first++) if ( *first==value ) return true;
34 return false;
35}
36
37/* RAI case */
38template<class RandomAccessIterator, class T>

Callers 1

anyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected