Function front

Summary

#include <include/EASTL/bitvector.h>

(1) reference front()

(2) const_reference front() const

Function overload

Synopsis

#include <include/EASTL/bitvector.h>

reference front()

Description

No description yet.

Source

Lines 891-897 in include/EASTL/bitvector.h. Line 283 in include/EASTL/bitvector.h.

template <typename Allocator, typename Element, typename Container>
typename bitvector<Allocator, Element, Container>::reference
bitvector<Allocator, Element, Container>::front()
{
    EASTL_ASSERT(!empty());
    return reference(&mContainer[0], 0);
}

Synopsis

#include <include/EASTL/bitvector.h>

const_reference front() const

Description

No description yet.

Source

Lines 900-908 in include/EASTL/bitvector.h. Line 284 in include/EASTL/bitvector.h.

template <typename Allocator, typename Element, typename Container>
typename bitvector<Allocator, Element, Container>::const_reference
bitvector<Allocator, Element, Container>::front() const
{
    EASTL_ASSERT(!empty());
    // To consider: make a better solution to this than const_cast.
    return reference(const_cast<Element*>(&mContainer[0]), 0);
}





Add Discussion as Guest

Log in