Skip to content

[2026-03 LWG Motion 26] P3787R2 Adjoints to "Enabling list-initialization for algorithms": uninitialized_fill#8905

Open
jensmaurer wants to merge 2 commits intomainfrom
motions-2026-03-lwg-26
Open

[2026-03 LWG Motion 26] P3787R2 Adjoints to "Enabling list-initialization for algorithms": uninitialized_fill#8905
jensmaurer wants to merge 2 commits intomainfrom
motions-2026-03-lwg-26

Conversation

@jensmaurer
Copy link
Copy Markdown
Member

Fixes NB FR-027-267 (C++26 CD).

Fixes #8860

Also fixes cplusplus/papers#2394
Also fixes cplusplus/nbballot#842

…initialized_fill

Fixes NB FR-027-267 (C++26 CD).
@jensmaurer jensmaurer added this to the post-2026-03 milestone Apr 1, 2026
requires @\libconcept{constructible_from}@<iter_value_t<I>, const T&>
constexpr I uninitialized_fill(I first, S last, const T& x); // freestanding
template<@\exposconcept{nothrow-forward-range}@ R, class T>
template<@\exposconcept{nothrow-forward-range}@ R, class T = iter_value_t<I>>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
template<@\exposconcept{nothrow-forward-range}@ R, class T = iter_value_t<I>>
template<@\exposconcept{nothrow-forward-range}@ R, class T = range_value_t<R>>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants