|
Live Cells C++
Reactive Programming for C++
|
Dynamically type key container.
More...
#include <keys.hpp>
Public Member Functions | |
| const key & | operator* () const |
| const key * | operator-> () const |
Static Public Member Functions | |
| template<typename T , typename... Args> | |
| static key_ref | create (Args... args) |
Create a key_ref holding a key of type T. | |
Dynamically type key container.
This container holds a key, while preserving its runtime type.
Copying this class only copies the reference, not the underlying object, which is kept in memory until the last key_ref pointing to it is destroyed.
|
inlinestatic |
Create a key_ref holding a key of type T.
A new T is constructed in place with arguments args passed to the constructor.
| args | Arguments to pass to constructor of T. |
Get a reference to the underlying key.
key. Access a member of the underlying key.
key.