Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/localpointer_8h.html below:
ICU 77.1: common/unicode/localpointer.h File Reference
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
These classes are inspired by
- std::auto_ptr
- boost::scoped_ptr & boost::scoped_array
- Taligent Safe Pointers (TOnlyPointerTo)
but none of those provide for all of the goals for ICU smart pointers:
- Smart pointer owns the object and releases it when it goes out of scope.
- No transfer of ownership via copy/assignment to reduce misuse. Simpler & more robust.
- ICU-compatible: No exceptions.
- Need to be able to orphan/release the pointer and its ownership.
- Need variants for normal C++ object pointers, C++ arrays, and ICU C service objects.
For details see https://icu.unicode.org/design/cpp/scoped_ptr
Definition in file localpointer.h.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4