ICU 72.1 72.1
|
C++ API: "Smart pointers" for use with and in ICU4C C++ code. More...
Go to the source code of this file.
Data Structures | |
class | icu::LocalPointerBase< T > |
"Smart pointer" base class; do not use directly: use LocalPointer etc. More... | |
class | icu::LocalPointer< T > |
"Smart pointer" class, deletes objects via the standard C++ delete operator. More... | |
class | icu::LocalArray< T > |
"Smart pointer" class, deletes objects via the C++ array delete[] operator. More... | |
Namespaces | |
namespace | icu |
File coll.h. | |
Macros | |
#define | U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction) |
"Smart pointer" definition macro, deletes objects via the closeFunction. More... | |
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
These classes are inspired by
but none of those provide for all of the goals for ICU smart pointers:
For details see https://icu.unicode.org/design/cpp/scoped_ptr
Definition in file localpointer.h.
#define U_DEFINE_LOCAL_OPEN_POINTER | ( | LocalPointerClassName, | |
Type, | |||
closeFunction | |||
) |
"Smart pointer" definition macro, deletes objects via the closeFunction.
Defines a subclass of LocalPointerBase which works just like LocalPointer<Type> except that this subclass will use the closeFunction rather than the C++ delete operator.
Usage example:
Definition at line 550 of file localpointer.h.