_Self
difference_type operator-(const _Self& __x) const {
_Self& operator++() {
_Self operator++(int) {
_Self __tmp = *this;
_Self& operator--() {
_Self operator--(int) {
_Self __tmp = *this;
_Self& operator+=(difference_type __n)
_Self operator+(difference_type __n) const
_Self __tmp = *this;
_Self& operator-=(difference_type __n) { return *this += -__n; }
_Self operator-(difference_type __n) const {
_Self __tmp = *this;
bool operator==(const _Self& __x) const { return _M_cur == __x._M_cur; }
bool operator!=(const _Self& __x) const { return !(*this == __x); }
bool operator<(const _Self& __x) const {
_Self& operator++() {
_Self operator++(int) {
_Self __tmp = *this;
_Self& operator--() {
_Self operator--(int) {
_Self __tmp = *this;
reverse_iterator(const _Self& __x) : current(__x.current) {}
_Self& operator++() {
_Self operator++(int) {
_Self __tmp = *this;
_Self& operator--() {
_Self operator--(int) {
_Self __tmp = *this;
_Self operator+(difference_type __n) const {
return _Self(current - __n);
_Self& operator+=(difference_type __n) {
_Self operator-(difference_type __n) const {
return _Self(current + __n);
_Self& operator-=(difference_type __n) {
_Self& operator++() {
_Self operator++(int) {
_Self __tmp = *this;
_Self& operator--() {
_Self operator--(int) {
_Self __tmp = *this;
_Self operator+(_Distance __n) const {
return _Self(current - __n);
_Self& operator+=(_Distance __n) {
_Self operator-(_Distance __n) const {
return _Self(current + __n);
_Self& operator-=(_Distance __n) {
bool operator==(const _Self& __x) const { return _M_node == __x._M_node; }
bool operator!=(const _Self& __x) const { return _M_node != __x._M_node; }
_Self& operator++() {
_Self operator++(int) {
_Self __tmp = *this;
_Self& operator--() {
_Self operator--(int) {
_Self __tmp = *this;
_Self& operator++()
_Self operator++(int)
_Self __tmp = *this;
_Self& operator++() { _M_increment(); return *this; }
_Self operator++(int) {
_Self __tmp = *this;
_Self& operator--() { _M_decrement(); return *this; }
_Self operator--(int) {
_Self __tmp = *this;