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


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

To standardize Boost.Pool

Message-ID <4da38d4b@news.x-privat.org> (permalink)
Newsgroups comp.lang.c++.moderated, comp.lang.c++
From Phil Bouchard <phil@fornux.com>
Subject To standardize Boost.Pool
Organization X-Privat.Org NNTP Server - http://www.x-privat.org
Date 2011-04-12 07:44 -0600

Cross-posted to 2 groups.

Show all headers | View raw


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 comp.lang.c++.moderated | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web