ReactOS  0.4.15-dev-3297-g037c744
test_push_front< C > Struct Template Reference

#include <test_push_front.h>

Collaboration diagram for test_push_front< C >:

Public Member Functions

 test_push_front (const C &orig)
 
void operator() (C &c) const
 

Private Attributes

const Coriginal
 

Detailed Description

template<class C>
struct test_push_front< C >

Definition at line 27 of file test_push_front.h.

Constructor & Destructor Documentation

◆ test_push_front()

template<class C >
test_push_front< C >::test_push_front ( const C orig)
inline

Definition at line 29 of file test_push_front.h.

29  : original( orig ) {
30  gTestController.SetCurrentTestName("push_front() method");
31  }
TestController gTestController
Definition: nc_alloc.cpp:46
static void SetCurrentTestName(const char *str)
Definition: nc_alloc.h:172
const C & original

Member Function Documentation

◆ operator()()

template<class C >
void test_push_front< C >::operator() ( C c) const
inline

Definition at line 33 of file test_push_front.h.

34  {
35  typedef typename C::value_type _value_type;
36  c.push_front( _value_type() );
37  EH_ASSERT( c.size() == original.size() + 1 );
38  typename C::const_iterator next = c.begin();
39 
40  EH_ASSERT( EH_STD::equal( original.begin(), original.end(), ++next ) );
41  }
#define equal(x, y)
Definition: reader.cc:56
const C & original
const GLubyte * c
Definition: glext.h:8905
#define EH_ASSERT
Definition: Prefix.h:37
static unsigned __int64 next
Definition: rand_nt.c:6

Member Data Documentation

◆ original

template<class C >
const C& test_push_front< C >::original
private

Definition at line 43 of file test_push_front.h.

Referenced by test_push_front< C >::operator()().


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