From patchwork Fri Aug 6 11:30:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 61104 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6B904B6EEF for ; Fri, 6 Aug 2010 22:08:05 +1000 (EST) Received: (qmail 29896 invoked by alias); 6 Aug 2010 12:08:00 -0000 Received: (qmail 29886 invoked by uid 22791); 6 Aug 2010 12:07:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from rcsinet10.oracle.com (HELO rcsinet10.oracle.com) (148.87.113.121) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Aug 2010 12:07:54 +0000 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o76C7pOQ007217 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 6 Aug 2010 12:07:53 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o76BhfRf014468 for ; Fri, 6 Aug 2010 12:07:51 GMT Received: from abhmt014.oracle.com by acsmt353.oracle.com with ESMTP id 472044061281094214; Fri, 06 Aug 2010 04:30:14 -0700 Received: from macbook-pro-di-paolo-carlini.local (/152.96.0.2) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Aug 2010 04:30:13 -0700 Message-ID: <4C5BF243.2070103@oracle.com> Date: Fri, 06 Aug 2010 13:30:11 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; it; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Gcc Patch List CC: libstdc++ Subject: [v3] Implement GB 87 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, similarly to std::pair. Committed to mainline. Paolo. /////////////// 2010-08-06 Paolo Carlini * include/std/tuple (begin, end): Remove per GB 87. * testsuite/20_util/tuple/range_access.cc: Remove. Index: include/std/tuple =================================================================== --- include/std/tuple (revision 162940) +++ include/std/tuple (working copy) @@ -697,24 +697,6 @@ const _Swallow_assign ignore{}; /** - * @brief Return the first of a tuple containing two input iterators. - * @param tpl Tuple. - */ - template - inline _InputIterator - begin(const tuple<_InputIterator, _InputIterator>& __tpl) - { return get<0>(__tpl); } - - /** - * @brief Return the second of a tuple containing two input iterators. - * @param tpl Tuple. - */ - template - inline _InputIterator - end(const tuple<_InputIterator, _InputIterator>& __tpl) - { return get<1>(__tpl); } - - /** * Stores a tuple of indices. Used by bind() to extract the elements * in a tuple. */ Index: testsuite/20_util/tuple/range_access.cc =================================================================== --- testsuite/20_util/tuple/range_access.cc (revision 162940) +++ testsuite/20_util/tuple/range_access.cc (working copy) @@ -1,33 +0,0 @@ -// { dg-do compile } -// { dg-options "-std=gnu++0x" } - -// Copyright (C) 2010 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library is free -// software; you can redistribute it and/or modify it under the -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without Pred the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// . - -// 20.4.2.10, tuple range access: pair range access [tuple.range] - -#include -#include - -void -test01() -{ - std::vector v{1.0, 2.0, 3.0}; - auto t = std::make_tuple(v.begin(), v.end()); - std::begin(t); - std::end(t); -}