Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <4da38cde@news.x-privat.org> (permalink) |
|---|---|
| Newsgroups | comp.std.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 13:10 -0600 |
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 -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Next in thread | Find similar
To standardize Boost.Pool Phil Bouchard <phil@fornux.com> - 2011-04-12 13:10 -0600
Re: To standardize Boost.Pool Phil Bouchard<phil@fornux.com> - 2011-04-14 13:10 -0600
Re: To standardize Boost.Pool Phil Bouchard <phil@fornux.com> - 2011-04-14 17:18 -0600
Re: To standardize Boost.Pool "Bo Persson" <bop@gmb.dk> - 2011-04-17 01:33 -0600
csiph-web