220 7382 <d3bd1c18-3e13-4294-9fda-057dc217a224@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Vlad from Moscow <vlad.moscow@mail.ru>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: To add the method append for all sequential
 containers that have method push_back
Date: Mon, 21 Oct 2013 16:00:14 -0700 (PDT)
Lines: 84
Approved: news@gmane.org
Message-ID: <d3bd1c18-3e13-4294-9fda-057dc217a224@isocpp.org>
References: <4167b82e-a3cc-44ce-9825-b52514bc1531@isocpp.org>
 <CAPBZbvz5O8W92GWmvrxP8G8dRfXh0tkU_Cqzt-9BasqMigopfA@mail.gmail.com>
 <CAOU91ONhbbofSHf87FsWSBH0HEC0d2ZEEKZz53V4YK2d3Aeskg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_2838_32557828.1382396414769"
X-Trace: ger.gmane.org 1382396420 6297 80.91.229.3 (21 Oct 2013 23:00:20 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 21 Oct 2013 23:00:20 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCXLLRHD7IDRB77DS2JQKGQEFR4OIBY@isocpp.org Tue Oct 22 01:00:22 2013
Return-path: <std-proposals+bncBCXLLRHD7IDRB77DS2JQKGQEFR4OIBY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-gg0-f198.google.com ([209.85.161.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCXLLRHD7IDRB77DS2JQKGQEFR4OIBY@isocpp.org>)
	id 1VYOSR-0001Zt-0P
	for gclcip-std-proposals@m.gmane.org; Tue, 22 Oct 2013 01:00:19 +0200
Original-Received: by mail-gg0-f198.google.com with SMTP id l2sf3457476ggn.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 21 Oct 2013 16:00:18 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=Emvhyo2/rvEGeZknHLFBjOsB18xIrDK3VdvPYB7xKNk=;
        b=QqtrfZ9+x6/orge9bZRRnAFXlEf25OBZKdSg9EowN1mM8VzGTD+m8uFqWaPym0YIxw
         rrQIHjc4moXe7LYT2l97oWFLZ/xpCn6bPfeFgVA2AxNAasyCYKIRv2SrAZFFK97jHCb2
         CGoKlqfSz9brtjxqEOFEMnnwM1XVogNEYJLEsu/beHLSsZVSzZyyHKGzxFCGV2gSmqrW
         0/tR4FoojPY4lzPgo+TEukeEtIksCCssK5MAbu1VrvgfVGG9p0BkbMD5EvTGZq0owDb0
         mtQAlgJi2uthcxAX9sDv48AON4ladyA1JJI5Mmwsp7MKFcCeWBesPFaJliQfGjgeIGqX
         XQwg==
X-Received: by 10.236.163.67 with SMTP id z43mr19618339yhk.27.1382396418005;
        Mon, 21 Oct 2013 16:00:18 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.48.66 with SMTP id j2ls2209120qen.90.gmail; Mon, 21 Oct
 2013 16:00:15 -0700 (PDT)
X-Received: by 10.49.13.40 with SMTP id e8mr584076qec.1.1382396415178;
        Mon, 21 Oct 2013 16:00:15 -0700 (PDT)
In-Reply-To: <CAOU91ONhbbofSHf87FsWSBH0HEC0d2ZEEKZz53V4YK2d3Aeskg@mail.gmail.com>
X-Original-Sender: vlad.moscow@mail.ru
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:7382
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7382>

------=_Part_2838_32557828.1382396414769
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I think that three overloaded functions could be provided for the method=20
append. They are
=20
append( size_type n, const T &value );
=20
template <class InputIterator>
append( InputIterator first, InputIterator last );
=20
append( initializer_list<T> );
=20
I have not specified the return type because opposite to method insert I=20
would propose that the method append would return reference to the=20
container itself.
=20
The question regarding to the return type should be discussed.
=20

=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 22 =D0=BE=D0=BA=D1=82=D1=8F=D0=
=B1=D1=80=D1=8F 2013 =D0=B3., 2:25:40 UTC+4 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=
=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Klaim - Jo=C3=ABl=20
Lamotte =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:

> +1 too, I'm getting in this use case very often and clarifying would help=
=20
> (btw doesn't it suggests more information to the implementation to use fo=
r=20
> potential optimizations?).
>

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

------=_Part_2838_32557828.1382396414769
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I think that three overloaded functions could be prov=
ided for the method append. They are</div><div>&nbsp;</div><div>append( siz=
e_type n, const T &amp;value );</div><div>&nbsp;</div><div>template &lt;cla=
ss InputIterator&gt;</div><div>append( InputIterator first, InputIterator l=
ast );</div><div>&nbsp;</div><div>append( initializer_list&lt;T&gt; );</div=
><div>&nbsp;</div><div>I have not specified the return type because opposit=
e to&nbsp;method insert I would propose that the method append would return=
 reference to the container itself.</div><div>&nbsp;</div><div>The question=
 regarding to the return type should be discussed.</div><div>&nbsp;</div><d=
iv><br>=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 22 =D0=BE=D0=BA=D1=82=D1=
=8F=D0=B1=D1=80=D1=8F 2013&nbsp;=D0=B3., 2:25:40 UTC+4 =D0=BF=D0=BE=D0=BB=
=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Klaim - Jo=C3=ABl La=
motte =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:</div><blockquote class=3D=
"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border=
-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style:=
 solid;"><div dir=3D"ltr">+1 too, I'm getting in this use case very often a=
nd clarifying would help (btw doesn't it suggests more information to the i=
mplementation to use for potential optimizations?).</div>
</blockquote></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_2838_32557828.1382396414769--

.
