Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
static_for_each

Equivalent to std::for_each. More...

Functions

template<typename P1 , typename Op >
Op boost::gil::static_for_each (P1 &p1, Op op)
 
template<typename P1 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, Op op)
 
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each (P1 &p1, P2 &p2, Op op)
 
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each (P1 &p1, const P2 &p2, Op op)
 
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, P2 &p2, Op op)
 
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, const P2 &p2, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (P1 &p1, P2 &p2, P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (P1 &p1, P2 &p2, const P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (P1 &p1, const P2 &p2, P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (P1 &p1, const P2 &p2, const P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, P2 &p2, P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, P2 &p2, const P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, const P2 &p2, P3 &p3, Op op)
 
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each (const P1 &p1, const P2 &p2, const P3 &p3, Op op)
 

Detailed Description

Equivalent to std::for_each.

Pairs the elements semantically

Example: Use static_for_each to increment a planar pixel iterator

struct increment {
template <typename Incrementable>
void operator()(Incrementable& x) const { ++x; }
};
template <typename ColorBase>
void increment_elements(ColorBase& cb) {
}
bits8 red[2], green[2], blue[2];
rgb8c_planar_ptr_t p1(red,green,blue);
increment_elements(p1);
++p2;
assert(p1 == p2);

Function Documentation

template<typename P1 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
Op  op 
)
inline
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each ( P1 &  p1,
P2 &  p2,
Op  op 
)
inline
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each ( P1 &  p1,
const P2 &  p2,
Op  op 
)
inline
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
P2 &  p2,
Op  op 
)
inline
template<typename P1 , typename P2 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
const P2 &  p2,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( P1 &  p1,
P2 &  p2,
P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( P1 &  p1,
P2 &  p2,
const P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( P1 &  p1,
const P2 &  p2,
P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( P1 &  p1,
const P2 &  p2,
const P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
P2 &  p2,
P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
P2 &  p2,
const P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
const P2 &  p2,
P3 &  p3,
Op  op 
)
inline
template<typename P1 , typename P2 , typename P3 , typename Op >
Op boost::gil::static_for_each ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
Op  op 
)
inline