| 449 | } |
| 450 | |
| 451 | void swap(BulkPoolAllocator<T, MinNumAllocs, MaxNumAllocs>& other) noexcept { |
| 452 | using std::swap; |
| 453 | swap(mHead, other.mHead); |
| 454 | swap(mListForFree, other.mListForFree); |
| 455 | } |
| 456 | |
| 457 | private: |
| 458 | // iterates the list of allocated memory to calculate how many to alloc next. |