Unordered: Starting to implement allocator propagation.

[SVN r73679]
This commit is contained in:
Daniel James committed 2011-08-11 21:18:19 +00:00
1 parent 99e6bef4ef
commit eacca89d4e
4 files changed
+17 -4

No files matched your search

+10 -1
View File
@@ -103,7 +103,16 @@ namespace boost { namespace unordered { namespace detail {
allocators_(a,a)
{
}
// TODO: Need to move allocators_, not copy. But compressed_pair
// doesn't support move parameters.
buckets(buckets& b, move_tag m)
: buckets_(),
bucket_count_(b.bucket_count),
allocators_(b.allocators_)
{
}
inline ~buckets()
{
if(this->buckets_) { this->delete_buckets(); }