|
ADS
Algorithms and Data Structures
|
The rules of the allocator-aware containers of the standard ([container.reqmts], [allocator.requirements]), beyond the book, written once for the containers of ADS that take an allocator A. More...
Files | |
| file | ADS/memory/AllocatorAware.h |
| The rules of the allocator-aware containers of the standard ([container.reqmts], [allocator.requirements]), beyond the book, written once for the containers of ADS that take an allocator A: a container rebinds A to the type of what it allocates (its nodes, its places, its blocks) by std::allocator_traits, a copy takes the allocator that select_on_container_copy_construction() gives, and a copy assignment, a move assignment and a swap take the allocator of the other container only when the trait propagate_on_container_copy_assignment, propagate_on_container_move_assignment or propagate_on_container_swap of A is true. | |
The rules of the allocator-aware containers of the standard ([container.reqmts], [allocator.requirements]), beyond the book, written once for the containers of ADS that take an allocator A.
The definitions, the invariants and the costs of the area are in Theory of memory.