llvm-project/libcxx/test/std/containers/unord
Louis Dionne c43f673090 [libcxx] Portability fix: unordered_set and unordered_multiset iterators are not required to be the same
The unordered_set and unordered_multiset iterators are specified in the standard as follows:

using iterator             = implementation-defined; // see [container.requirements]
using const_iterator       = implementation-defined; // see [container.requirements]
using local_iterator       = implementation-defined; // see [container.requirements]
using const_local_iterator = implementation-defined; // see [container.requirements]

The pairs iterator/const_iterator and local_iterator/const_local_iterator
are not required to be the same. The reasonable requirement would be that
iterator can convert to const_iterator and local_iterator can convert to
const_local_iterator. This patch weakens the check and makes the test
more portable.

Reviewed as https://reviews.llvm.org/D56493.
Thanks to Andrey Maksimov for the patch.

llvm-svn: 352083
2019-01-24 19:09:22 +00:00
..
unord.map Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
unord.multimap Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
unord.multiset Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
unord.set Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
iterator_difference_type.pass.cpp [libcxx] Portability fix: unordered_set and unordered_multiset iterators are not required to be the same 2019-01-24 19:09:22 +00:00