You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/utilities/utility/pairs/pairs.pair
Louis Dionne bca4d67c16 [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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@348847 91177308-0d34-0410-b5e6-96231b3b80d8
6 years ago
..
U_V.pass.cpp Refactor test archetypes implementation. 8 years ago
assign_const_pair_U_V.pass.cpp fix typo in align_const_pair_U_V.pass.cpp 7 years ago
assign_pair.pass.cpp Recommit r276548 - Make pair/tuples assignment operators SFINAE properly. 8 years ago
assign_pair_cxx03.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 8 years ago
assign_rv_pair.pass.cpp [libcxx] [test] Avoid MSVC truncation warnings. 7 years ago
assign_rv_pair_U_V.pass.cpp Move libc++ pair/tuple assign test to libcxx/ test directory. 7 years ago
const_first_const_second.pass.cpp Refactor test archetypes implementation. 8 years ago
const_first_const_second_cxx03.pass.cpp Implement the std::pair parts of "Improving pair and tuple". Completes N4387. 8 years ago
const_pair_U_V.pass.cpp [libcxx] [test] Avoid MSVC truncation warnings. 7 years ago
const_pair_U_V_cxx03.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 3/7. 8 years ago
copy_ctor.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 3/7. 8 years ago
default-sfinae.pass.cpp [libcxx] [test] Fix comment typos, strip trailing whitespace. 8 years ago
default.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 3/3. 8 years ago
dtor.pass.cpp [libcxx] [test] Strip trailing whitespace. NFC. 8 years ago
implicit_deduction_guides.pass.cpp Add C++17 explicit deduction guides to std::pair. 7 years ago
move_ctor.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 3/7. 8 years ago
not_constexpr_cxx11.fail.cpp Implement the std::pair parts of "Improving pair and tuple". Completes N4387. 8 years ago
piecewise.pass.cpp [pair] Mark constructors as conditionally noexcept 6 years ago
rv_pair_U_V.pass.cpp [libcxx] [test] Avoid MSVC truncation warnings. 7 years ago
special_member_generation_test.pass.cpp Refactor test archetypes implementation. 8 years ago
swap.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 3/7. 8 years ago
trivial_copy_move.pass.cpp Disable trivial pair copy/move tests when unsupported 8 years ago
types.pass.cpp Move test into test/std subdirectory. 10 years ago