Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/boost/container/allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class allocator
void allocate_many(size_type elem_size, std::size_t n_elements, multiallocation_chain &chain)
{
BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 ));
dlmalloc::memchain ch;
dlmalloc::memchain ch;
if(!dlmalloc_heap().multialloc_nodes(n_elements, elem_size*sizeof(T), dlmalloc::default_contiguous, &ch)){
boost::container::throw_bad_alloc();
}
Expand All @@ -309,7 +309,7 @@ class allocator
void allocate_many(const size_type *elem_sizes, size_type n_elements, multiallocation_chain &chain)
{
BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 ));
dlmalloc::memchain ch;
dlmalloc::memchain ch;
if(!dlmalloc_heap().multialloc_arrays(n_elements, elem_sizes, sizeof(T), dlmalloc::default_contiguous, &ch)){
boost::container::throw_bad_alloc();
}
Expand Down
4 changes: 2 additions & 2 deletions include/boost/container/node_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class node_allocator
void allocate_many(size_type elem_size, std::size_t n_elements, multiallocation_chain &chain)
{
BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 ));
dlmalloc::memchain ch;
dlmalloc::memchain ch;
if(BOOST_UNLIKELY(!dlmalloc_heap().multialloc_nodes(n_elements, elem_size*sizeof(T), dlmalloc::default_contiguous, &ch))){
boost::container::throw_bad_alloc();
}
Expand All @@ -286,7 +286,7 @@ class node_allocator
void allocate_many(const size_type *elem_sizes, size_type n_elements, multiallocation_chain &chain)
{
BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 ));
dlmalloc::memchain ch;
dlmalloc::memchain ch;
dlmalloc_heap().multialloc_arrays(n_elements, elem_sizes, sizeof(T), dlmalloc::default_contiguous, &ch);
if(BOOST_UNLIKELY(ch.empty())){
boost::container::throw_bad_alloc();
Expand Down
Loading