Alex Vinokur wrote:
"Alex Vinokur" <al****@users.sourceforge.net> wrote in message
[snip] 2. But how to manage memory allocation in containers for embedded
systems?
For instance,
vector<Foo> v;
Foo f;
v.push_back(f);
push_back() returns no values.
So, how can we know (except try-catch) that it is impossible to
allocate the requested memory in push_back()?
[snip]
By the way, is this check correct?
vector<Foo> v;
// Stuff
.... snip ...
If you are worried about memory and bloat, why are you using C++ in
the first place?
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>