|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
#include <sorted_list.hpp>
Public Types | |
| using | value_type = T |
| using | Comparator = aria::inplace_function<bool(const T&, const T&), 32> |
| Strict weak ordering on items. | |
| using | Signal = detail::ListSignal<T> |
Public Member Functions | |
| SortedList (std::shared_ptr< Source > source, Comparator comparator) | |
| ~SortedList ()=default | |
| SortedList (const SortedList &)=delete | |
| SortedList & | operator= (const SortedList &)=delete |
| std::size_t | size () const |
| bool | empty () const |
| std::shared_ptr< T > | at (std::size_t derived_index) const |
| std::vector< std::shared_ptr< T > > | snapshot () const |
| std::optional< std::size_t > | source_index_of (std::size_t derived_index) const |
| void | set_comparator (Comparator new_comparator) |
| using aria::SortedList< T, Source >::value_type = T |
| using aria::SortedList< T, Source >::Comparator = aria::inplace_function<bool(const T&, const T&), 32> |
Strict weak ordering on items.
Must be stable across calls for the lifetime of the SortedList (or until set_comparator). Owning, heap-free comparator handle (capacity 32 bytes).
| using aria::SortedList< T, Source >::Signal = detail::ListSignal<T> |
|
inline |
|
default |
|
delete |
|
delete |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |