static_equal
[Algorithms and Utility Functions]


Detailed Description

Equivalent to std::equal. Pairs the elements semantically.

Example:

rgb8_pixel_t rgb_red(255,0,0);
bgr8_pixel_t bgr_red(0,0,255);
assert(rgb_red[0]==255 && bgr_red[0]==0);

assert(static_equal(rgb_red,bgr_red));
assert(rgb_red==bgr_red);  // operator== invokes static_equal


Functions

template<typename P1, typename P2>
GIL_FORCEINLINE bool boost::gil::static_equal (const P1 &p1, const P2 &p2)

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google