foobar2000 SDK  2015-08-03
Static Public Member Functions
pfc::comparator_list< t_comparator >

#include <iterators.h>

Static Public Member Functions

template<typename t_list1 , typename t_list2 >
static int compare (const t_list1 &p_list1, const t_list2 &p_list2)
 

Detailed Description

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

Definition at line 85 of file iterators.h.

Member Function Documentation

template<typename t_comparator = comparator_default>
template<typename t_list1 , typename t_list2 >
static int pfc::comparator_list< t_comparator >::compare ( const t_list1 &  p_list1,
const t_list2 &  p_list2 
)
inlinestatic

Definition at line 88 of file iterators.h.

88  {
89  typename t_list1::const_iterator iter1 = p_list1.first();
90  typename t_list2::const_iterator iter2 = p_list2.first();
91  for(;;) {
92  if (iter1.is_empty() && iter2.is_empty()) return 0;
93  else if (iter1.is_empty()) return -1;
94  else if (iter2.is_empty()) return 1;
95  else {
96  int state = t_comparator::compare(*iter1,*iter2);
97  if (state != 0) return state;
98  }
99  ++iter1; ++iter2;
100  }
101  }
int compare(t1 const &p1, t2 const &p2)
Definition: pathUtils.h:29

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