220 34442 <CAFk2RUZYHP0Hy3k48dFm2bTr3n2O3fmE3uUFii3uL2kSPJnOaQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Copy eliding emplacement functions for containers.
Date: Wed, 20 Sep 2017 20:05:14 +0300
Lines: 25
Approved: news@gmane.org
Message-ID: <CAFk2RUZYHP0Hy3k48dFm2bTr3n2O3fmE3uUFii3uL2kSPJnOaQ@mail.gmail.com>
References: <0144b887-c694-4f3e-b368-32645a1562d9@isocpp.org>
 <CAOfiQqn40HxZtT_zCgH2mzNZ-binpgf3+uULrZLNVGDmwYcgSA@mail.gmail.com>
 <7f712109-c8b2-4342-b660-345f0f41a985@isocpp.org> <CAFk2RUakGTeBfN3B7CYx80CA6c-8o4Pr3XRUWgStS=fk0=jZKA@mail.gmail.com>
 <c7f0cdd4-2ca7-49a6-aadb-035132d34733@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1505927119 10065 195.159.176.226 (20 Sep 2017 17:05:19 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 20 Sep 2017 17:05:19 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBS57RLHAKGQEZ5Y7RFI@isocpp.org Wed Sep 20 19:05:10 2017
Return-path: <std-proposals+bncBC5JHI7A7ALRBS57RLHAKGQEZ5Y7RFI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f197.google.com ([209.85.161.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBS57RLHAKGQEZ5Y7RFI@isocpp.org>)
	id 1duiQv-0002Br-U4
	for gclcip-std-proposals@m.gmane.org; Wed, 20 Sep 2017 19:05:10 +0200
Original-Received: by mail-yw0-f197.google.com with SMTP id l4sf2443464ywa.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 20 Sep 2017 10:05:17 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1505927117; cv=pass;
        d=google.com; s=arc-20160816;
        b=Un7Mq0bwZeLMAQtXrsYMS+nrblycuKs6qHFUlw41LYSj8CtVY6bCSe9gUym0qMC87T
         i4ZT8VKDJs0cvozPwLcq6qaba0NEmvNi8+bzJ+//VwPNWa9XYBKtOB6mNv1PIzZIJvT8
         eEd8dTyqz9dK5tZ2cejsMMvrTtWUhNk2wYAMaeTEwqnyK5goIm0HKqop/8HDq/ZoEfUc
         x4Jxo0rk6oMUTh1J6C50FcHVZlYmLd9PnSfkonN304DIocYlKr+6hcpYQ9WPwRN/CwgZ
         7YeWATTolhRtVylEjcscLNn9r6hJyZiJWLDYGYSImEAY6Mz2iokGNAh4PG+735IAcJWO
         gkRg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=rOXCBEOWKRJto7gJA1pzCIYGNQ5BCRjTjDxvOYaQ4MA=;
        b=g8I0KBzZ55KjmDmYMACxnRGkQ/LxQEBIBQDpKLtW51jO8L9IiAhMt/nvWalYwh7e3i
         ajk8sTFK1nKHKmgezHSEStFM0Aw+hlY8UfiJTnOD8+rbpYtiMaHgINM+ws3yOYKcLK2y
         LX4j+5zBiE8zkejDTzqtR7JqCXoxa8I7SQleafO4IpRXewknZcsUfmTQ/TOqlmM1u+2k
         7gscGd0BuSR5G2721R2smeFO9KKQUt03ispkBN7HVPR1jsy+PtPVpuqiyMGaahExFxt+
         FNKLqsn/KYjzM3DkUYcOMPQn5+HA43SL9gTcRk54lpHGPpX8gpxQ9bwW3EXrivpyPub9
         AfWQ==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=N3/dzpu3;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=rOXCBEOWKRJto7gJA1pzCIYGNQ5BCRjTjDxvOYaQ4MA=;
        b=01UECEvVfqoWcN6DKxpLWfXixWvyHqAWvld+NelcJzr3KZSfcIFFMSwM8UwJSTLoos
         9zBIIjrW1CEpA5sxxlVDrpBe5oqU6oLGNjZP/9S5X9kP+ZJQW9bRqUKTOB4b71Oo9r5T
         6fUlyHXhDz59VuvD+e96+dw0tppaWk+7uin8shKhguoNyAnU1NvXFtT1Mq1DDero/Xk5
         08vIJvFnlJ8uFjykiANoFpK6O7lut/j5iGGYO15uZ9OS5ZVP+sa+iACVh9Dxt0FtnSyb
         nFwzxWlPyBwp/nlFXaFbv1Hsnf07XgUHef+IItobUc+jXWP1KlHDQeydxWNF4jn6M9BQ
         9ZaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=rOXCBEOWKRJto7gJA1pzCIYGNQ5BCRjTjDxvOYaQ4MA=;
        b=hmmtRwziRS8eCj4ZfHwEyZzZ65DfSOO4gh5d5gHpqo3edK/NxT3XL3uMD67K7L8PAe
         IKiW6viyLpjpQy6PPdJaDWDii3pzkqCgF1tiz72jIYN2MLI2PIvvjAZ8hpqrxaHrvx+H
         HDrL213HYozY84aYqGkH7pzJ/xBZb+EtTXrpZV2buKgUnspUCehH1DtRrCX8oJyWmmsY
         BNZyloZfpp2fU4sr8JfUUpF8qXc9P8rV86Jha7p8g10EF7lRidCt4Dx4d0dD7whkTXk+
         KsM90mYeXhZDVx3LeMbHNRh/XIJ0qk/hlr2rqlNVbSSHZC1OW2cAnfIB3gUFXpK0eFXk
         XDgw==
X-Gm-Message-State: AHPjjUjXo02hingxLcwmBubNBNcAvE5/Jw7VDdu9D4i1fABlR+NgcRRw
	OVY/B0WmKf/uhQqLtB1+HK8eag==
X-Google-Smtp-Source: AOwi7QAb+oHZhQ4ZBE9wwHQMfhnZsYnWU3bGX9+elsTh60oqpGIQrexvO/Jn3q4O1zX7QDhztih/zQ==
X-Received: by 10.13.237.194 with SMTP id w185mr565703ywe.2.1505927117192;
        Wed, 20 Sep 2017 10:05:17 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.202.231.210 with SMTP id e201ls350062oih.17.gmail; Wed, 20 Sep
 2017 10:05:15 -0700 (PDT)
X-Received: by 10.202.79.88 with SMTP id d85mr6387220oib.157.1505927115691;
        Wed, 20 Sep 2017 10:05:15 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1505927115; cv=none;
        d=google.com; s=arc-20160816;
        b=VE/xKQ8BOTYsRvWeKorwUKqJvjazhQWrhEUSBO9qc1YplrtbtfqG83PTI9A6Lyw7Qj
         J99vP2n/TfSRthps3TdC7cNDK5MDWPuIbOZciW+k/zb/MUiokX8wwpHA0Td18ho3i2Cj
         JuB2FTV9zdazleoak8D2VgETpQ+RSwgP3AbQ25/S4ItXPUFHNftgUyhW/3o48WvbuazE
         pg3k7NmRPPIoaN+/6cgL/2b9zZMO6fx/PIGk9coOaVZErAomrOxKteLvz1/F+bYkltUy
         w5xYH+6C1pbcPSLnQTOLrVD4bE6xP/txgDY/tNufLLyhTYE3vM2WJsWzjOIV97snlDHL
         FbcA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=kxG+NjAN3o1dMrmI/SNyBFmk7jP9jUJ2SIzbpPrqNM4=;
        b=WSsSl+NkyNv7QsD4bNSDmOw72v+5A3SNZ2zBx6OQJIu9XTaSelaQ3G/Ra2gNWuAv2M
         BMhsRj3phrVe2v0U0xiWnfb0//0OJNs381P/D5ogySNOt65UwUuIUrFuR0P/sER65Yba
         V1/M3X/s7meSDAJEkXmAYQotA07ffWLl5UfkjINCZkgXoKpzfwXXaEvV/pc7ZjnYAJhO
         JF21KbzXX/qL57qRXnHltuNfyolR1o0ilC4Wy1vYVyr4VhHCsntztNVQiq9WLSbBibCt
         ztFtQFHCuORNBSwwfALeGrLbmiAMHzct+BYk7wlg+fuU+UrzkLg4HUvXXS0JtHCvozRh
         dxeQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=N3/dzpu3;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65])
        by mx.google.com with SMTPS id v188sor969629oib.254.2017.09.20.10.05.15
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 20 Sep 2017 10:05:15 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65;
X-Received: by 10.202.67.6 with SMTP id q6mr1680847oia.201.1505927115331; Wed,
 20 Sep 2017 10:05:15 -0700 (PDT)
Original-Received: by 10.157.2.132 with HTTP; Wed, 20 Sep 2017 10:05:14 -0700 (PDT)
In-Reply-To: <c7f0cdd4-2ca7-49a6-aadb-035132d34733@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=N3/dzpu3;       spf=pass
 (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.65
 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:34442
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/34442>

On 20 September 2017 at 20:00, Ray Hamel <rayghamel@gmail.com> wrote:
> On Wednesday, September 20, 2017 at 12:32:56 PM UTC-4, Ville Voutilainen
> wrote:
>>
>> On 20 September 2017 at 19:29, Ray Hamel <rayg...@gmail.com> wrote:
>> > Wouldn't it be far simpler just to add a method
>> > relevant_stl_collections<T>::copy_back(T value)?
>>
>>
>> What is this copy_back function supposed to do when T is neither
>> copyable nor movable?
>
>
> It constructs it in-place if it's an rvalue (copy/move elision) or fails to
> compile if it's an lvalue, which is the desirable behavior.

Please show me a version where swizzle actually stores an element into
a container.

-- 
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 email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFk2RUZYHP0Hy3k48dFm2bTr3n2O3fmE3uUFii3uL2kSPJnOaQ%40mail.gmail.com.

.
