Live Cells C++
Reactive Programming for C++
Loading...
Searching...
No Matches
live_cells::Keyable Concept Reference

Concept defining an object that can be identified by a key. More...

#include <types.hpp>

Concept definition

template<typename T>
concept live_cells::Keyable = requires(const T &o) {
{ o.key() } -> std::same_as<key_ref>;
}
Concept defining an object that can be identified by a key.
Definition types.hpp:72

Detailed Description

Concept defining an object that can be identified by a key.

The following methods are required:

  • key_ref key()

    Return the key, which identifies the object.