ReactOS 0.4.15-dev-7889-g76290a6
test_list_sort Struct Reference

Public Member Functions

 test_list_sort ()
 
void operator() (TestList &list) const
 

Detailed Description

Definition at line 42 of file test_list.cpp.

Constructor & Destructor Documentation

◆ test_list_sort()

test_list_sort::test_list_sort ( )
inline

Definition at line 44 of file test_list.cpp.

45 {
46 gTestController.SetCurrentTestName("list::sort()");
47 }
TestController gTestController
Definition: nc_alloc.cpp:46
static void SetCurrentTestName(const char *str)
Definition: nc_alloc.h:172

Member Function Documentation

◆ operator()()

void test_list_sort::operator() ( TestList list) const
inline

Definition at line 49 of file test_list.cpp.

50 {
51 list.sort();
52
54
55 for ( TestList::iterator p = list.begin(); p != list.end(); p++ )
56 if ( p != list.begin() ) {
57 TestList::iterator tmp=p;
58 --tmp;
59 EH_ASSERT( *p >= *tmp );
60 }
61 }
#define EH_ASSERT
Definition: Prefix.h:37
Definition: list.h:37
void sort()
Definition: _list.h:660
iterator begin()
Definition: _list.h:367
iterator end()
Definition: _list.h:370
GLfloat GLfloat p
Definition: glext.h:8902
static void CancelFailureCountdown()
Definition: nc_alloc.h:143

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