12#ifndef ARCANE_UTILS_LINEAROFFSETMAP_H
13#define ARCANE_UTILS_LINEAROFFSETMAP_H
37template <
typename DataType>
42 static_assert(std::is_same_v<DataType, Int32> || std::is_same_v<DataType, Int64>);
47 ARCANE_UTILS_EXPORT
void add(DataType
size, DataType offset);
65 std::multimap<DataType, DataType> m_offset_map;
Fichier de configuration d'Arcane.
void add(DataType size, DataType offset)
Ajoute un offset offset de taille size.
Int32 size() const
Nombre d'éléments dans la table.
DataType getAndRemoveOffset(DataType size)
Récupère un offset suffisant pour un élément de taille size.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int32_t Int32
Type entier signé sur 32 bits.