@@ -210,10 +210,10 @@ class segment_manager_base
210210 // Experimental. Don't use.
211211 // !Allocates n_elements of elem_bytes bytes.
212212 // !Throws bad_alloc on failure. chain.size() is not increased on failure.
213- void allocate_many (size_type elem_bytes, size_type n_elements, multiallocation_chain &chain)
213+ void allocate_many (size_type elem_bytes, size_type n_elements, size_type alignment, multiallocation_chain &chain)
214214 {
215215 size_type prev_size = chain.size ();
216- MemoryAlgorithm::allocate_many (elem_bytes, n_elements, chain);
216+ MemoryAlgorithm::allocate_many (elem_bytes, n_elements, alignment, chain);
217217 if (!elem_bytes || chain.size () == prev_size){
218218 throw bad_alloc ();
219219 }
@@ -222,10 +222,10 @@ class segment_manager_base
222222 // Experimental. Don't use.
223223 // !Allocates n_elements, each one of element_lengths[i]*sizeof_element bytes.
224224 // !Throws bad_alloc on failure. chain.size() is not increased on failure.
225- void allocate_many (const size_type *element_lengths, size_type n_elements, size_type sizeof_element, multiallocation_chain &chain)
225+ void allocate_many (const size_type *element_lengths, size_type n_elements, size_type sizeof_element, size_type alignment, multiallocation_chain &chain)
226226 {
227227 size_type prev_size = chain.size ();
228- MemoryAlgorithm::allocate_many (element_lengths, n_elements, sizeof_element, chain);
228+ MemoryAlgorithm::allocate_many (element_lengths, n_elements, sizeof_element, alignment, chain);
229229 if (!sizeof_element || chain.size () == prev_size){
230230 throw bad_alloc ();
231231 }
@@ -234,15 +234,15 @@ class segment_manager_base
234234 // Experimental. Don't use.
235235 // !Allocates n_elements of elem_bytes bytes.
236236 // !Non-throwing version. chain.size() is not increased on failure.
237- void allocate_many (const std::nothrow_t &, size_type elem_bytes, size_type n_elements, multiallocation_chain &chain)
238- { MemoryAlgorithm::allocate_many (elem_bytes, n_elements, chain); }
237+ void allocate_many (const std::nothrow_t &, size_type elem_bytes, size_type n_elements, size_type alignment, multiallocation_chain &chain)
238+ { MemoryAlgorithm::allocate_many (elem_bytes, n_elements, alignment, chain); }
239239
240240 // Experimental. Don't use.
241241 // !Allocates n_elements, each one of
242242 // !element_lengths[i]*sizeof_element bytes.
243243 // !Non-throwing version. chain.size() is not increased on failure.
244- void allocate_many (const std::nothrow_t &, const size_type *elem_sizes, size_type n_elements, size_type sizeof_element, multiallocation_chain &chain)
245- { MemoryAlgorithm::allocate_many (elem_sizes, n_elements, sizeof_element, chain); }
244+ void allocate_many (const std::nothrow_t &, const size_type *elem_sizes, size_type n_elements, size_type sizeof_element, size_type alignment, multiallocation_chain &chain)
245+ { MemoryAlgorithm::allocate_many (elem_sizes, n_elements, sizeof_element, alignment, chain); }
246246
247247 // Experimental. Don't use.
248248 // !Deallocates all elements contained in chain.
0 commit comments