Added -> operator

This commit is contained in:
Alex 2023-02-10 16:51:56 +02:00
parent f6bd398af7
commit 9b56c49029
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -190,6 +190,7 @@ public:
}
operator bool() { return this->Load() != 0; }
T operator->() { return this->Load(); }
T operator++() { return this->FetchAdd(1) + 1; }
T operator--() { return this->FetchSub(1) - 1; }
T operator++(int) { return this->FetchAdd(1); }