Example #1
0
   void swap(node_alloc_holder &x)
   {
      NodeAlloc& this_alloc   = this->node_alloc();
      NodeAlloc& other_alloc  = x.node_alloc();

      if (this_alloc != other_alloc){
         detail::do_swap(this_alloc, other_alloc);
      }

      this->icont().swap(x.icont());
   }
Example #2
0
 node_alloc_holder(const node_alloc_holder &other, const Pred &c)
    : members_(other.node_alloc(), typename ICont::value_compare(c))
 {}
Example #3
0
 explicit node_alloc_holder(const node_alloc_holder &x)
    : members_(NodeAllocTraits::select_on_container_copy_construction(x.node_alloc()))
 {}