1
0
Fork 0

Add: const operator->() for ScirptObjectRef.

pull/13109/head
Peter Nelson 2024-11-19 18:04:30 +00:00
parent 13da98dab8
commit 662da2a340
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 9 additions and 0 deletions

View File

@ -473,6 +473,15 @@ public:
{
return this->data;
}
/**
* The arrow operator on this reference returns the reference counted object.
* @return Pointer to the underlying object.
*/
const T *operator->() const
{
return this->data;
}
};
#endif /* SCRIPT_OBJECT_HPP */