mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: One::Get (alternative to operator~)
git-svn-id: svn://ultimatepp.org/upp/trunk@10871 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
131d81b296
commit
252647efce
2 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ public:
|
|||
T *operator->() { ASSERT(ptr); return ptr; }
|
||||
const T *operator~() const { return ptr; }
|
||||
T *operator~() { return ptr; }
|
||||
const T *Get() const { return ptr; }
|
||||
T *Get() { return ptr; }
|
||||
const T& operator*() const { ASSERT(ptr); return *ptr; }
|
||||
T& operator*() { ASSERT(ptr); return *ptr; }
|
||||
|
||||
|
|
|
|||
|
|
@ -103,11 +103,13 @@ pointer to content.&]
|
|||
[s4; &]
|
||||
[s5;:One`:`:operator`~`(`)const: [@(0.0.255) const]_[*@4 T]_`*[* operator`~]()_[@(0.0.255) co
|
||||
nst]&]
|
||||
[s5;:Upp`:`:One`:`:Get`(`)const: [@(0.0.255) const]_[*@4 T]_`*[* Get]()_[@(0.0.255) const]&]
|
||||
[s2;%% Constant content pointer access. Returns constant pointer
|
||||
to content or NULL when there is no content.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:One`:`:operator`~`(`): [*@4 T]_`*[* operator`~]()&]
|
||||
[s5;:Upp`:`:One`:`:Get`(`): [*@4 T]_`*[* Get]()&]
|
||||
[s2;%% Content pointer access. Returns pointer to content or NULL
|
||||
when there is no content.&]
|
||||
[s3; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue