Avoid copies in std::scoped_allocator_adaptor piecewise construction
authorJonathan Wakely <jwakely@redhat.com>
Fri, 14 Oct 2016 16:12:21 +0000 (17:12 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 14 Oct 2016 16:12:21 +0000 (17:12 +0100)
commita4744f620f32b6b859a39c6876f5e21b52b1af4b
tree1066398a67a405a7006243379c47c61cdac0098d
parent30cd7c740ce5525181b557b51238963260f16637
Avoid copies in std::scoped_allocator_adaptor piecewise construction

* include/std/scoped_allocator (scoped_allocator_adaptor): Forward
piecewise construction arguments as tuples of references, to avoid
copies (related to LWG 2511).
* testsuite/20_util/scoped_allocator/construct_pair.cc: New test.

From-SVN: r241169
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/scoped_allocator
libstdc++-v3/testsuite/20_util/scoped_allocator/construct_pair.cc [new file with mode: 0644]