ReactOS 0.4.16-dev-88-ga65b6ae
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)
inline

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
inline

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 }
#define EH_ASSERT
Definition: Prefix.h:37
const GLubyte * c
Definition: glext.h:8905
static void CancelFailureCountdown()
Definition: nc_alloc.h:143

Member Data Documentation

◆ original

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

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: