ReactOS 0.4.16-dev-340-g0540c21
memory_test.cpp File Reference
#include <memory>
#include "cppunit/cppunit_proxy.h"
Include dependency graph for memory_test.cpp:

Go to the source code of this file.

Classes

class  MemoryTest
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (MemoryTest)
 
auto_ptr< intCreateAutoPtr (int val)
 
bool CheckEquality (auto_ptr< int > pint, int val)
 

Function Documentation

◆ CheckEquality()

bool CheckEquality ( auto_ptr< int pint,
int  val 
)

Definition at line 31 of file memory_test.cpp.

32{ return *pint == val; }
GLuint GLfloat * val
Definition: glext.h:7180

Referenced by MemoryTest::auto_ptr_test().

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( MemoryTest  )

◆ CreateAutoPtr()

auto_ptr< int > CreateAutoPtr ( int  val)

Definition at line 28 of file memory_test.cpp.

29{ return auto_ptr<int>(new int(val)); }

Referenced by MemoryTest::auto_ptr_test().