| 48 | TypedChunkLocation() = default; |
| 49 | |
| 50 | TypedChunkLocation(IndexType chunk_index, IndexType index_in_chunk) |
| 51 | : chunk_index(chunk_index), index_in_chunk(index_in_chunk) { |
| 52 | static_assert(sizeof(TypedChunkLocation<IndexType>) == 2 * sizeof(IndexType)); |
| 53 | static_assert(alignof(TypedChunkLocation<IndexType>) == alignof(IndexType)); |
| 54 | } |
| 55 | |
| 56 | bool operator==(TypedChunkLocation other) const { |
| 57 | return chunk_index == other.chunk_index && index_in_chunk == other.index_in_chunk; |