Function validate_iterator

Synopsis

#include <include/EASTL/string.h>

int validate_iterator(const_iterator i) const EA_NOEXCEPT

Description

No description yet.

Source

Lines 3735-3748 in include/EASTL/string.h. Line 749 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline int basic_string<T, Allocator>::validate_iterator(const_iterator i) const EA_NOEXCEPT
{
    if(i >= internalLayout().BeginPtr())
    {
        if(i < internalLayout().EndPtr())
            return (isf_valid | isf_current | isf_can_dereference);
        if(i <= internalLayout().EndPtr())
            return (isf_valid | isf_current);
    }
    return isf_none;
}





Add Discussion as Guest

Log in