mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CachedValue: Add const accessors
This commit is contained in:
parent
b4aa74b3be
commit
3037041222
1 changed files with 2 additions and 2 deletions
|
|
@ -105,12 +105,12 @@ public:
|
||||||
Type get() const noexcept { return cachedValue; }
|
Type get() const noexcept { return cachedValue; }
|
||||||
|
|
||||||
/** Dereference operator. Provides direct access to the property. */
|
/** Dereference operator. Provides direct access to the property. */
|
||||||
Type& operator*() noexcept { return cachedValue; }
|
const Type& operator*() const noexcept { return cachedValue; }
|
||||||
|
|
||||||
/** Dereference operator. Provides direct access to members of the property
|
/** Dereference operator. Provides direct access to members of the property
|
||||||
if it is of object type.
|
if it is of object type.
|
||||||
*/
|
*/
|
||||||
Type* operator->() noexcept { return &cachedValue; }
|
const Type* operator->() const noexcept { return &cachedValue; }
|
||||||
|
|
||||||
/** Returns true if the current value of the property (or the fallback value)
|
/** Returns true if the current value of the property (or the fallback value)
|
||||||
is equal to other.
|
is equal to other.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue