Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++.moderated > #759 > unrolled thread
| Started by | Phil Bouchard <phil@fornux.com> |
|---|---|
| First post | 2011-04-12 07:44 -0600 |
| Last post | 2011-04-12 07:44 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.c++.moderated
To standardize Boost.Pool Phil Bouchard <phil@fornux.com> - 2011-04-12 07:44 -0600
| From | Phil Bouchard <phil@fornux.com> |
|---|---|
| Date | 2011-04-12 07:44 -0600 |
| Subject | To standardize Boost.Pool |
| Message-ID | <4da38d4b@news.x-privat.org> |
Boost.Pool provides an is_from() member function that does a simple
range checks of the heap memory pages and returns whether a pointer is
part of the pool or not. This is a very useful function which I think
should be part of the standards because it could be used for the global
pool as well; i.e. the one used by operator ::new and ::delete. The
benefits for memory management of knowing whether an object resides on
the heap or stack outweigh the costs of having to pollute the global
namespace.
Thanks,
-Phil
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top | Article view | comp.lang.c++.moderated
csiph-web