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

Concept defining a Cell that can have its value set. More...

#include <types.hpp>

Concept definition

template<typename C>
concept live_cells::MutableCell = Cell<C> && requires(C c) {
{ c.value(std::declval<typename C::value_type>()) };
}
Defines the cell protocol.
Definition types.hpp:128
Concept defining a Cell that can have its value set.
Definition types.hpp:155

Detailed Description

Concept defining a Cell that can have its value set.

The following method must be defined on C to satisfy the constraints:

  • void value(value_type);

    Set the value of the cell, and notify the observers of the cell that its value has changed.