You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementations should avoid the use of dynamically allocated memory for a small contained object. [ Example: where the object constructed is holding only an int. — end example ] Such small-object optimization shall only be applied to types T for which is_nothrow_move_constructible_v is true.
Grammar-wise the phrasing of the example is not ideal.
The text was updated successfully, but these errors were encountered:
Implementations should avoid the use of dynamically allocated memory for a small contained object. [ Example: Where the object constructed is holding only an int it could be stored in an internal buffer, not in separately-allocated memory. — end example ] Any such small-object optimization shall only be applied to types T for which is_nothrow_move_constructible_v is true.
[any.class]/3 reads:
Grammar-wise the phrasing of the example is not ideal.
The text was updated successfully, but these errors were encountered: