Function front

Summary

#include <include/EASTL/array.h>

(1) EA_CPP14_CONSTEXPR reference front()

(2) EA_CPP14_CONSTEXPR const_reference front() const

Function overload

Synopsis

#include <include/EASTL/array.h>

EA_CPP14_CONSTEXPR reference front()

Description

No description yet.

Source

Lines 307-317 in include/EASTL/array.h. Line 120 in include/EASTL/array.h.

template <typename T, size_t N>
EA_CPP14_CONSTEXPR inline typename array<T, N>::reference
array<T, N>::front()
{
    #if EASTL_ASSERT_ENABLED
        if(EASTL_UNLIKELY(empty())) // We don't allow the user to reference an empty container.
            EASTL_FAIL_MSG("array::front -- empty array");
    #endif
    return mValue[0];
}

Synopsis

#include <include/EASTL/array.h>

EA_CPP14_CONSTEXPR const_reference front() const

Description

No description yet.

Source

Lines 320-330 in include/EASTL/array.h. Line 121 in include/EASTL/array.h.

template <typename T, size_t N>
EA_CPP14_CONSTEXPR inline typename array<T, N>::const_reference
array<T, N>::front() const
{
    #if EASTL_ASSERT_ENABLED
        if(EASTL_UNLIKELY(empty())) // We don't allow the user to reference an empty container.
            EASTL_FAIL_MSG("array::front -- empty array");
    #endif
    return mValue[0];
}





Add Discussion as Guest

Log in