File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,14 @@ class ARCCORE_COLLECTIONS_EXPORT IMemoryAllocator
117
117
*
118
118
* S'il n'y a aucune garantie, retourne 0.
119
119
*/
120
+ virtual size_t guaranteedAlignment (MemoryAllocationArgs args) const ;
121
+
122
+ /* !
123
+ * \brief Valeur de l'alignement garanti par l'allocateur.
124
+ *
125
+ * \sa guaranteedAlignment()
126
+ */
127
+ ARCCORE_DEPRECATED_REASON (" Y2024: Use guaranteedAlignment() instead" )
120
128
virtual size_t guarantedAlignment (MemoryAllocationArgs args) const ;
121
129
122
130
/* !
@@ -157,7 +165,7 @@ class ARCCORE_COLLECTIONS_EXPORT IMemoryAllocator
157
165
virtual void deallocate (void * ptr) = 0;
158
166
ARCCORE_DEPRECATED_REASON (" Y2023: use adjustedCapacity(MemoryAllocationArgs,Int64,Int64) instead" )
159
167
virtual size_t adjustCapacity (size_t wanted_capacity, size_t element_size) = 0;
160
- ARCCORE_DEPRECATED_REASON (" Y2023: use guarantedAlignment (MemoryAllocationArgs) instead" )
168
+ ARCCORE_DEPRECATED_REASON (" Y2023: use guaranteedAlignment (MemoryAllocationArgs) instead" )
161
169
virtual size_t guarantedAlignment () = 0;
162
170
};
163
171
Original file line number Diff line number Diff line change @@ -441,6 +441,15 @@ guarantedAlignment(MemoryAllocationArgs) const
441
441
/* ---------------------------------------------------------------------------*/
442
442
/* ---------------------------------------------------------------------------*/
443
443
444
+ size_t IMemoryAllocator::
445
+ guaranteedAlignment (MemoryAllocationArgs args) const
446
+ {
447
+ return guarantedAlignment (args);
448
+ }
449
+
450
+ /* ---------------------------------------------------------------------------*/
451
+ /* ---------------------------------------------------------------------------*/
452
+
444
453
bool IMemoryAllocator3::
445
454
hasRealloc () const
446
455
{
Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ class TesterMemoryAllocatorV3
897
897
size_t guarantedAlignment (MemoryAllocationArgs args) const override
898
898
{
899
899
_checkValid (args);
900
- return m_default_allocator.guarantedAlignment (args);
900
+ return m_default_allocator.guaranteedAlignment (args);
901
901
}
902
902
903
903
void notifyMemoryArgsChanged (MemoryAllocationArgs old_args, MemoryAllocationArgs new_args, AllocatedMemoryInfo ptr) override
You can’t perform that action at this time.
0 commit comments