Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++.moderated > #759 > unrolled thread

To standardize Boost.Pool

Started byPhil Bouchard <phil@fornux.com>
First post2011-04-12 07:44 -0600
Last post2011-04-12 07:44 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.c++.moderated


Contents

  To standardize Boost.Pool  Phil Bouchard <phil@fornux.com> - 2011-04-12 07:44 -0600

#759 — To standardize Boost.Pool

FromPhil Bouchard <phil@fornux.com>
Date2011-04-12 07:44 -0600
SubjectTo 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! ]

[toc] | [standalone]


Back to top | Article view | comp.lang.c++.moderated


csiph-web