libpsynth 0.2.1
Functions
static_equal

Equivalent to std::equal. More...

Functions

template<typename P1 , typename P2 >
PSYNTH_FORCEINLINE bool psynth::sound::static_equal (const P1 &p1, const P2 &p2)

Detailed Description

Equivalent to std::equal.

Pairs the elements semantically

Example:

   rgb8_frame_t rgb_red(255,0,0);
   bgr8_frame_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

Function Documentation

template<typename P1 , typename P2 >
PSYNTH_FORCEINLINE bool psynth::sound::static_equal ( const P1 &  p1,
const P2 &  p2 
)