llvm-project/libcxx/test/std/utilities/utility
Louis Dionne 9f77b1a1de [pair] Mark constructors as conditionally noexcept
Summary:
std::tuple marks its constructors as noexcept when the corresponding
memberwise constructors are noexcept too -- this commit improves std::pair
so that it behaves the same.

This is a re-application of r348824, which broke the build in C++03 mode
because a test was marked as supported in C++03 when it shouldn't be.

Note:
I did not add support in the explicit and non-explicit `pair(_Tuple&& __p)`
constructors because those are non-standard extensions, and supporting them
properly is tedious (we have to copy the rvalue-referenceness of the deduced
_Tuple&& onto the result of tuple_element).

<rdar://problem/29537079>

Reviewers: mclow.lists, EricWF

Subscribers: christof, llvm-commits

Differential Revision: https://reviews.llvm.org/D48669

llvm-svn: 348847
2018-12-11 14:22:28 +00:00
..
as_const [libcxx] [test] Untabify, NFC. 2017-07-29 00:55:10 +00:00
declval
exchange [libcxx] [test] Strip trailing whitespace, NFC. 2018-02-12 22:54:35 +00:00
forward Fix two failing -verify tests to tolerate old and new clang versions 2017-09-17 21:50:59 +00:00
operators
pairs [pair] Mark constructors as conditionally noexcept 2018-12-11 14:22:28 +00:00
utility.inplace Test changes for P0504R0 "Revisiting in-place tag types for any/optional/variant". Patch from Casey Carter 2016-11-17 19:23:35 +00:00
utility.swap Add is_swappable/is_nothrow_swappable traits 2016-04-21 23:38:59 +00:00
synopsis.pass.cpp Placate unused variable warnings uncovered by improvements to clang's -Wunused-variable 2017-10-14 15:52:38 +00:00