Function pop_back

Synopsis

#include <include/EASTL/string.h>

void pop_back()

Description

No description yet.

Source

Lines 1883-1893 in include/EASTL/string.h. Line 644 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline void basic_string<T, Allocator>::pop_back()
{
    #if EASTL_ASSERT_ENABLED
        if(EASTL_UNLIKELY(internalLayout().GetSize() <= 0))
            EASTL_FAIL_MSG("basic_string::pop_back -- empty string");
    #endif
    internalLayout().EndPtr()[-1] = value_type(0);
    internalLayout().SetSize(internalLayout().GetSize() - 1);
}





Add Discussion as Guest

Log in