4#ifndef GREM_CORE_DATA_TABLE_HPP
5#define GREM_CORE_DATA_TABLE_HPP
19#include <memory_resource>
26template <
typename Row,
typename Allocator = std::allocator<Row>>
31template <
typename Row,
typename Allocator>
34template <
typename... Ts,
typename Allocator>
35class TableIterator<
Tuple<Ts...>, Allocator> {
37 static_assert(
sizeof...(Ts) > 0);
39 using difference_type = std::ptrdiff_t;
40 using value_type =
Tuple<Ts...>;
41 using reference =
Tuple<Ts&...>;
42 using iterator_category = std::random_access_iterator_tag;
47 [[nodiscard]]
constexpr reference* operator->() noexcept {
52 TableIterator() =
default;
54 constexpr TableIterator(Table<value_type, Allocator>* table, std::size_t rowIndex) noexcept
56 , rowIndex(rowIndex) {}
58 constexpr operator TableIterator<const value_type, Allocator>() const noexcept {
59 return TableIterator<const value_type, Allocator>{table, rowIndex};
62 [[nodiscard]]
constexpr reference
operator*()
const {
63 return [&]<std::size_t... Indices>(std::index_sequence<Indices...>) {
65 }(std::make_index_sequence<
sizeof...(Ts)>{});
68 [[nodiscard]]
constexpr pointer operator->()
const {
69 return pointer{**
this};
72 [[nodiscard]]
constexpr reference operator[](difference_type n)
const {
76 constexpr TableIterator& operator++() {
81 constexpr TableIterator& operator--() {
86 constexpr TableIterator operator++(
int) {
87 return TableIterator{table, rowIndex++};
90 constexpr TableIterator operator--(
int) {
91 return TableIterator{table, rowIndex--};
94 constexpr TableIterator&
operator+=(difference_type n) {
95 rowIndex +=
static_cast<std::size_t
>(n);
99 constexpr TableIterator&
operator-=(difference_type n) {
100 rowIndex -=
static_cast<std::size_t
>(n);
104 [[nodiscard]]
friend constexpr TableIterator
operator+(TableIterator a, difference_type b) {
105 return TableIterator{a.table, a.rowIndex +
static_cast<std::size_t
>(b)};
108 [[nodiscard]]
friend constexpr TableIterator
operator+(difference_type a, TableIterator b) {
109 return TableIterator{b.table,
static_cast<std::size_t
>(a) + b.rowIndex};
112 [[nodiscard]]
friend constexpr TableIterator
operator-(TableIterator a, difference_type b) {
113 return TableIterator{a.table, a.rowIndex -
static_cast<std::size_t
>(b)};
116 [[nodiscard]]
friend constexpr difference_type
operator-(TableIterator a, TableIterator b) {
118 return static_cast<difference_type
>(a.rowIndex - b.rowIndex);
121 [[nodiscard]]
friend constexpr bool operator==(TableIterator a, TableIterator b) {
123 return a.rowIndex == b.rowIndex;
126 [[nodiscard]]
friend constexpr auto operator<=>(TableIterator a, TableIterator b) {
128 return a.rowIndex <=> b.rowIndex;
132 Table<value_type, Allocator>* table;
133 std::size_t rowIndex;
136template <
typename... Ts,
typename Allocator>
137class TableIterator<const
Tuple<Ts...>, Allocator> {
139 using difference_type = std::ptrdiff_t;
140 using value_type =
Tuple<Ts...>;
141 using reference =
Tuple<
const Ts&...>;
142 using iterator_category = std::random_access_iterator_tag;
147 [[nodiscard]]
constexpr reference* operator->() noexcept {
152 TableIterator() =
default;
154 constexpr TableIterator(
const Table<value_type, Allocator>* table, std::size_t rowIndex) noexcept
156 , rowIndex(rowIndex) {}
158 [[nodiscard]]
constexpr reference
operator*()
const {
159 return [&]<std::size_t... Indices>(std::index_sequence<Indices...>) {
161 }(std::make_index_sequence<
sizeof...(Ts)>{});
164 [[nodiscard]]
constexpr pointer operator->()
const {
165 return pointer{**
this};
168 [[nodiscard]]
constexpr reference operator[](difference_type n)
const {
172 constexpr TableIterator& operator++() {
177 constexpr TableIterator& operator--() {
182 constexpr TableIterator operator++(
int) {
183 return TableIterator{table, rowIndex++};
186 constexpr TableIterator operator--(
int) {
187 return TableIterator{table, rowIndex--};
190 constexpr TableIterator&
operator+=(difference_type n) {
191 rowIndex +=
static_cast<std::size_t
>(n);
195 constexpr TableIterator&
operator-=(difference_type n) {
196 rowIndex -=
static_cast<std::size_t
>(n);
200 [[nodiscard]]
friend constexpr TableIterator
operator+(TableIterator a, difference_type b) {
201 return TableIterator{a.table, a.rowIndex +
static_cast<std::size_t
>(b)};
204 [[nodiscard]]
friend constexpr TableIterator
operator+(difference_type a, TableIterator b) {
205 return TableIterator{b.table,
static_cast<std::size_t
>(a) + b.rowIndex};
208 [[nodiscard]]
friend constexpr TableIterator
operator-(TableIterator a, difference_type b) {
209 return TableIterator{a.table, a.rowIndex -
static_cast<std::size_t
>(b)};
212 [[nodiscard]]
friend constexpr difference_type
operator-(TableIterator a, TableIterator b) {
214 return static_cast<difference_type
>(a.rowIndex - b.rowIndex);
217 [[nodiscard]]
friend constexpr bool operator==(TableIterator a, TableIterator b) {
219 return a.rowIndex == b.rowIndex;
222 [[nodiscard]]
friend constexpr auto operator<=>(TableIterator a, TableIterator b) {
224 return a.rowIndex <=> b.rowIndex;
228 const Table<value_type, Allocator>* table;
229 std::size_t rowIndex;
234template <
typename... Ts,
typename Allocator>
243 using iterator = detail::TableIterator<value_type, Allocator>;
252 constexpr explicit Table(
const Allocator& allocator) noexcept
253 : allocator(allocator) {}
256 :
Table(other, std::allocator_traits<Allocator>::select_on_container_copy_construction(other.
get_allocator())) {}
258 constexpr Table(
const Table& other,
const Allocator& allocator)
264 : rowCount(std::exchange(other.rowCount,
size_type{0}))
265 , rowCapacity(std::exchange(other.rowCapacity,
size_type{0}))
266 , columns(std::exchange(other.columns, {}))
267 , allocator(other.get_allocator()) {}
271 if constexpr (!std::allocator_traits<Allocator>::is_always_equal::value) {
272 if (allocator != other.get_allocator()) {
273 assign(std::move(other));
278 rowCount = std::exchange(other.rowCount,
size_type{0});
279 rowCapacity = std::exchange(other.rowCapacity,
size_type{0});
280 columns = std::exchange(other.columns, {});
288 if (
this == &other) {
291 if constexpr (std::allocator_traits<Allocator>::propagate_on_container_copy_assignment::value) {
292 if constexpr (!std::allocator_traits<Allocator>::is_always_equal::value) {
293 if (allocator != other.get_allocator()) {
297 allocator = other.get_allocator();
304 std::allocator_traits<Allocator>::is_always_equal::value) {
305 if (
this == &other) {
308 if constexpr (!std::allocator_traits<Allocator>::propagate_on_container_move_assignment::value) {
309 if constexpr (!std::allocator_traits<Allocator>::is_always_equal::value) {
310 if (allocator != other.get_allocator()) {
311 assign(std::move(other));
318 rowCount = std::exchange(other.rowCount,
size_type{0});
319 rowCapacity = std::exchange(other.rowCapacity,
size_type{0});
320 columns = std::exchange(other.columns, {});
321 if constexpr (std::allocator_traits<Allocator>::propagate_on_container_move_assignment::value) {
322 allocator = other.get_allocator();
331 template <
typename T>
333 using ColumnPointer =
typename std::allocator_traits<typename std::allocator_traits<Allocator>::template rebind_alloc<T>>
::pointer;
337 template <
typename T>
339 using ColumnPointer =
typename std::allocator_traits<typename std::allocator_traits<Allocator>::template rebind_alloc<T>>
::pointer;
343 template <std::
size_t ColumnIndex>
348 template <std::
size_t ColumnIndex>
353 template <
typename T>
355 using ColumnPointer =
typename std::allocator_traits<typename std::allocator_traits<Allocator>::template rebind_alloc<T>>
::pointer;
359 template <
typename T>
361 using ColumnPointer =
typename std::allocator_traits<typename std::allocator_traits<Allocator>::template rebind_alloc<T>>
::pointer;
365 template <std::
size_t ColumnIndex>
367 using T = std::remove_cvref_t<
decltype(*columns.template
get<ColumnIndex>())>;
371 template <std::
size_t ColumnIndex>
372 [[nodiscard]]
constexpr auto column()
const {
373 using T = std::remove_cvref_t<
decltype(*columns.template
get<ColumnIndex>())>;
379 throw std::out_of_range{
"pos >= size()"};
386 throw std::out_of_range{
"pos >= size()"};
469 [[nodiscard]]
constexpr bool empty() const noexcept {
479 static_cast<size_type>(std::numeric_limits<difference_type>::max()),
480 static_cast<size_type>(std::numeric_limits<size_type>::max() / std::max({
sizeof(Ts)...})),
481 static_cast<size_type>(std::allocator_traits<Allocator>::max_size(allocator)),
490 throw std::length_error{
"Maximum capacity exceeded."};
492 Table newTable{allocator};
493 newTable.rowCapacity = newRowCapacity;
495 using T = std::tuple_element_t<columnIndex, value_type>;
496 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
497 ColumnAllocator columnAllocator = allocator;
498 newTable.columns.template
get<columnIndex>() = std::allocator_traits<ColumnAllocator>::allocate(columnAllocator, newRowCapacity);
500 newTable.assign(std::move(*
this));
501 *
this = std::move(newTable);
510 *
this =
Table{*
this};
516 using T = std::tuple_element_t<columnIndex, value_type>;
517 if constexpr (!std::is_trivially_destructible_v<T>) {
518 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
519 ColumnAllocator columnAllocator = allocator;
520 for (
size_type rowIndex = rowCount; rowIndex-- > 0;) {
521 std::allocator_traits<ColumnAllocator>::destroy(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex);
528 template <
typename... Us>
531 throw std::length_error{
"size() >= max_size()"};
539 using T = std::tuple_element_t<columnIndex, value_type>;
540 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
541 ColumnAllocator columnAllocator = allocator;
543 std::allocator_traits<ColumnAllocator>::construct(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowCount,
547 using OtherT = std::tuple_element_t<otherColumnIndex, value_type>;
548 if constexpr (!std::is_trivially_destructible_v<OtherT>) {
549 using OtherColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<OtherT>;
550 OtherColumnAllocator otherColumnAllocator = allocator;
551 std::allocator_traits<OtherColumnAllocator>::destroy(otherColumnAllocator, std::to_address(columns.template
get<otherColumnIndex>()) + rowCount);
560 template <
typename... Us>
563 throw std::length_error{
"size() >= max_size()"};
571 using T = std::tuple_element_t<columnIndex, value_type>;
572 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
573 ColumnAllocator columnAllocator = allocator;
575 std::allocator_traits<ColumnAllocator>::construct(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowCount,
579 using OtherT = std::tuple_element_t<otherColumnIndex, value_type>;
580 if constexpr (!std::is_trivially_destructible_v<OtherT>) {
581 using OtherColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<OtherT>;
582 OtherColumnAllocator otherColumnAllocator = allocator;
583 std::allocator_traits<OtherColumnAllocator>::destroy(otherColumnAllocator, std::to_address(columns.template
get<otherColumnIndex>()) + rowCount);
592 template <
typename... Args>
602 using T = std::tuple_element_t<columnIndex, value_type>;
603 if constexpr (!std::is_trivially_destructible_v<T>) {
604 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
605 ColumnAllocator columnAllocator = allocator;
606 std::allocator_traits<ColumnAllocator>::destroy(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowCount);
612 if (newRowCount <
size()) {
619 using T = std::tuple_element_t<columnIndex, value_type>;
620 if constexpr (!std::is_trivially_default_constructible_v<T>) {
621 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
622 ColumnAllocator columnAllocator = allocator;
625 while (rowIndex < newRowCount) {
626 std::allocator_traits<ColumnAllocator>::construct(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex);
630 while (rowIndex-- > rowCount) {
631 std::allocator_traits<ColumnAllocator>::destroy(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex);
634 using OtherT = std::tuple_element_t<otherColumnIndex, value_type>;
635 if constexpr (!std::is_trivially_destructible_v<OtherT>) {
636 using OtherColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<OtherT>;
637 OtherColumnAllocator otherColumnAllocator = allocator;
638 for (
size_type rowIndex = newRowCount; rowIndex-- > rowCount;) {
639 std::allocator_traits<OtherColumnAllocator>::destroy(otherColumnAllocator,
648 rowCount = newRowCount;
652 constexpr void swap(
Table& other)
noexcept(std::allocator_traits<Allocator>::is_always_equal::value) {
653 if (
this == &other) {
657 swap(rowCount, other.rowCount);
658 swap(rowCapacity, other.rowCapacity);
659 swap(columns, other.columns);
660 if constexpr (std::allocator_traits<Allocator>::propagate_on_container_swap::value) {
661 swap(allocator, other.allocator);
662 }
else if constexpr (!std::allocator_traits<Allocator>::is_always_equal::value) {
668 return std::equal(
begin(),
end(), other.begin(), other.end());
672 return std::lexicographical_compare(
begin(),
end(), other.begin(), other.end());
676 return !(other < *
this);
680 return other < *
this;
684 return !(*
this < other);
693 friend const_iterator;
695 constexpr void reset() noexcept {
698 using T = std::tuple_element_t<columnIndex, value_type>;
699 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
700 ColumnAllocator columnAllocator = allocator;
702 std::allocator_traits<ColumnAllocator>::deallocate(columnAllocator, columns.template
get<columnIndex>(), rowCapacity);
709 constexpr void assign(
const Table& other) {
710 const size_type newRowCount = other.rowCount;
711 if constexpr ((std::is_default_constructible_v<Ts> && ...) && (std::is_copy_assignable_v<Ts> && ...)) {
718 if constexpr ((std::is_copy_assignable_v<Ts> && ...)) {
719 if (newRowCount <= rowCount) {
720 while (rowCount > newRowCount) {
731 reserve(newRowCount);
733 using T = std::tuple_element_t<columnIndex, value_type>;
734 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
735 ColumnAllocator columnAllocator = allocator;
736 size_type rowIndex = 0;
738 while (rowIndex < newRowCount) {
739 std::allocator_traits<ColumnAllocator>::construct(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex,
744 while (rowIndex-- > 0) {
745 std::allocator_traits<ColumnAllocator>::destroy(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex);
748 using OtherT = std::tuple_element_t<otherColumnIndex, value_type>;
749 if constexpr (!std::is_trivially_destructible_v<OtherT>) {
750 using OtherColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<OtherT>;
751 OtherColumnAllocator otherColumnAllocator = allocator;
752 for (size_type rowIndex = newRowCount; rowIndex-- > 0;) {
753 std::allocator_traits<OtherColumnAllocator>::destroy(otherColumnAllocator, std::to_address(columns.template
get<otherColumnIndex>()) + rowIndex);
760 rowCount = newRowCount;
764 constexpr void assign(Table&& other) {
765 const size_type newRowCount = other.rowCount;
766 if constexpr ((std::is_default_constructible_v<Ts> && ...) && (std::is_move_assignable_v<Ts> && ...)) {
773 if constexpr ((std::is_move_assignable_v<Ts> && ...)) {
774 if (newRowCount <= rowCount) {
775 while (rowCount > newRowCount) {
786 reserve(newRowCount);
788 using T = std::tuple_element_t<columnIndex, value_type>;
789 using ColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<T>;
790 ColumnAllocator columnAllocator = allocator;
791 size_type rowIndex = 0;
793 while (rowIndex < newRowCount) {
794 std::allocator_traits<ColumnAllocator>::construct(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex,
799 while (rowIndex-- > 0) {
800 std::allocator_traits<ColumnAllocator>::destroy(columnAllocator, std::to_address(columns.template
get<columnIndex>()) + rowIndex);
803 using OtherT = std::tuple_element_t<otherColumnIndex, value_type>;
804 if constexpr (!std::is_trivially_destructible_v<OtherT>) {
805 using OtherColumnAllocator =
typename std::allocator_traits<Allocator>::template rebind_alloc<OtherT>;
806 OtherColumnAllocator otherColumnAllocator = allocator;
807 for (size_type rowIndex = newRowCount; rowIndex-- > 0;) {
808 std::allocator_traits<OtherColumnAllocator>::destroy(otherColumnAllocator, std::to_address(columns.template
get<otherColumnIndex>()) + rowIndex);
815 rowCount = newRowCount;
819 size_type rowCount = 0;
820 size_type rowCapacity = 0;
821 Tuple<typename std::allocator_traits<typename std::allocator_traits<Allocator>::template rebind_alloc<Ts>>::pointer...> columns{};
822 [[no_unique_address]] Allocator allocator;
825template <std::
size_t Index,
typename Row,
typename Allocator>
830template <std::
size_t Index,
typename Row,
typename Allocator>
835template <
typename T,
typename Row,
typename Allocator>
837 return t.template
get<T>(rowIndex);
840template <
typename T,
typename Row,
typename Allocator>
842 return t.template
get<T>(rowIndex);
845template <
typename T,
typename Row,
typename Allocator>
850template <
typename T,
typename Row,
typename Allocator>
855template <std::
size_t ColumnIndex,
typename Row,
typename Allocator>
860template <std::
size_t ColumnIndex,
typename Row,
typename Allocator>
869template <
typename Row>
#define GREM_ASSERT(expression)
Definition assertions.hpp:77
std::reverse_iterator< iterator > reverse_iterator
Definition Table.hpp:247
constexpr Table & operator=(Table &&other) noexcept(std::allocator_traits< Allocator >::is_always_equal::value)
Definition Table.hpp:303
constexpr const_reference back() const
Definition Table.hpp:416
constexpr Table()=default
constexpr reverse_iterator rend() noexcept
Definition Table.hpp:457
constexpr reference emplace_back(Args &&... args)
Definition Table.hpp:593
constexpr allocator_type get_allocator() const noexcept
Definition Table.hpp:327
Tuple< Ts... > value_type
Definition Table.hpp:237
constexpr Table & operator=(const Table &other)
Definition Table.hpp:287
constexpr const_reference operator[](size_type pos) const
Definition Table.hpp:396
constexpr const_reverse_iterator rbegin() const noexcept
Definition Table.hpp:449
constexpr bool empty() const noexcept
Definition Table.hpp:469
constexpr void push_back(const Tuple< Us... > &value)
Definition Table.hpp:529
Allocator allocator_type
Definition Table.hpp:238
constexpr const_reverse_iterator crend() const noexcept
Definition Table.hpp:465
detail::TableIterator< const value_type, Allocator > const_iterator
Definition Table.hpp:244
constexpr decltype(auto) get(size_type rowIndex) const
Definition Table.hpp:349
constexpr Span< const T > column() const
Definition Table.hpp:360
constexpr size_type capacity() const noexcept
Definition Table.hpp:504
constexpr const_reference at(size_type pos) const
Definition Table.hpp:384
detail::TableIterator< value_type, Allocator > iterator
Definition Table.hpp:243
constexpr T & get(size_type rowIndex)
Definition Table.hpp:332
Tuple< const Ts &... > const_reference
Definition Table.hpp:242
constexpr bool operator>=(const Table &other) const
Definition Table.hpp:683
constexpr Table(const Table &other)
Definition Table.hpp:255
constexpr bool operator<=(const Table &other) const
Definition Table.hpp:675
Tuple< Ts &... > reference
Definition Table.hpp:241
std::size_t size_type
Definition Table.hpp:239
constexpr Table(Table &&other, const Allocator &allocator)
Definition Table.hpp:269
friend constexpr void swap(Table &a, Table &b) noexcept(noexcept(a.swap(b)))
Definition Table.hpp:687
constexpr void resize(size_type newRowCount)
Definition Table.hpp:611
constexpr void clear() noexcept
Definition Table.hpp:514
constexpr reference front()
Definition Table.hpp:401
constexpr bool operator>(const Table &other) const
Definition Table.hpp:679
constexpr Table(const Table &other, const Allocator &allocator)
Definition Table.hpp:258
constexpr Table(Table &&other) noexcept
Definition Table.hpp:263
constexpr const_iterator end() const noexcept
Definition Table.hpp:437
std::ptrdiff_t difference_type
Definition Table.hpp:240
constexpr const_iterator cbegin() const noexcept
Definition Table.hpp:429
constexpr void reserve(size_type newRowCapacity)
Definition Table.hpp:485
constexpr void push_back(Tuple< Us... > &&value)
Definition Table.hpp:561
constexpr void pop_back()
Definition Table.hpp:598
constexpr iterator end() noexcept
Definition Table.hpp:433
constexpr const_reverse_iterator crbegin() const noexcept
Definition Table.hpp:453
constexpr ~Table()
Definition Table.hpp:283
constexpr decltype(auto) get(size_type rowIndex)
Definition Table.hpp:344
constexpr bool operator==(const Table &other) const
Definition Table.hpp:667
std::reverse_iterator< const_iterator > const_reverse_iterator
Definition Table.hpp:248
constexpr reference back()
Definition Table.hpp:411
constexpr size_type max_size() const noexcept
Definition Table.hpp:477
constexpr reference operator[](size_type pos)
Definition Table.hpp:391
constexpr const_iterator begin() const noexcept
Definition Table.hpp:425
constexpr iterator begin() noexcept
Definition Table.hpp:421
typename const_iterator::pointer const_pointer
Definition Table.hpp:246
constexpr reference at(size_type pos)
Definition Table.hpp:377
constexpr const_iterator cend() const noexcept
Definition Table.hpp:441
constexpr void swap(Table &other) noexcept(std::allocator_traits< Allocator >::is_always_equal::value)
Definition Table.hpp:652
constexpr void shrink_to_fit()
Definition Table.hpp:508
constexpr auto column()
Definition Table.hpp:366
constexpr Table(const Allocator &allocator) noexcept
Definition Table.hpp:252
constexpr size_type size() const noexcept
Definition Table.hpp:473
constexpr bool operator<(const Table &other) const
Definition Table.hpp:671
constexpr auto column() const
Definition Table.hpp:372
constexpr reverse_iterator rbegin() noexcept
Definition Table.hpp:445
constexpr const T & get(size_type rowIndex) const
Definition Table.hpp:338
typename iterator::pointer pointer
Definition Table.hpp:245
constexpr const_reverse_iterator rend() const noexcept
Definition Table.hpp:461
constexpr Span< T > column()
Definition Table.hpp:354
constexpr const_reference front() const
Definition Table.hpp:406
Definition concepts.hpp:106
@ T
't'
Definition keyboard.hpp:90
Definition Allocation.hpp:554
grem::Table< Row, std::pmr::polymorphic_allocator< Row > > Table
Definition Table.hpp:870
constexpr tuple_element_t< Index, Pair< T1, T2 > > & get(Pair< T1, T2 > &t) noexcept
Definition Pair.hpp:202
constexpr Offset2D & operator+=(Offset2D &a, Offset2D b) noexcept
Definition extents.hpp:646
constexpr Tuple< Ts &... > tie(Ts &... ts)
Definition Tuple.hpp:451
constexpr Offset2D operator-(Offset2D a) noexcept
Definition extents.hpp:664
constexpr bool operator==(const Indirect< A, AllocatorA > &a, const Indirect< B, AllocatorB > &b)
Definition Indirect.hpp:246
Tuple(Ts...) -> Tuple< Ts... >
constexpr Offset2D operator*(Offset2D a, int32_t b) noexcept
Definition extents.hpp:692
constexpr Offset2D & operator-=(Offset2D &a, Extent2D b) noexcept
Definition extents.hpp:658
constexpr decltype(auto) column(Registry< T, ElementID, Container > &r)
Definition Registry.hpp:698
constexpr std::compare_three_way_result_t< A, B > operator<=>(const Indirect< A, AllocatorA > &a, const Indirect< B, AllocatorB > &b)
Definition Indirect.hpp:273
constexpr auto operator+(const ConstantString< CharT, LengthA > &a, const ConstantString< CharT, LengthB > &b)
Definition ConstantString.hpp:656