From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 6B6863858031 for ; Wed, 31 May 2023 17:56:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B6863858031 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685555762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LSA8ruJYOvaq3cCQQSUxsMJ0NVHvPwgjC5/yX9bKGEI=; b=EGKwjVBbPBp2f/ifB46ag2APnltPFLfQKjXA06QdIYtmSpz2YAN0efRoSiaQpYwNzZZ9dK lTblul8PuBCKRGpS1fSTh2onV9V29BbN4HfDKRtEvMq5zqO7PwTk1WCjcEp6sefvRE/mfb j6m5e2RtaFNMc/3GvuE21CqTFDdg7Kc= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-673-eac4_RY0MSqwwmZQs5wrAg-1; Wed, 31 May 2023 13:55:54 -0400 X-MC-Unique: eac4_RY0MSqwwmZQs5wrAg-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2af1589c75aso34099851fa.2 for ; Wed, 31 May 2023 10:55:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685555753; x=1688147753; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LSA8ruJYOvaq3cCQQSUxsMJ0NVHvPwgjC5/yX9bKGEI=; b=SMDu9Dts320h2L2xr3BcEXx7lbulT4I3tjCu1skYruaJN5KfRyA+ILjeRjrL0u3W4Y qv0rgng9u2gKKDBq5qUcSuQ3sxNC7dDvEhQuXA7+NaQxjiXo+zwPT2A1kjva4ZWotNDS oHPieqZpqqksDZXKtu4M7kl3KhrvHS2Qt4xomQSDyTl0JZi7rroIzvnESnLuEJ1xFqrp B7LU2kMh+EGGL4r9zJbqrmKOL303bKxJRDOBUE1lslLybh/WpJArmMODyUGgP8vDstk0 FfudrHX/W4kAXWA3k3ic6y29t/HtA12wPAy4/+BPoXppZJvUKsm7Y5pBV4+Ie4cVhkPw Gepg== X-Gm-Message-State: AC+VfDxRCwii2qMbga51wbURBzwSoWVgo1EEPyfcs6z+kwEsouCQ8eOL E6PezS9i3xXVQFDBLp0rwy+grURlB7qnS3bGHEFe210YxjVzYkv4EmkZhha3/ZzyvQXdEVhY5U+ Q+nwwY1jALDYNDZmE8SKtdinG4OtqGU0jNpHf9hRi2Q== X-Received: by 2002:a2e:6a13:0:b0:2ad:d291:72e1 with SMTP id f19-20020a2e6a13000000b002add29172e1mr3476113ljc.18.1685555753268; Wed, 31 May 2023 10:55:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4zKCmrsKT4AB9xAxw98x2eGBlvVISlvo2takyvNkrSjOuMFWDWSLzsX+hyC+D0n/B1gvtVTlgVWI6/eSh3YVw= X-Received: by 2002:a2e:6a13:0:b0:2ad:d291:72e1 with SMTP id f19-20020a2e6a13000000b002add29172e1mr3476101ljc.18.1685555752941; Wed, 31 May 2023 10:55:52 -0700 (PDT) MIME-Version: 1.0 References: <01f2b9e7-14e8-12a7-c275-7e48e3bd94df@gmail.com> In-Reply-To: <01f2b9e7-14e8-12a7-c275-7e48e3bd94df@gmail.com> From: Jonathan Wakely Date: Wed, 31 May 2023 18:55:41 +0100 Message-ID: Subject: Re: [PATCH] Move std::search into algobase.h To: =?UTF-8?Q?Fran=C3=A7ois_Dumont?= Cc: "libstdc++" , gcc-patches X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="000000000000e74f6005fd01079a" X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000e74f6005fd01079a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 31 May 2023 at 18:39, Fran=C3=A7ois Dumont via Libstdc++ < libstdc++@gcc.gnu.org> wrote: > libstdc++: Reduce inclusion to > > > Move the std::search definition from stl_algo.h to stl_algobase.h and use > the later in . > > For consistency also move std::__parallel::search and associated helpers > from > to so that > std::__parallel::search > is accessible along with std::search. > > libstdc++-v3/ChangeLog: > > * include/bits/stl_algo.h > (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, > _FwdIt2, _BinPred)): Move... > * include/bits/stl_algobase.h: ...here. > * include/std/functional: Replace include by > . > * include/parallel/algo.h (std::__parallel::search<_FIt1, > _FIt2, _BinaryPred>) > (std::__parallel::__search_switch<_FIt1, _FIt2, > _BinaryPred, _ItTag1, _ItTag2>): > Move... > * include/parallel/algobase.h: ...here. > * include/std/functional: Remove and > > includes. Include . > > Tested under Linux x86_64. > > Ok to commit ? > OK --000000000000e74f6005fd01079a--