1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // reverse_iterator rend();
13 // const_reverse_iterator rend() const;
19 #include "min_allocator.h"
26 typename S::reverse_iterator e = s.rend();
27 typename S::const_reverse_iterator ce = cs.rend();
30 assert(e == s.rbegin());
31 assert(ce == cs.rbegin());
33 assert(static_cast<std::size_t>(e - s.rbegin()) == s.size());
34 assert(static_cast<std::size_t>(ce - cs.rbegin()) == cs.size());
40 typedef std::string S;
44 #if TEST_STD_VER >= 11
46 typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;