P3440

Add n_elements named constructor to std::simd

Latest is R4R3
Paperweight: Heavy

When iterating over large dynamic data sets using `std::simd` there will inevitably be situations where the very last block of data doesn’t fill the entire `std::simd` object. This remainder needs to be processed using a partially filled `std::simd` object. For example:

Authors
Daniel Towner
Mailing
2026-04
Doc date
2026-03-23
Audience
LEWG
P

Revision history

  1. 2026-10
    R4 LWG

    Add mask_from_count function to std::simd

  2. 2026-04
    R3 Selected (shown above)
  3. 2026-02
    R2 LEWG

    Add mask_from_count function to std::simd

  4. 2025-07
    R1 LEWG

    Add n_elements named constructor to std::simd