From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +aQmGTdAT2owSS0AWB0awg (envelope-from ) for ; Thu, 09 Jul 2026 02:31:19 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ueu+hEHa; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 618401E098; Thu, 09 Jul 2026 02:31:19 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 040AD1E04F for ; Thu, 09 Jul 2026 02:31:19 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E89C94BA2E25 for ; Thu, 9 Jul 2026 06:31:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E89C94BA2E25 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ueu+hEHa Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by sourceware.org (Postfix) with ESMTPS id 969B54BA2E3E for ; Thu, 9 Jul 2026 06:30:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 969B54BA2E3E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 969B54BA2E3E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783578654; cv=none; b=dYHkTrCIq2Zsd7/YCgLeMd7WJMHvznn1kZbGwd4bxr35/yRG9247SqdAFbd0wER4DE8z397U1CHCubhVlY957QlrJLFejw5qhX1JWUlYt1pWTU+UYGXVSMhovKcF7pcGUWJdCYhH3UJoc7mHCNuh05q0vDC+83jGW4aUY8Eh9pU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783578654; c=relaxed/simple; bh=gB4Wif4madUioU1SyP+bwYkt0WwQoFYAKft3n4ybkKs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AHTCaTgQVW2DUmReMARC4UHbJma4kMPppFoQANuDKQr8kupiYsb2MC07DnXpzs3/jRtNXvlx04qi6H40ShPZ27FO2rKBDXe1Yu+IHQIlEa4aG0Gec6ZdfFe9MTMJ5F3d3gA5YIK10atshlJfXAT1yFjPPsMmlAzTJi2yvqKEzN4= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ueu+hEHa DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 969B54BA2E3E Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-80dc4a68e4aso17522677b3.0 for ; Wed, 08 Jul 2026 23:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1783578654; x=1784183454; darn=sourceware.org; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=U09ZRKIZw2g+udoIG5SJgDkTCq21RbIFt3SatrD5AEk=; b=ueu+hEHadbrdOlUze2Pdd6Trz4wiqtRZmZkmDQ+uiZ8GIGJ01nFk/fbZHb2z1a9eUQ 6WsHsH3pNAE5CXGgUWVReqkMxhZ/k6L+h6e9knfCtyuTqPHLHpNC5LIP3QHudY0vZLXs wCNc6mSmhlizEWRrUYVTjTO9cVgq25qBH76mUA7hv+P6zj8s/fMljrLYDCuxuuGo/VMx KZYVdGxn5YLLwp3eL/DMzRPBV41XsaG87cDKRAMm09Bmc9S2tVrhdmh+Z0A0j+cRckgb AIwnwc4BVRUGKD5couU/baw+x/+8nxG0vP597MeteYQatOCFAaI4AOAwk/d46UD0Z2Qc +jXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783578654; x=1784183454; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=U09ZRKIZw2g+udoIG5SJgDkTCq21RbIFt3SatrD5AEk=; b=Q/mFTMyZjaR7RCG2BmJQcIhTb8JKisMXBDjT/4lD9xc/DR5394ve0cY4bxzwIiC94E Kdv6rBOHUseAM6fJLV372/hE/Xids8/VhS4xdgmoFJG4++fyB04CsqoBaoMqoePWgwij ktR3h14cNMS23VVwHd9/+ykn4E2ohbyovDICNNi3Y5QolM/ym2okPY6ufJFRmVRrwFRY Wd1p+zCV5BcnAvQuzspMVS4Ms8hXtWQt8GdNlTWOrBsSJvOMvU3P7VTkXRbLRHdlKxLf Ce7c3iV2lCyoejuWQUzxhXNkb7rm1UA3fsjfdvi77Kk51zqX4QuacRKvNSRjvtIqlbNP IHDQ== X-Gm-Message-State: AOJu0YzHWK53wOEvQnMZ4HVIXQrsr7etOgGg/YwNVgtu5/Ze4s+lHfV9 Iizy3DnG17ZtfHT8fNrpP2oxBAS7dtpAvHqpMmhfnVsR+Rw54AGSVsRL+QrR4lJbdYM= X-Gm-Gg: AfdE7ckD6p2P3vsF0WV+TK3VXXcm2UEFcyEF8d71AsnV3RZup0aeDK5bE4kEhglSigI dVBUx+Bb99ePEqsNV3ZFCsNIyvRcUkW0Q7WbFCqLFtdv7b1w1shFyQCMdfk21hb0iVlceHq8c1e eNF0+C6gTOOqCmM9evMFXau7Infki8PPe+uUDrDvIPOeBzUqScRxo6sYvyZ4Fy0/SLjPbRMF4xx ydwXFmdE32LiO+OQW2b/qmiphb0NB3ZRkwC0vxZHwDYEthlFGZnH4hp/YktBRduw7COc7zV/C70 Ll8iKAg9VvyeUw+ZSH4+ZE4TQVLtBmuMT3jPlb3l3KvIC6HsqHjtjUwKABa9SXFExQdDofrl8Cj 3Vv6P2JwzpL0gV0V+e3gEIcpY4S5kKuY8ojl67aNnKCu1mBN5XMdJ2RJpL8V9dm3d2iwJizdwTK QOESKLTJbeIsYPTcqSS3VymIo= X-Received: by 2002:a05:690c:6b0c:b0:81d:316f:3546 with SMTP id 00721157ae682-81dbe33de65mr49381837b3.43.1783578653909; Wed, 08 Jul 2026 23:30:53 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81e6c212f14sm10354007b3.42.2026.07.08.23.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 23:30:53 -0700 (PDT) From: Thiago Jung Bauermann To: Matthieu Longo Cc: , Luis Machado , Luis Machado , Andrew Burgess , "Yury Khrustalev" , Pedro Alves , "Tom Tromey" Subject: Re: [PATCH v1 04/10] gdb support: add gdb::replace algorithm for iterators and ranges In-Reply-To: <20260707154900.94542-5-matthieu.longo@arm.com> (Matthieu Longo's message of "Tue, 7 Jul 2026 16:48:54 +0100") References: <20260707154900.94542-1-matthieu.longo@arm.com> <20260707154900.94542-5-matthieu.longo@arm.com> User-Agent: mu4e 1.14.2; emacs 30.2 Date: Thu, 09 Jul 2026 06:30:50 +0000 Message-ID: <87fr1s1xph.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Matthieu Longo writes: > Add a gdb::replace helper that mirrors the behavior of std::replace > for iterator pairs, together with a convenience overload accepting a > range. > > This provides a C++17-compatible replacement for the C++20 std::replace/ > std::ranges::replace algorithms, allowing callers to use a consistent > interface until GDB transitions to C++20. The helpers should be removed > once the C++ standard library implementations become available. > --- > gdbsupport/array-view.h | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) This looks good to me, but I'm not among the most knowledgeable C++ developers here so I'd rather not provide a Reviewed-by. -- Thiago (he/him)