12#ifndef ARCANE_UTILS_LINEAROFFSETMAP_H
13#define ARCANE_UTILS_LINEAROFFSETMAP_H
38template <
typename DataType>
43 static_assert(std::is_same_v<DataType, Int32> || std::is_same_v<DataType, Int64>);
48 ARCANE_UTILS_EXPORT
void add(DataType
size, DataType offset);
66 std::multimap<DataType, DataType> m_offset_map;
Arcane configuration file.
void add(DataType size, DataType offset)
Adds an offset offset of size size.
Int32 size() const
Number of elements in the table.
DataType getAndRemoveOffset(DataType size)
Retrieves a sufficient offset for an element of size size.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int32_t Int32
Signed integer type of 32 bits.