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

Equivalent to std::copy. More...

Functions

template<typename Src , typename Dst >
void boost::gil::static_copy (const Src &src, Dst &dst)
 

Detailed Description

Equivalent to std::copy.

Pairs the elements semantically

Example:

rgb8_pixel_t rgb_red(255,0,0);
bgr8_pixel_t bgr_red;
static_copy(rgb_red, bgr_red); // same as bgr_red = rgb_red
assert(rgb_red[0] == 255 && bgr_red[0] == 0);
assert(rgb_red == bgr_red);

Function Documentation