Showing posts with label cpp26_container. Show all posts
Showing posts with label cpp26_container. Show all posts

Dec 10, 2025

[C++] container.assign_range(rg)

Reference:
https://eel.is/c++draft/sequence.reqmts#64

a.assign_range(rg)
Recommended practice:
If R models ranges​::​approximately_sized_range and ranges​::​distance(rg) <= ranges​::​reserve_hint(rg) is true, an implementation should not perform any reallocation.