N3644 support for <string> and <vector>

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@187909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-08-07 20:48:48 +00:00
parent 36ba399a33
commit 0f164c9d75
3 changed files with 89 additions and 0 deletions

View File

@@ -135,4 +135,17 @@ int main()
assert(j->first == 3);
}
#endif
#if _LIBCPP_STD_VER > 11
{ // N3664 testing
typedef std::vector<int> C;
C::iterator ii1{}, ii2{};
C::iterator ii4 = ii1;
C::const_iterator cii{};
assert ( ii1 == ii2 );
assert ( ii1 == ii4 );
assert ( ii1 == cii );
assert ( !(ii1 != ii2 ));
assert ( !(ii1 != cii ));
}
#endif
}