Live Cells C++
Reactive Programming for C++
|
Base class for a key distinguished from other keys by one value. More...
#include <keys.hpp>
Public Member Functions | |
value_key (T value) | |
Create a key distinguished from other keys by one value. | |
bool | eq (const key &other) const noexcept override |
Compare this key to another key for equality. | |
std::size_t | hash () const noexcept override |
Compute the hash code for this key. | |
Public Member Functions inherited from live_cells::key | |
virtual bool | is_unique () const noexcept |
Is this a unique key? | |
Base class for a key distinguished from other keys by one value.
Keys of this type compare equal if their runtime type is the same, and their values are equal.
|
inline |
Create a key distinguished from other keys by one value.
value | The value |
|
inlineoverridevirtualnoexcept |
Compare this key to another key for equality.
k | The key to compare to |
true
if this is equal to \aa k. Implements live_cells::key.
|
inlineoverridevirtualnoexcept |