Add basic_string::__resize_default_init (from P1072)
authorEric Fiselier <eric@efcs.ca>
Mon, 26 Nov 2018 20:15:38 +0000 (20:15 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 26 Nov 2018 20:15:38 +0000 (20:15 +0000)
commit01a87ef88b77034ab6a9ea7bc9da24fb380e91e8
tree102226ac8c60dd336894950f571b5f4e48357c9b
parente8e8c5cf4dfb2cd8a2505db9d8d103661a153458
Add basic_string::__resize_default_init (from P1072)

This patch adds an implementation of __resize_default_init as
described in P1072R2. Additionally, it uses it in filesystem to
demonstrate its intended utility.

Once P1072 lands, or if it changes it's interface, I will adjust
the internal libc++ implementation to match.

llvm-svn: 347589
libcxx/include/string
libcxx/src/filesystem/filesystem_common.h
libcxx/test/libcxx/strings/basic.string/string.modifiers/resize_default_initialized.pass.cpp [new file with mode: 0644]