P4398

views::trim and views::trim_while

R0

Removing padding from both ends of a sequence is common: whitespace around a token, zero samples around a signal, sentinel values around a payload, empty slots around the live part of a buffer. C++ has `views``::``drop_while` for the front, but nothing for both ends.

Authors
Anish Aggarwal
Mailing
2026-10
Doc date
2026-10-19
Audience
SG9SG18