Function front

Summary

#include <include/EASTL/deque.h>

(1) reference front()

(2) const_reference front() const

Function overload

Synopsis

#include <include/EASTL/deque.h>

reference front()

Description

No description yet.

Source

Lines 1591-1603 in include/EASTL/deque.h. Line 430 in include/EASTL/deque.h.

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

Synopsis

#include <include/EASTL/deque.h>

const_reference front() const

Description

No description yet.

Source

Lines 1606-1618 in include/EASTL/deque.h. Line 431 in include/EASTL/deque.h.

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





Add Discussion as Guest

Log in