220 28800 <CAPCFJdRy8m=mgBHt27VA48sknQYmencbtCxuHDCSKYM4D2U=Gw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Micha=C5=82_Dominiak?= <griwes@griwes.info>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::reverse_lookup for arrays, does it at
 least make some sense?
Date: Thu, 13 Oct 2016 15:00:37 +0000
Lines: 79
Approved: news@gmane.org
Message-ID: <CAPCFJdRy8m=mgBHt27VA48sknQYmencbtCxuHDCSKYM4D2U=Gw@mail.gmail.com>
References: <8c3194d9-dd08-4bf9-9612-82b6aff3d55f@isocpp.org> <67db4ec6-764c-4b31-a90d-22b0ec1ae0fd@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a114e7152ef17a9053ec05fa2
X-Trace: blaine.gmane.org 1476370868 18813 195.159.176.226 (13 Oct 2016 15:01:08 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 13 Oct 2016 15:01:08 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCA6D5ULVYBRBIOD727QKGQEYZFVWWQ@isocpp.org Thu Oct 13 17:01:04 2016
Return-path: <std-proposals+bncBCA6D5ULVYBRBIOD727QKGQEYZFVWWQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f69.google.com ([209.85.220.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCA6D5ULVYBRBIOD727QKGQEYZFVWWQ@isocpp.org>)
	id 1buhV2-0002Xd-2V
	for gclcip-std-proposals@m.gmane.org; Thu, 13 Oct 2016 17:00:48 +0200
Original-Received: by mail-pa0-f69.google.com with SMTP id hm5sf80027191pac.4
        for <gclcip-std-proposals@m.gmane.org>; Thu, 13 Oct 2016 08:00:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to: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=hlXaezuF5fnohtrshhblQ9VjFKTPhslTA3UoKXICfYM=;
        b=PcBCvz3neBb+GEmizJ4PbfOJebSjFpy8JKCxaTt/7LepHnhG6Rv2KZXqVEgJKTTaWq
         JH7oEG11Sk6l3Ms9bdbwkiWispsoGiC5Z8jOypG7dORYxMtJRBqWpNoeE31AbeyDKFf/
         8GxStlLaSThKqHe0cx96o0Z5/KWCu4pi5lSebj7AM9oGQbcmnA8CWAdVOIRU9WUAvz4o
         qINQW9a7tAEC0M4XIK28NxvfnLNiYdUYWF43JKCPSaHZJsivW/ho3A/uC8i7ucM6YO+4
         EjFGSAuPDwRyJ4+ku/sUQDf7ZpVxnOj9fM5iGmzKb6EyzTT1Va1zlsNfhv6pLTR6q5S3
         A/4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:references:in-reply-to: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=hlXaezuF5fnohtrshhblQ9VjFKTPhslTA3UoKXICfYM=;
        b=bTUze/rokekgeinDsJIRpw/jCFDzyR6x5KzVpJoeGszM257QuwyzmFUcO2tvmQ3xMe
         pol7DdlNuzDlcp/HDCFjADxQGTXpMBCq8EivmC81ptngyXA3RxCz56Lli58hVQ25x3Iw
         iMPW5M7ku/Z1ic7jQDMPGEovjSxYFgB2qZkdc8RKqJ47vbMAxy5kShQwpRjfEPYesDTF
         lrMYveUBmlQJ8D+jzRpqHmm2DjcLjnM0k3uNNSaFrmjh5x6mtJ8DVJrtMyJ1fdizp6ux
         z9JGnrHp3oynyNqlJTrywRyxX/57Cc+MnjfMNV5jaD9vRSQLcSKm5xzXWbjZabM1ex+L
         QOUA==
X-Gm-Message-State: AA6/9Rl8PQtQqQzeNOI7gjECrFuW0hsGavlZyAA78CvQ1Crem3nu8q5hFb5uJYwhHL/KKQ==
X-Received: by 10.66.250.166 with SMTP id zd6mr1342844pac.85.1476370849809;
        Thu, 13 Oct 2016 08:00:49 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.11.231 with SMTP id 94ls5883933oth.16.gmail; Thu, 13 Oct
 2016 08:00:48 -0700 (PDT)
X-Received: by 10.37.210.202 with SMTP id j193mr6013861ybg.47.1476370848829;
        Thu, 13 Oct 2016 08:00:48 -0700 (PDT)
Original-Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com. [2607:f8b0:400d:c09::235])
        by mx.google.com with ESMTPS id c42si6716271qte.92.2016.10.13.08.00.48
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 13 Oct 2016 08:00:48 -0700 (PDT)
Received-SPF: neutral (google.com: 2607:f8b0:400d:c09::235 is neither permitted nor denied by best guess record for domain of admin@griwes.info) client-ip=2607:f8b0:400d:c09::235;
Original-Received: by mail-qk0-x235.google.com with SMTP id n189so94959075qke.0
        for <std-proposals@isocpp.org>; Thu, 13 Oct 2016 08:00:48 -0700 (PDT)
X-Received: by 10.55.94.5 with SMTP id s5mr8345589qkb.102.1476370847686; Thu,
 13 Oct 2016 08:00:47 -0700 (PDT)
In-Reply-To: <67db4ec6-764c-4b31-a90d-22b0ec1ae0fd@isocpp.org>
X-Original-Sender: griwes@griwes.info
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@griwes-info.20150623.gappssmtp.com;       spf=neutral (google.com:
 2607:f8b0:400d:c09::235 is neither permitted nor denied by best guess record
 for domain of admin@griwes.info) smtp.mailfrom=admin@griwes.info
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:28800
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/28800>

--001a114e7152ef17a9053ec05fa2
Content-Type: text/plain; charset=UTF-8

Sounds like a job for `std::find_if`.

On Thu, Oct 13, 2016 at 4:59 PM Nicol Bolas <jmckesson@gmail.com> wrote:

> What exactly do you mean by "reverse lookup"? What is this function
> supposed to return?
>
> --
> 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/67db4ec6-764c-4b31-a90d-22b0ec1ae0fd%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/67db4ec6-764c-4b31-a90d-22b0ec1ae0fd%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPCFJdRy8m%3DmgBHt27VA48sknQYmencbtCxuHDCSKYM4D2U%3DGw%40mail.gmail.com.

--001a114e7152ef17a9053ec05fa2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Sounds like a job for `std::find_if`.</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr">On Thu, Oct 13, 2016 at 4:59 PM Nicol Bol=
as &lt;<a href=3D"mailto:jmckesson@gmail.com">jmckesson@gmail.com</a>&gt; w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr" class=3D"gma=
il_msg">What exactly do you mean by &quot;reverse lookup&quot;? What is thi=
s function supposed to return?<br class=3D"gmail_msg"></div>

<p class=3D"gmail_msg"></p>

-- <br class=3D"gmail_msg">
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br class=3D"gmail_msg=
">
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" class=3D"gm=
ail_msg" target=3D"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br cla=
ss=3D"gmail_msg">
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" class=3D"gmail_msg" target=3D"_blank">std-proposals@isocpp.org</a>.<b=
r class=3D"gmail_msg">
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/67db4ec6-764c-4b31-a90d-22b0ec1ae0fd%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" class=3D"gmail_msg=
" target=3D"_blank">https://groups.google.com/a/isocpp.org/d/msgid/std-prop=
osals/67db4ec6-764c-4b31-a90d-22b0ec1ae0fd%40isocpp.org</a>.<br class=3D"gm=
ail_msg">
</blockquote></div>

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAPCFJdRy8m%3DmgBHt27VA48sknQYmencbtC=
xuHDCSKYM4D2U%3DGw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAPCFJdRy8m%3=
DmgBHt27VA48sknQYmencbtCxuHDCSKYM4D2U%3DGw%40mail.gmail.com</a>.<br />

--001a114e7152ef17a9053ec05fa2--

.
