ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
for_each_pair.hpp File Reference
#include <iterator>
+ Include dependency graph for for_each_pair.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Utils
 

Functions

template<typename ForwardIterator , typename BinaryOp >
void Utils::for_each_pair (ForwardIterator first, ForwardIterator last, BinaryOp op)
 Execute op for each pair of elements in [first, last) once.
 
template<typename ForwardRange , typename BinaryOp >
void Utils::for_each_pair (ForwardRange &&rng, BinaryOp &&op)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename ForwardIterator , typename BinaryOp >
void Utils::for_each_cartesian_pair (ForwardIterator first1, ForwardIterator last1, ForwardIterator first2, ForwardIterator last2, BinaryOp op)
 Execute op for each pair of elements between [first1, last1) and [first2, last2).
 
template<typename ForwardRange , typename BinaryOp >
void Utils::for_each_cartesian_pair (ForwardRange &&rng1, ForwardRange &&rng2, BinaryOp &&op)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename ForwardIterator , typename BinaryOp , typename BinaryCmp >
void Utils::for_each_cartesian_pair_if (ForwardIterator first1, ForwardIterator last1, ForwardIterator first2, ForwardIterator last2, BinaryOp op, BinaryCmp cmp)
 Execute op for each pair of elements between [first1, last1) and [first2, last2) if a condition is satisfied.
 
template<typename ForwardRange , typename BinaryOp , typename BinaryCmp >
void Utils::for_each_cartesian_pair_if (ForwardRange &&rng1, ForwardRange &&rng2, BinaryOp &&op, BinaryCmp cmp)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.