#include <algorithm>
#include <cstring>
#include <memory>
#include <algorithm>
#include <cstring>
#include <memory>
#ifdef _MSC_VER
namespace std {
#ifdef _MSC_VER
namespace std {
const_reverse_iterator rend() const { return const_reverse_iterator(begin());}
const_reverse_iterator rend() const { return const_reverse_iterator(begin());}
+ /* These asserts could be "Begin + idx < End", but there are lots of places
+ in llvm where we use &v[v.size()] instead of v.end(). */
reference operator[](unsigned idx) {
reference operator[](unsigned idx) {
+ assert (Begin + idx <= End);
return Begin[idx];
}
const_reference operator[](unsigned idx) const {
return Begin[idx];
}
const_reference operator[](unsigned idx) const {
+ assert (Begin + idx <= End);