An allocator that uses std::malloc() directly.
More...
Classes | |
| struct | rebind |
| Provides a way to obtain an allocator for a different type. More... | |
Public Member Functions | |
| malloc_allocator (malloc_allocator const &) noexcept=default | |
| template<typename U > | |
| malloc_allocator (malloc_allocator< U > const &) noexcept | |
| pointer | address (reference x) const noexcept |
| const_pointer | address (const_reference x) const noexcept |
| pointer | allocate (size_type n, malloc_allocator< void >::const_pointer=0) |
| void | deallocate (pointer p, size_type) |
| size_type | max_size (void) const noexcept |
| void | construct (pointer p, const_reference val) |
| void | destroy (pointer p) |
| template<typename U , typename... Args> | |
| void | construct (U *p, Args &&... args) |
| template<typename U > | |
| void | destroy (U *p) |
An allocator that uses std::malloc() directly.
See The C++ Programming Language, 3rd edition 19.4 and C++11 Draft 20.9.5
1.8.13