Function advance_impl

Synopsis

#include <include/EASTL/iterator.h>

template <typename BidirectionalIterator, typename Distance>
static void advance_impl(BidirectionalIterator &i, Distance n)

Description

No description yet.

Source

Lines 894-907 in include/EASTL/iterator.h.

template <typename BidirectionalIterator, typename Distance>
static void advance_impl(BidirectionalIterator& i, Distance n) // Specialization for signed distance type.
{
    if(n > 0)
    {
        while(n--)
            ++i;
    }
    else
    {
        while(n++)
            --i;
    }
}





Add Discussion as Guest

Log in