Struct advance_bi_impl< true >

Synopsis

#include <include/EASTL/iterator.h>

template <>
struct advance_bi_impl<true>

Description

No description yet.

Methods

advance_impl

Source

Lines 891-908 in include/EASTL/iterator.h.

template <>
struct advance_bi_impl<true>
{
    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