220 23735 <n7b1oe$k1p$1@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default tuple-like access
Date: Fri, 15 Jan 2016 10:03:41 -0500
Lines: 28
Approved: news@gmane.org
Message-ID: <n7b1oe$k1p$1@ger.gmane.org>
References: <569583AD.9050208@wanadoo.fr> <n78m0f$5al$1@ger.gmane.org> <5697E783.2020509@wanadoo.fr> <n78ptj$dt3$1@ger.gmane.org> <20160114221625.4931665.26873.3290@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1452870254 21023 80.91.229.3 (15 Jan 2016 15:04:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 15 Jan 2016 15:04:14 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBXMU4S2AKGQEB47IKKA@isocpp.org Fri Jan 15 16:03:59 2016
Return-path: <std-proposals+bncBC37LBFWUIFBBXMU4S2AKGQEB47IKKA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lb0-f198.google.com ([209.85.217.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBXMU4S2AKGQEB47IKKA@isocpp.org>)
	id 1aK5uw-0002WM-GT
	for gclcip-std-proposals@m.gmane.org; Fri, 15 Jan 2016 16:03:58 +0100
Original-Received: by mail-lb0-f198.google.com with SMTP id dx9sf33069488lbc.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 15 Jan 2016 07:03:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :content-type:content-transfer-encoding:user-agent:in-reply-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=IB3nwalr408+Rw7ttFPn+W3NZ4ibhS9hjsura2XpqEc=;
        b=00BRMb1rJz8sepirXzCowTU3pjLrp9ZKZrKfvg2PN08TZSmVeH4o8H9WUpIJtakwIh
         PW59BnhaXOdYtDzgOlRa6FmjDk6eMoMmG2E5JA4rmyxsqEnUPMEkZKEmlvjRGFPEjXqf
         thh9Zrh/PwVkG+REX5tZmFssQezcuVVbLeCmgp/bFJoJByzH3KKlGEG1CqzTG8Km/TrH
         e11QqvxhP1RLO1sz9vm2crTsOVgIHyX3z7OtqYVCQw5d72qHKX+MmZseZswEcL+RZZ6x
         RJ4PIa5u1uIbwHqJ420fGhazjBG7skLzypgNLXuSRSB6SgmZxIQCDC4 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:content-transfer-encoding:user-agent
         :in-reply-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=IB3nwalr408+Rw7ttFPn+W3NZ4ibhS9hjsura2XpqEc=;
        b=kHW+WDEbYHy/XAEg2KHBmBfxDjWSYm0OXlPC/XVE0rDD38zuRjiLJ8cJzxxYzsbm5z
         qawcR1NYRozi76c7olkAZJRSceE4pT53aeoLXChr8BpSgbnmtLGGuBp6uRiPtbzyntjR
         IkuIH3Wua02Ot85KIvAaJDGJhYEFJe/Pz9bBxgXFWvkQAY4pqKKkJHXgI6vOsIwZpQ2k
         04b6kmb8qAlYdVLMGDxNuaPr5aGbkLM7IUCuW+5fPV7xCQl9SVVlFqBVdQVA3CZ9oi32
         L0R7k961jEVtEOCKefcaAEPTcsXKGUuquMrSh/m6DGDzcw49hcx 
X-Gm-Message-State: AG10YOT2WdfJYhodMH8eJrZ050B/pZ5kYWCxfq6aKAqjpi3uuzOHN1FemoFMaw+VjulQ0g==
X-Received: by 10.28.47.198 with SMTP id v189mr476056wmv.1.1452870238077;
        Fri, 15 Jan 2016 07:03:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.37.70 with SMTP id l67ls216906lfl.89.gmail; Fri, 15 Jan
 2016 07:03:56 -0800 (PST)
X-Received: by 10.25.207.65 with SMTP id f62mr2974455lfg.73.1452870236785;
        Fri, 15 Jan 2016 07:03:56 -0800 (PST)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id r184si5888714lfg.22.2016.01.15.07.03.56
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Fri, 15 Jan 2016 07:03:56 -0800 (PST)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1aK5un-0002RJ-UN
	for std-proposals@isocpp.org; Fri, 15 Jan 2016 16:03:50 +0100
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Fri, 15 Jan 2016 16:03:49 +0100
Original-Received: from mwoehlke.floss by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Fri, 15 Jan 2016 16:03:49 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 15
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To: <20160114221625.4931665.26873.3290@gmail.com>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=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-Spam-Checked-In-Group: 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:23735
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23735>

On 2016-01-14 17:16, Tony V E wrote:
> Is there any value in separating size from get?
>=20
> For example, a tuple of three ints, but returns =E2=80=8E17 (or more like=
ly 0) for get<3>, get<4>, get<99>, etc.=20
>=20
> ie I have 3 but I can make up the rest. Similar to infinite ranges.

Nothing in my suggestion precludes that. You could implement a generic
get<N> that returns the "out of range" value, and a tuple_size that
returns the "real" size. (You'd have to provide an explicit tuple_size
in such case, and I wouldn't count on an unbounded get<N> not causing
other problems...)

--=20
Matthew

--=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 https://groups.google.com/a/isocpp.org/group/std-propos=
als/.

.
