C++ Logo

std-proposals

Advanced search

[std-proposals] views::trim (P2760 Tier 2) and a views::trim_if companion: is anyone working on this?

From: anish aggarwal <anishagg17_at_[hidden]>
Date: Tue, 13 Oct 2026 20:46:19 +0100
P2760 (A Plan for C++26 Ranges) lists views::trim as a Tier 2 range
adaptor to port from range-v3. I’d like to propose it, along with a
views::trim_if companion following the remove/remove_if naming. I
couldn’t find an existing paper. Is anyone already working on this?

If not, I'm planning to write it up; I have a draft and a reference
implementation with tests. Mainly I wanted to check I'm not
duplicating anyone's work before I ask for a P number.

Thanks,
Anish Aggarwal

Received on 2026-10-13 19:46:32