11 template <
class InputIter,
class Tp,
class BinaryFunc>
12 void split(InputIter first, InputIter last, Tp sep, BinaryFunc f)
18 InputIter found = std::find(first, last, sep);
28 template <
class InputIter,
class SeparaterIter,
class BinaryFunc>
29 void split(InputIter first, InputIter last, SeparaterIter s_first, SeparaterIter s_last, BinaryFunc f)
35 InputIter found = std::find_first_of(first, last, s_first, s_last);
45 template <
class InputIter,
class OutputIter,
class Tp,
class BinaryOperation>
47 OutputIter result, Tp
init, BinaryOperation binary_op)
49 while (first != last) {
51 init = binary_op(init, *first);
53 *result++ = std::move(v);
60 template <
class InputIter,
class OutputIter,
class Tp>
62 OutputIter result, Tp
init)
Contains all classes needed for solving linear and non linear equation systems.
Definition: AdaptBase.hpp:6
void init(int &argc, char **&argv, std::string const &initFileName="")
Initialized the Environment for MPI.
Definition: AMDiS.hpp:29
OutputIter exclusive_scan(InputIter first, InputIter last, OutputIter result, Tp init, BinaryOperation binary_op)
Output the cumulative sum of one range to a second range.
Definition: Algorithm.hpp:46
void split(InputIter first, InputIter last, Tp sep, BinaryFunc f)
Split a sequence [first,last) by the separators sep and pass the tokens as begin-end iterator pair to...
Definition: Algorithm.hpp:12