Click here to Skip to main content
15,892,005 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: custom allocator for one container instance Pin
Joaquín M López Muñoz22-Nov-04 9:42
Joaquín M López Muñoz22-Nov-04 9:42 
GeneralRe: custom allocator for one container instance Pin
peterchen22-Nov-04 13:04
peterchen22-Nov-04 13:04 
GeneralRe: custom allocator for one container instance Pin
Joaquín M López Muñoz22-Nov-04 21:50
Joaquín M López Muñoz22-Nov-04 21:50 
GeneralRe: custom allocator for one container instance Pin
Andrew Walker22-Nov-04 16:02
Andrew Walker22-Nov-04 16:02 
GeneralRe: custom allocator for one container instance Pin
Joaquín M López Muñoz22-Nov-04 21:57
Joaquín M López Muñoz22-Nov-04 21:57 
GeneralRe: custom allocator for one container instance Pin
peterchen22-Nov-04 23:21
peterchen22-Nov-04 23:21 
GeneralRe: custom allocator for one container instance Pin
Joaquín M López Muñoz22-Nov-04 23:03
Joaquín M López Muñoz22-Nov-04 23:03 
Generalcustom allocator for one container instance Pin
peterchen22-Nov-04 8:19
peterchen22-Nov-04 8:19 
I'd like to use a pool allocator for a given instance of a container (not all instances)

Imagine I have a map from which items are never removed, until the map is deleted.
The map items should be allocated from a pool, i.e. a special allocator that does not track individual allocations, but releases *all* memory when the map is destroyed.

The map is completely encapsulated and does not need to expose container behavior.

(a) Is this possible with std::map, and a custom allocator?
(b) Is this possible for VC6 with it's "half-an-STL"?
(c) Anyone done this already? (available?)
(d) Anyone having performance data for that?



we are here to help each other get through this thing, whatever it is Vonnegut jr.
boost your code || Fold With Us! || sighist | doxygen

Generallist::sort() question Pin
nm_11421-Nov-04 16:51
nm_11421-Nov-04 16:51 
GeneralRe: list::sort() question Pin
Ryan Binns21-Nov-04 18:06
Ryan Binns21-Nov-04 18:06 
GeneralRe: list::sort() question Pin
nm_11421-Nov-04 18:58
nm_11421-Nov-04 18:58 
GeneralRe: list::sort() question Pin
peterchen22-Nov-04 8:23
peterchen22-Nov-04 8:23 
GeneralRe: list::sort() question Pin
nm_11422-Nov-04 19:29
nm_11422-Nov-04 19:29 
GeneralRe: list::sort() question Pin
peterchen22-Nov-04 23:15
peterchen22-Nov-04 23:15 
GeneralRe: list::sort() question Pin
nm_11423-Nov-04 13:38
nm_11423-Nov-04 13:38 
GeneralRe: list::sort() question Pin
peterchen23-Nov-04 13:49
peterchen23-Nov-04 13:49 
GeneralRe: list::sort() question Pin
nm_11423-Nov-04 14:08
nm_11423-Nov-04 14:08 
GeneralRe: list::sort() question Pin
toxcct23-Nov-04 8:12
toxcct23-Nov-04 8:12 
GeneralRe: list::sort() question Pin
peterchen23-Nov-04 13:58
peterchen23-Nov-04 13:58 
GeneralRe: list::sort() question Pin
toxcct23-Nov-04 21:37
toxcct23-Nov-04 21:37 
GeneralRe: list::sort() question Pin
peterchen23-Nov-04 22:28
peterchen23-Nov-04 22:28 
GeneralRe: list::sort() question Pin
Nemanja Trifunovic24-Nov-04 2:21
Nemanja Trifunovic24-Nov-04 2:21 
GeneralATL7 and VS.NET2k3 wizard, completely stuck Pin
seriema19-Nov-04 10:59
seriema19-Nov-04 10:59 
GeneralRe: ATL7 and VS.NET2k3 wizard, completely stuck Pin
Michael Dunn19-Nov-04 13:25
sitebuilderMichael Dunn19-Nov-04 13:25 
GeneralRe: ATL7 and VS.NET2k3 wizard, completely stuck Pin
seriema19-Nov-04 13:33
seriema19-Nov-04 13:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.