Created on 2019-02-20.00:00:00, last changed 2019-03-05.18:54:44.
This wording is relative to N4800.
Change [allocator.members] as indicated:
[[nodiscard]] T* allocate(size_t n);
[…]-4- Throws: bad_alloc if the storage cannot be obtained.
[ 2019-03-05 Priority set to 3 after reflector discussion ]
-2- Returns: A pointer to the initial element of an array of storage of size n * sizeof(T), aligned appropriately for objects of type T.
As in LWG 3038, we should not return too little storage for n objects of size sizeof(T), e.g. when n is SIZE_MAX / 2 and T is short.
|2019-03-05 18:54:44||admin||set||messages: + msg10342|
|2019-03-03 18:40:22||admin||set||messages: + msg10333|