ReactOS  0.4.15-dev-5452-g3c95c95
test_construct_iter_range< T > Struct Template Reference

#include <test_construct.h>

Public Member Functions

 test_construct_iter_range (const T &src)
void operator() (int) const

Public Attributes

const TfItems

Detailed Description

template<class T>
struct test_construct_iter_range< T >

Definition at line 108 of file test_construct.h.

Constructor & Destructor Documentation

◆ test_construct_iter_range()

template<class T >
test_construct_iter_range< T >::test_construct_iter_range ( const T src)

Definition at line 110 of file test_construct.h.

110  : fItems( src ) {
111  gTestController.SetCurrentTestName("iterator range constructor");
112  }
TestController gTestController
Definition: nc_alloc.cpp:46
static void SetCurrentTestName(const char *str)
Definition: nc_alloc.h:172
GLenum src
Definition: glext.h:6340

Member Function Documentation

◆ operator()()

template<class T >
void test_construct_iter_range< T >::operator() ( int  ) const

Definition at line 114 of file test_construct.h.

114  {
115  T t( fItems.begin(), fItems.end() );
116  // Prevent simulated failures during verification
118  EH_ASSERT( t == fItems );
119  CheckInvariant(t);
120  }
TestController gTestController
Definition: nc_alloc.cpp:46
GLdouble GLdouble t
Definition: gl.h:2047
EH_END_NAMESPACE void CheckInvariant(const C &)
Definition: LeakCheck.h:52
#define T
Definition: mbstring.h:31
#define EH_ASSERT
Definition: Prefix.h:37
static void CancelFailureCountdown()
Definition: nc_alloc.h:143

Member Data Documentation

◆ fItems

template<class T >
const T& test_construct_iter_range< T >::fItems

Definition at line 122 of file test_construct.h.

Referenced by test_construct_iter_range< T >::operator()().

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