Opened 9 years ago
Closed 9 years ago
#8553 closed Feature Requests (fixed)
Provide swap() for scoped_allocator_adaptor
| Reported by: | Owned by: | Ion Gaztañaga | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | container | 
| Version: | Boost 1.53.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
Currently scoped_allocator_adapters can only be swapped if the underlying allocators are assignable and copy constructible. Some allocators (e.g. boost interprocess) are not assignable but swap aware. Providing a swap implementation calling the underlying allocators swap implementations would remove this restriction.
Attachments (1)
  Note:
 See   TracTickets
 for help on using tickets.
    

Patch to add swap support to scoped_allocator.hpp