ReactOS  0.4.15-dev-5608-gafb953a
test_push_back< C > Struct Template Reference

#include <test_push_back.h>

Collaboration diagram for test_push_back< C >:

Public Member Functions

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

Private Attributes

const Coriginal

Detailed Description

template<class C>
struct test_push_back< C >

Definition at line 30 of file test_push_back.h.

Constructor & Destructor Documentation

◆ test_push_back()

template<class C >
test_push_back< C >::test_push_back ( const C orig)

Definition at line 32 of file test_push_back.h.

32  : original( orig )
33  {
34  gTestController.SetCurrentTestName("push_back() method");
35  }
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_back< C >::operator() ( C c) const

Definition at line 37 of file test_push_back.h.

38  {
39  typedef typename C::value_type _value_type;
40  c.push_back(_value_type() );
41  // Prevent simulated failures during verification
43  EH_ASSERT( c.size() == original.size() + 1 );
44  EH_ASSERT( EH_STD::equal( original.begin(), original.end(), c.begin() ) );
45  }
TestController gTestController
Definition: nc_alloc.cpp:46
#define equal(x, y)
const GLubyte * c
Definition: glext.h:8905
#define EH_ASSERT
Definition: Prefix.h:37
const C & original
static void CancelFailureCountdown()
Definition: nc_alloc.h:143

Member Data Documentation

◆ original

template<class C >
const C& test_push_back< C >::original

Definition at line 47 of file test_push_back.h.

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

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