Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
aria::ListSourceOf Concept Reference

#include <list_source.hpp>

Concept definition

template<typename L, typename T>
concept ListSourceOf = requires(L& l,
std::function<void(const ListChange<T>&)> fn,
std::size_t i) {
{ l.observe(std::move(fn)) } -> std::same_as<Subscription>;
{ l.size() } -> std::convertible_to<std::size_t>;
{ l.at(i) } -> std::convertible_to<std::shared_ptr<T>>;
{ l.snapshot() } -> std::convertible_to<std::vector<std::shared_ptr<T>>>;
}
Definition list_source.hpp:80
An owning event in a sequential list edit stream.
Definition list_change.hpp:16