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

ATL / WTL / STL

 
AnswerRe: using ATL7.0 instead of ATL3, I'm missing something but what? Pin
seriema25-Nov-04 14:37
seriema25-Nov-04 14:37 
Generalconverting BSTR to char* Pin
Andy H23-Nov-04 3:36
Andy H23-Nov-04 3:36 
GeneralRe: converting BSTR to char* Pin
Steve S23-Nov-04 5:27
Steve S23-Nov-04 5:27 
GeneralRe: converting BSTR to char* Pin
Andy H23-Nov-04 5:36
Andy H23-Nov-04 5:36 
GeneralRe: converting BSTR to char* Pin
peterchen23-Nov-04 14:17
peterchen23-Nov-04 14:17 
GeneralRe: converting BSTR to char* Pin
Andy H23-Nov-04 22:20
Andy H23-Nov-04 22:20 
GeneralRe: converting BSTR to char* Pin
peterchen23-Nov-04 22:37
peterchen23-Nov-04 22:37 
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 
(a) Is this possible with std::map, and a custom allocator?

I'd say so.

(b) Is this possible for VC6 with it's "half-an-STL"?

A little more difficult, but doable, I think.

(c) Anyone done this already? (available?)

I've got a block allocator[^] for VC++ 6.0 with a little more complicated allocation policy (caveat, it doesn't work in VC++ 7.1.) It shouldn't be hard to tweak it to meet your requirements. In case you decide to follow down this track, tell me so and I can try to give you assistance.

Also, Boost has an allocator library (Boost.Pool) but after a quick glance seems like it doesn't have what you're after, and it doesn't support VC++ 6.0 evil allocator interface.

(d) Anyone having performance data for that?

No, but I'm pretty sure you'll get a brutal performance boost (VC++ 6.0 malloc, on which std::allocator is based, is notably slow.)

HTH


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Want a Boost forum in Code Project? Vote here[^]!
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 
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 

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.