aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-11-10 16:59:29 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-11-11 18:16:17 +0000
commit083fd73202fb7387c16b6c9beab9841939a62acb (patch)
tree7a089906b594a4f235baa11e4e7b41e4a9ed2089 /gcc
parentef0e100f5870bbb792f378858864f915696dd232 (diff)
downloadgcc-083fd73202fb7387c16b6c9beab9841939a62acb.zip
gcc-083fd73202fb7387c16b6c9beab9841939a62acb.tar.gz
gcc-083fd73202fb7387c16b6c9beab9841939a62acb.tar.bz2
libstdc++: Make pmr::memory_resource::allocate implicitly create objects
Calling the placement version of ::operator new "implicitly creates objects in the returned region of storage" as per [intro.object]. This allows the returned memory to be used as storage for implicit-lifetime types (including arrays) without additional action by the caller. This is required by the proposed resolution of LWG 3147. libstdc++-v3/ChangeLog: * include/std/memory_resource (memory_resource::allocate): Implicitly create objects in the returned storage.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions