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

Concept defining an operator on a cell. More...

#include <types.hpp>

Concept definition

template<typename Op, typename C>
concept live_cells::ops::Operator = requires(const Op &op) {
{ op(std::declval<C>()) } -> Cell;
}
Defines the cell protocol.
Definition types.hpp:128
Concept defining an operator on a cell.
Definition types.hpp:178

Detailed Description

Concept defining an operator on a cell.

Types satisfying this concept must provide an overload of the function call operator that accepts a single Cell as an argument and returns a new Cell.

Operators may be chained using the pipe (|) operator.