My Project
for_each.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_FOREACH_HPP
29 #define BSL_FOREACH_HPP
30 
31 #include "details/for_each_impl.hpp"
32 #include "forward.hpp"
33 
34 namespace bsl
35 {
37  constexpr bool for_each_break{false};
39  constexpr bool for_each_continue{true};
40 
73  template<typename... ARGS>
74  constexpr void
75  for_each(ARGS &&... args) noexcept(noexcept( // --
76  details::for_each_impl<ARGS...>::call(bsl::forward<ARGS>(args)...)))
77  {
78  details::for_each_impl<ARGS...>::call(bsl::forward<ARGS>(args)...);
79  }
80 }
81 
82 #endif
constexpr bool for_each_break
Tells a foreach to stop its execution (same as "break")
Definition: for_each.hpp:37
constexpr void for_each(ARGS &&... args) noexcept(noexcept(//-- details::for_each_impl< ARGS... >::call(bsl::forward< ARGS >(args)...)))
Loops over a view or a pair of iterators, calling a provided function on each iteration....
Definition: for_each.hpp:75
constexpr bool for_each_continue
Tells a foreach to continue its execution (same as "continue")
Definition: for_each.hpp:39