MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / any

Function any

source/core/StarPythonic.hpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template <typename Iterator, typename Functor>
10bool any(Iterator iterBegin, Iterator iterEnd, Functor const& f) {
11 for (; iterBegin != iterEnd; iterBegin++)
12 if (f(*iterBegin))
13 return true;
14 return false;
15}
16
17template <typename Iterator>
18bool any(Iterator const& iterBegin, Iterator const& iterEnd) {

Callers 3

collidingTilesAlongLineFunction · 0.85
anyMethod · 0.85
TESTFunction · 0.85

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by 1

TESTFunction · 0.68