libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gbl::ReadWriteIndexable< CRTP, Key, Value, Writable > Class Template Reference
Inheritance diagram for gbl::ReadWriteIndexable< CRTP, Key, Value, Writable >:

Data Structures

class  SubscriptProxy
 

Public Member Functions

Value operator[] (Key key) const
 
SubscriptProxy operator[] (Key key)
 

Detailed Description

template<typename CRTP, typename Key, typename Value, bool Writable>
class gbl::ReadWriteIndexable< CRTP, Key, Value, Writable >

Definition at line 10 of file gimbal_generics.hpp.

Member Function Documentation

◆ operator[]() [1/2]

template<typename CRTP, typename Key, typename Value, bool Writable>
Value gbl::ReadWriteIndexable< CRTP, Key, Value, Writable >::operator[] ( Key key) const
inline

Definition at line 44 of file gimbal_generics.hpp.

44 {
45 return static_cast<const CRTP*>(this)->getElement_(key);
46 }

◆ operator[]() [2/2]

template<typename CRTP, typename Key, typename Value, bool Writable>
SubscriptProxy gbl::ReadWriteIndexable< CRTP, Key, Value, Writable >::operator[] ( Key key)
inline

Definition at line 48 of file gimbal_generics.hpp.

48 {
49 return SubscriptProxy { static_cast<CRTP*>(this), key };
50 }

The documentation for this class was generated from the following file: