MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / all_of

Function all_of

system/lib/libcxx/include/__algorithm/all_of.h:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#endif
20
21_LIBCPP_BEGIN_NAMESPACE_STD
22
23template <class _Iter, class _Sent, class _Proj, class _Pred>
24_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 bool
25__all_of(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) {
26 for (; __first != __last; ++__first) {
27 if (!std::__invoke(__pred, std::__invoke(__proj, *__first)))
28 return false;
29 }
30 return true;
31}
32
33template <class _InputIterator, class _Predicate>
34[[__nodiscard__]] inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 bool
35all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
36 __identity __proj;
37 return std::__all_of(__first, __last, __pred, __proj);
38}
39
40_LIBCPP_END_NAMESPACE_STD
41

Callers

nothing calls this directly

Calls 1

__all_ofFunction · 0.70

Tested by

no test coverage detected