Function back

Summary

#include <include/EASTL/deque.h>

(1) reference back()

(2) const_reference back() const

Function overload

Synopsis

#include <include/EASTL/deque.h>

reference back()

Description

No description yet.

Source

Lines 1621-1633 in include/EASTL/deque.h. Line 433 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
typename deque<T, Allocator, kDequeSubarraySize>::reference
deque<T, Allocator, kDequeSubarraySize>::back()
{
    #if EASTL_ASSERT_ENABLED && EASTL_EMPTY_REFERENCE_ASSERT_ENABLED
        if (EASTL_UNLIKELY((size_type)(mItEnd == mItBegin)))
            EASTL_FAIL_MSG("deque::back -- empty deque");
    #else
        // We allow the user to reference an empty container.
    #endif
    return *iterator(mItEnd, typename iterator::Decrement());
}

Synopsis

#include <include/EASTL/deque.h>

const_reference back() const

Description

No description yet.

Source

Lines 1636-1648 in include/EASTL/deque.h. Line 434 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
typename deque<T, Allocator, kDequeSubarraySize>::const_reference
deque<T, Allocator, kDequeSubarraySize>::back() const
{
    #if EASTL_ASSERT_ENABLED && EASTL_EMPTY_REFERENCE_ASSERT_ENABLED
        if (EASTL_UNLIKELY((size_type)(mItEnd == mItBegin)))
            EASTL_FAIL_MSG("deque::back -- empty deque");
    #else
        // We allow the user to reference an empty container.
    #endif
    return *iterator(mItEnd, typename iterator::Decrement());
}





Add Discussion as Guest

Log in