Function operator-

Summary

#include <include/EASTL/bitvector.h>

(1) bitvector_iterator operator-(difference_type dist) const

(2) difference_type operator-(const base_type &rhs) const

Function overload

Synopsis

#include <include/EASTL/bitvector.h>

bitvector_iterator operator-(difference_type dist) const

Description

No description yet.

Source

Lines 729-736 in include/EASTL/bitvector.h. Line 179 in include/EASTL/bitvector.h.

template <typename Element>
bitvector_iterator<Element>
bitvector_iterator<Element>::operator-(difference_type n) const
{
    bitvector_iterator copy(*this);
    copy -= n;
    return copy;
}

Synopsis

#include <include/EASTL/bitvector.h>

difference_type operator-(const base_type &rhs) const

Description

We need this here because we are overloading operator-, so for some reason the other overload of the function can't be found unless it's explicitly specified.

Source

Lines 183-183 in include/EASTL/bitvector.h.

difference_type operator-(const base_type& rhs) const { return base_type::operator-(rhs); }





Add Discussion as Guest

Log in