Combines an object with a name.
Instances of Named have reference-like semantics. That is, Named stores a reference to a wrapped value, rather than storing the value internally.
| T | the type of reference that is wrapped. Passing "const T" will cause the Named instance to hold a "const T&"; passing "T" will cause the Named instance to hold a "T&". |
Public Member Functions | |
| auto | operator== (const Named &other) const |
| auto | operator!= (const Named &other) const |
| auto | operator< (const Named &other) const |
| auto | operator<= (const Named &other) const |
| auto | operator> (const Named &other) const |
| auto | operator>= (const Named &other) const |
Public Attributes | |
| std::string_view | name |
| A name that corresponds to the value. | |
| T & | value |
| A reference to a value to wrap. | |
|
inline |
|
inline |
References JUCE_COMPARISON_OPS.
|
inline |
|
inline |
|
inline |
|
inline |
| std::string_view juce::Named< T >::name |
A name that corresponds to the value.
| T& juce::Named< T >::value |
A reference to a value to wrap.