From -1042328775719147506
X-Google-Thread: f78e5,574518e5c7a60feb
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: phalpern@halpernwightsoftware.com (Pablo Halpern)
Newsgroups: comp.std.c++
Subject: Re: Revised Allocator Proposal
Date: Thu,  1 Sep 2005 05:43:29 GMT
Organization: EarthLink Inc. -- http://www.EarthLink.net
Lines: 20
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <0o9bh1p16j8s1mn1qaa60acql5vklbtjel@4ax.com>
References: <7ibbe1hu4omoqsfibanas46idf9u6i5hjo@4ax.com> <r5msg19kp6bearr4j87ijafhjgqafpd62r@4ax.com> <1125052044.699484.41810@g43g2000cwa.googlegroups.com>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1125553416 9195 158.152.254.254 (1 Sep 2005 05:43:36 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Thu, 1 Sep 2005 05:43:36 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j815hTb1015080;
	Thu, 1 Sep 2005 15:43:29 +1000 (EST)
X-NNTP-Posting-Date: Wed, 31 Aug 2005 05:49:55 PDT
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsreader: Forte Agent 1.93/32.576 English (American)
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:1985

"Peter Dimov" <pdimov@gmail.com> wrote:

>You might want to add a 'size_t alignment' argument to
>bde::Allocator::allocate. It's not strictly required as you can usually
>infer it from 'size' and require the client to round 'size' up when the
>heuristic would fail, but it's much easier to be explicit.

Yes. I think that's a good idea. I debated adding it before, but stuck
with the interface we used in our implementation.

Pablo Halpern                 phalpern@halpernwightsoftware.com
Author: The C++ Standard Library from Scratch
http://www.halpernwightsoftware.com/stdlib-scratch

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



