rheolef  6.5
msg_both_permutation_apply.h
Go to the documentation of this file.
1 #ifndef _RHEO_MSG_BOTH_PERMUTATION_APPLY_H
2 #define _RHEO_MSG_BOTH_PERMUTATION_APPLY_H
3 namespace rheolef {
30 template <
31  class InputIterator1,
32  class InputIterator2,
33  class InputRandomIterator,
34  class SetOp,
35  class OutputRandomIterator>
36 void
38  InputIterator1 px,
39  InputIterator1 last_px,
40  InputRandomIterator x,
41  SetOp set_op,
42  InputIterator2 py,
43  OutputRandomIterator y)
44 {
45  while (px != last_px)
46  set_op(y[*py++], x[*px++]);
47 }
48 } // namespace rheolef
49 @endcode
50 #endif // _RHEO_MSG_BOTH_PERMUTATION_APPLY_H
51