CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
cond::serialization::access< std::forward_list< T > > Struct Template Reference

#include <Equal.h>

Static Public Member Functions

static bool equal_ (const std::forward_list< T > &first, const std::forward_list< T > &second)
 

Detailed Description

template<typename T>
struct cond::serialization::access< std::forward_list< T > >

Definition at line 211 of file Equal.h.

Member Function Documentation

template<typename T >
static bool cond::serialization::access< std::forward_list< T > >::equal_ ( const std::forward_list< T > &  first,
const std::forward_list< T > &  second 
)
inlinestatic

Definition at line 213 of file Equal.h.

References cond::serialization::equal().

214  {
215  auto first_it = first.cbegin();
216  auto second_it = second.cbegin();
217 
218  while (first_it != first.cend() and second_it != second.cend()) {
219  if (not equal(*first_it, *second_it))
220  return false;
221  first_it++;
222  second_it++;
223  }
224 
225  return first_it == first.cend() and second_it == second.cend();
226  }
bool equal(const T &first, const T &second)
Definition: Equal.h:34
U second(std::pair< T, U > const &p)