ReactOS 0.4.16-dev-92-g0c2cdca
test_slist_sort Struct Reference

Public Member Functions

 test_slist_sort ()
 
void operator() (TestSList &slist) const
 

Detailed Description

Definition at line 42 of file test_slist.cpp.

Constructor & Destructor Documentation

◆ test_slist_sort()

test_slist_sort::test_slist_sort ( )
inline

Definition at line 43 of file test_slist.cpp.

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

Member Function Documentation

◆ operator()()

void test_slist_sort::operator() ( TestSList slist) const
inline

Definition at line 46 of file test_slist.cpp.

46 {
47 slist.sort();
48 for ( TestSList::iterator p = slist.begin(), q; p != slist.end(); q = p, p++ )
49 if ( p != slist.begin() ) {
50 EH_ASSERT( *p >= *q );
51 }
52 }
#define EH_ASSERT
Definition: Prefix.h:37
Definition: _slist.h:57
iterator end()
Definition: _slist.h:420
void sort()
Definition: _slist.h:790
iterator begin()
Definition: _slist.h:416
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLfloat GLfloat p
Definition: glext.h:8902

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