Function back

Summary

#include <include/EASTL/array.h>

(1) EA_CPP14_CONSTEXPR reference back()

(2) EA_CPP14_CONSTEXPR const_reference back() const

Function overload

Synopsis

#include <include/EASTL/array.h>

EA_CPP14_CONSTEXPR reference back()

Description

No description yet.

Source

Lines 333-343 in include/EASTL/array.h. Line 123 in include/EASTL/array.h.

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

Synopsis

#include <include/EASTL/array.h>

EA_CPP14_CONSTEXPR const_reference back() const

Description

No description yet.

Source

Lines 346-356 in include/EASTL/array.h. Line 124 in include/EASTL/array.h.

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





Add Discussion as Guest

Log in