P3440R1 — Add n_elements named constructor to std::simd
Daniel Towner
LEWG
Revisions R3Apr 2026R2Feb 2026R1Jul 2025
Proposal to add `std::simd_mask::n_elements` named constructor to create a mask containing an exact number of set bits. Such a function is notably useful for handling loop remainders.