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.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.