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


Groups > comp.std.c++ > #99

To standardize Boost.Pool

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!feeder.news-service.com!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date Tue, 12 Apr 2011 13:20:11 -0500
Return-Path <cppmods@mcgurn.dreamhost.com>
Sender std-cpp-request@vandevoorde.com
Approved austern@google.com
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
Content-Type text/plain; charset=ISO-8859-1; format=flowed
X-Original-Date Mon, 11 Apr 2011 16:20:51 -0700
X-Submission-Address std-c++-submit@vandevoorde.com
To undisclosed-recipients:;
Date Tue, 12 Apr 2011 13:10:44 CST
Lines 20
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-kEvYpELxi4n/oUGOQVzA4bTyCtvZgwnZK9+DYvhE09AvGina7a7muXlZ1KRr/TZfuyZjbDPIey8lc+o!p9zedyqkUs9nZYP93ATVMVurX98GKKyb+AlVh98QsXzB1SpM5ZE=
X-Complaints-To abuse@giganews.com
X-DMCA-Notifications http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2008
Xref x330-a1.tempe.blueboxinc.net comp.std.c++:99

Show key headers only | 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


-- 
[ 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 | NextNext in thread | Find similar | Unroll thread


Thread

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