Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 13 #include <type_traits> 40 template <
typename Range,
typename Fn>
43 r.impl().for_each_chunk(std::forward<Fn>(fn));
46 template <
typename Iterator,
typename Fn>
49 assert(&first.impl() == &last.impl());
50 first.impl().for_each_chunk(first.index(), last.index(),
51 std::forward<Fn>(fn));
54 template <
typename T,
typename Fn>
57 std::forward<Fn>(fn)(first, last);
74 template <
typename Range,
typename Fn>
77 return r.impl().for_each_chunk_p(std::forward<Fn>(fn));
80 template <
typename Iterator,
typename Fn>
83 assert(&first.impl() == &last.impl());
84 return first.impl().for_each_chunk_p(first.index(), last.index(),
85 std::forward<Fn>(fn));
88 template <
typename T,
typename Fn>
91 return std::forward<Fn>(fn)(first, last);
97 template <
typename Range,
typename T>
106 template <
typename Range,
typename T,
typename Fn>
119 template <
typename Iterator,
typename T>
128 template <
typename Iterator,
typename T,
typename Fn>
140 template <
typename Range,
typename Fn>
144 for (; first != last; ++first)
147 return std::forward<Fn>(fn);
154 template <
typename Iterator,
typename Fn>
155 Fn&&
for_each(Iterator first, Iterator last, Fn&& fn)
158 for (; first != last; ++first)
161 return std::forward<Fn>(fn);
167 template <
typename Range,
typename OutIter>
168 OutIter
copy(Range&& r, OutIter out)
180 template <
typename InIter,
typename OutIter>
181 OutIter
copy(InIter first, InIter last, OutIter out)
192 template <
typename Range,
typename Pred>
204 template <
typename Iter,
typename Pred>
205 bool all_of(Iter first, Iter last, Pred p)
bool all_of(Range &&r, Pred p)
OutIter copy(Range &&r, OutIter out)
T accumulate(Iterator first, Iterator last, T init, Fn fn)
void for_each_chunk(const Range &r, Fn &&fn)
T accumulate(Range &&r, T init)
bool all_of(Iter first, Iter last, Pred p)
OutIter copy(InIter first, InIter last, OutIter out)
Fn && for_each(Range &&r, Fn &&fn)
bool for_each_chunk_p(const Range &r, Fn &&fn)