[libcxx-commits] [PATCH] D70617: Add default initialization to compressed_pair.
Martijn Vels via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 22 13:58:33 PST 2019
mvels created this revision.
Herald added subscribers: libcxx-commits, christof.
Herald added a project: libc++.
mvels added a reviewer: EricWF.
Herald added a reviewer: mclow.lists.
This change introduces the __default_init_tag to memory, and a corresponding element constructor to allow for default initialization of either of the pair values. This is useful for classes such as std::string where most (all) constructors explitly initialize the values in the constructor.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70617
Files:
libcxx/include/memory
libcxx/test/std/memory/compressed_pair/compressed_pair.pass.cpp
libcxx/test/std/memory/nothing_to_do.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70617.230719.patch
Type: text/x-patch
Size: 3280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191122/79c024dd/attachment.bin>
More information about the libcxx-commits
mailing list