foobar2000 SDK  2015-01-14
Static Public Member Functions
pfc::comparator_array< t_comparator >

#include <array.h>

Static Public Member Functions

template<typename t_array1 , typename t_array2 >
static int compare (const t_array1 &p_array1, const t_array2 &p_array2)
 

Detailed Description

template<typename t_comparator = comparator_default>
class pfc::comparator_array< t_comparator >

Definition at line 259 of file array.h.

Member Function Documentation

template<typename t_comparator = comparator_default>
template<typename t_array1 , typename t_array2 >
static int pfc::comparator_array< t_comparator >::compare ( const t_array1 &  p_array1,
const t_array2 &  p_array2 
)
inlinestatic

Definition at line 262 of file array.h.

262  {
263  t_size walk = 0;
264  for(;;) {
265  if (walk >= p_array1.get_size() && walk >= p_array2.get_size()) return 0;
266  else if (walk >= p_array1.get_size()) return -1;
267  else if (walk >= p_array2.get_size()) return 1;
268  else {
269  int state = t_comparator::compare(p_array1[walk],p_array2[walk]);
270  if (state != 0) return state;
271  }
272  ++walk;
273  }
274  }
int compare(t1 const &p1, t2 const &p2)
Definition: pathUtils.h:29
size_t t_size
Definition: int_types.h:48

The documentation for this class was generated from the following file: