vector Class Reference

#include <stdapis/stlportv5/stl/_vector.h>

class vector : protected _STLP_PRIV _Vector_base

Inherits from

  • vector
    Public Member Type Definitions
    typedef random_access_iterator_tag _Iterator_category
    typedefconst value_type * const_iterator
    typedefconst value_type * const_pointer
    typedefconst value_type & const_reference
    typedef ptrdiff_t difference_type
    typedef value_type * iterator
    typedef value_type * pointer
    typedef value_type & reference
    typedef size_t size_type
    Public Attributes
    _STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS
    _STLP_FORCE_ALLOCATORS(_Tp, _Alloc) typedef typename _Base typedef _Tpvalue_type
    Public Member Functions
    vector(const allocator_type &)
    vector(size_type)
    vector(size_type, const _Tp &, const allocator_type &)
    vector(const _Self &)
    vector(__move_source< _Self >)
    vector(const _Tp *, const _Tp *, const allocator_type &)
    ~vector()
    void_M_fill_assign(size_type, const _Tp &)
    voidassign(size_type, const _Tp &)
    voidassign(const_iterator, const_iterator)
    reference at(size_type)
    const_reference at(size_type)
    reference back()
    const_reference back()
    iterator begin()
    const_iterator begin()
    size_type capacity()
    voidclear()
    boolempty()
    iterator end()
    const_iterator end()
    iterator erase(iterator)
    iterator erase(iterator, iterator)
    reference front()
    const_reference front()
    allocator_type get_allocator()
    iterator insert(iterator, const _Tp &)
    voidinsert(iterator, const_iterator, const_iterator)
    voidinsert(iterator, size_type, const _Tp &)
    size_type max_size()
    _Self &operator=(const _Self &)
    reference operator[](size_type)
    const_reference operator[](size_type)
    voidpop_back()
    voidpush_back(const _Tp &)
    reverse_iterator rbegin()
    const_reverse_iteratorrbegin()
    reverse_iterator rend()
    const_reverse_iteratorrend()
    voidreserve(size_type)
    voidresize(size_type, const _Tp &)
    size_type size()
    voidswap(_Self &)

    Member Type Definition Documentation

    Typedef _Iterator_category

    typedef random_access_iterator_tag _Iterator_category

    Typedef const_iterator

    typedef const value_type *const_iterator

    Typedef const_pointer

    typedef const value_type *const_pointer

    Typedef const_reference

    typedef const value_type &const_reference

    Typedef difference_type

    typedef ptrdiff_t difference_type

    Typedef iterator

    typedef value_type *iterator

    Typedef pointer

    typedef value_type *pointer

    Typedef reference

    typedef value_type &reference

    Typedef size_type

    typedef size_t size_type

    Member Attribute Documentation

    _STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS

    _STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS

    value_type

    _STLP_FORCE_ALLOCATORS(_Tp, _Alloc) typedef typename _Base typedef _Tpvalue_type

    Constructor & Destructor Documentation

    vector ( const allocator_type & )

    vector(const allocator_type &__a =  allocator_type())[inline, explicit]

    vector ( size_type )

    vector(size_type__n)[inline, explicit]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __n-
    Return Value
    -

    vector ( size_type, const _Tp &, const allocator_type & )

    vector(size_type__n,
    const _Tp &__val,
    const allocator_type &__a =  allocator_type()
    )[inline]

    vector ( const _Self & )

    vector(const _Self &__x)[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __x-
    Return Value
    -

    vector ( __move_source< _Self > )

    vector(__move_source< _Self >src)[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    src-
    Return Value
    -

    vector ( const _Tp *, const _Tp *, const allocator_type & )

    vector(const _Tp *__first,
    const _Tp *__last,
    const allocator_type &__a =  allocator_type()
    )[inline]

    ~vector ( )

    ~vector()[inline]

    Member Function Documentation

    _M_fill_assign ( size_type, const _Tp & )

    void_M_fill_assign(size_type__n,
    const _Tp &__val
    )

    assign ( size_type, const _Tp & )

    voidassign(size_type__n,
    const _Tp &__val
    )[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __n-
    __val-
    Return Value
    -

    assign ( const_iterator, const_iterator )

    voidassign(const_iterator__first,
    const_iterator__last
    )[inline]

    at ( size_type )

    reference at(size_type__n)[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __n-
    Return Value
    -

    at ( size_type )

    const_reference at(size_type__n)const [inline]

    back ( )

    reference back()[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Return Value
    -

    back ( )

    const_reference back()const [inline]

    begin ( )

    iterator begin()[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Return Value
    -

    begin ( )

    const_iterator begin()const [inline]

    capacity ( )

    size_type capacity()const [inline]

    clear ( )

    voidclear()[inline]

    empty ( )

    boolempty()const [inline]

    end ( )

    iterator end()[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Return Value
    -

    end ( )

    const_iterator end()const [inline]

    erase ( iterator )

    iterator erase(iterator__pos)[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __pos-
    Return Value
    -

    erase ( iterator, iterator )

    iterator erase(iterator__first,
    iterator__last
    )[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __first-
    __last-
    Return Value
    -

    front ( )

    reference front()[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Return Value
    -

    front ( )

    const_reference front()const [inline]

    get_allocator ( )

    allocator_type get_allocator()const [inline]

    insert ( iterator, const _Tp & )

    iterator insert(iterator__pos,
    const _Tp &__x = _STLP_DEFAULT_CONSTRUCTED(_Tp)
    )

    insert ( iterator, const_iterator, const_iterator )

    voidinsert(iterator__pos,
    const_iterator__first,
    const_iterator__last
    )[inline]

    insert ( iterator, size_type, const _Tp & )

    voidinsert(iterator__pos,
    size_type__n,
    const _Tp &__x
    )[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __pos-
    __n-
    __x-
    Return Value
    -

    max_size ( )

    size_type max_size()const [inline]

    operator= ( const _Self & )

    _Self &operator=(const _Self &__x)

    operator[] ( size_type )

    reference operator[](size_type__n)[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Parameters
    __n-
    Return Value
    -

    operator[] ( size_type )

    const_reference operator[](size_type__n)const [inline]

    pop_back ( )

    voidpop_back()[inline]

    push_back ( const _Tp & )

    voidpush_back(const _Tp &__x = _STLP_DEFAULT_CONSTRUCTED(_Tp))[inline]

    rbegin ( )

    reverse_iterator rbegin()[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Return Value
    -

    rbegin ( )

    const_reverse_iteratorrbegin()const [inline]

    rend ( )

    reverse_iterator rend()[inline]

    For full documentation see: http://www.sgi.com/tech/stl/table_of_contents.html

    The Symbian implementation of this API fully supports all STL functionality.

    Return Value
    -

    rend ( )

    const_reverse_iteratorrend()const [inline]

    reserve ( size_type )

    voidreserve(size_type__n)

    resize ( size_type, const _Tp & )

    voidresize(size_type__new_size,
    const _Tp &__x = _STLP_DEFAULT_CONSTRUCTED(_Tp)
    )[inline]

    size ( )

    size_type size()const [inline]

    swap ( _Self & )

    voidswap(_Self &__x)[inline]

    _STLP_DONT_SUP_DFLT_PARAM && !_STLP_NO_ANACHRONISMS