Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 1999-11-24 20:43:00

23.1 Container requirements [lib.container.requirements]
8 Copy constructors for all container types defined in this clause copy
  an allocator argument from their respective first parameters. All
  other constructors for these container types take an Allocator&
  argument (_lib.allocator.requirements_), an allocator whose value type
  is the same as the container's value type. A copy of this argument is
  used for any memory allocation performed, by these constructors and by
  all member functions, during the lifetime of each container object.
  In all container types defined in this clause, the member get_alloca-
  tor() returns a copy of the Allocator object used to construct the

----- Original Message -----
From: Valentin Bonnard <Bonnard.V_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, November 24, 1999 6:37 PM
Subject: [boost] Re: Allocators (Was: smart pointer delete parameterization)

Howard Hinnant wrote:

> In a std::container memory can not allocated be allocated by new.

They certainly can use new, but they morally should use the allocator.

Valentin Bonnard
et the most popular downloads on the Web. They9re new!
They9re hot! They're FREE! Utilities, drivers, games.
It's all here.
-- Check out your group's private Chat room

Boost list run by bdawes at, gregod at, cpdaniel at, john at