 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
KP Guest
|
Posted: Wed Jun 22, 2005 1:07 pm Post subject: How to use an allocator-please write the code |
|
|
I am new to Allocator .
How to use an allocator-can somebody give the code
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
msalters Guest
|
Posted: Thu Jun 23, 2005 11:10 am Post subject: Re: How to use an allocator-please write the code |
|
|
KP schreef:
| Quote: | I am new to Allocator .
How to use an allocator-can somebody give the code
|
std::vector<int> myArray;
std::allocator<> is used to allocate memory for the ints, because
you didn't specify another allocator. This is good enough for 99%
of the cases.
Regards,
Michiel Salters
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|