slist Class Reference

class slist
Public Member Functions
slist(const allocator_type &)
slist(size_type, const value_type &, const allocator_type &)
slist(const_iterator, const_iterator, const allocator_type &)
slist(const value_type *, const value_type *, const allocator_type &)
slist(const _Self &)
slist(__move_source< _Self >)
~slist()
voidassign(size_type, const _Tp &)
voidassign(const_pointer, const_pointer)
voidassign(const_iterator, const_iterator)
iterator before_begin()
const_iterator before_begin()
iterator begin()
const_iterator begin()
voidclear()
boolempty()
iterator end()
const_iterator end()
iterator erase(iterator)
iterator erase(iterator, iterator)
iterator erase_after(iterator)
iterator erase_after(iterator, iterator)
reference front()
const_reference front()
allocator_type get_allocator()
iterator insert(iterator, const value_type &)
voidinsert(iterator, size_type, const value_type &)
voidinsert(iterator, const value_type *, const value_type *)
voidinsert(iterator, const_iterator, const_iterator)
iterator insert_after(iterator, const value_type &)
voidinsert_after(iterator, size_type, const value_type &)
voidinsert_after(iterator, const value_type *, const value_type *)
voidinsert_after(iterator, const_iterator, const_iterator)
size_type max_size()
voidmerge(_Self &)
_Self &operator=(const _Self &)
voidpop_front()
iterator previous(const_iterator)
const_iterator previous(const_iterator)
voidpush_front(const value_type &)
voidremove(const _Tp &)
voidresize(size_type, const value_type &)
voidreverse()
size_type size()
voidsort()
voidsplice(iterator, _Self &)
voidsplice(iterator, _Self &, iterator)
voidsplice(iterator, _Self &, iterator, iterator)
voidsplice_after(iterator, _Self &, iterator, iterator)
voidsplice_after(iterator, _Self &, iterator)
voidsplice_after(iterator, _Self &)
voidswap(_Self &)
voidunique()
Private Member Functions
_Node *_M_create_node(const value_type &)
void_M_fill_assign(size_type, const _Tp &)
_Node *_M_insert_after(_Node_base *, const value_type &)
void_M_insert_after_fill(_Node_base *, size_type, const value_type &)
void_M_insert_after_range(_Node_base *, const value_type *, const value_type *)
void_M_insert_after_range(_Node_base *, const_iterator, const_iterator)
void_M_splice_after_range(_Node_base *, const value_type *, const value_type *)
void_M_splice_after_range(_Node_base *, const_iterator, const_iterator)
void_M_splice_range(_Node_base *, const value_type *, const value_type *)
void_M_splice_range(_Node_base *, const_iterator, const_iterator)
Public Member Type Definitions
typedef forward_iterator_tag _Iterator_category
typedef_STLP_PRIV _Slist_iterator< _Tp, _Const_traits< _Tp > > const_iterator
typedefconst value_type * const_pointer
typedefconst value_type & const_reference
typedef ptrdiff_t difference_type
typedef_STLP_PRIV _Slist_iterator< _Tp, _Nonconst_traits< _Tp > > iterator
typedef value_type * pointer
typedef value_type & reference
typedef size_t size_type
typedef_Tp value_type
Private Member Type Definitions
typedef_STLP_PRIV _Slist_base< _Tp, _Alloc > _Base
typedef_STLP_PRIV _Slist_node< _Tp > _Node
typedef_STLP_PRIV _Slist_node_base _Node_base
typedef slist< _Tp, _Alloc > _Self

Constructor & Destructor Documentation

slist(const allocator_type &)

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

Parameters

const allocator_type & __a =  allocator_type()

slist(size_type, const value_type &, const allocator_type &)

slist(size_type__n,
const value_type &__x = _STLP_DEFAULT_CONSTRUCTED(_Tp),
const allocator_type &__a =  allocator_type()
)[inline, explicit]

Parameters

size_type __n
const value_type & __x = _STLP_DEFAULT_CONSTRUCTED(_Tp)
const allocator_type & __a =  allocator_type()

slist(const_iterator, const_iterator, const allocator_type &)

slist(const_iterator__first,
const_iterator__last,
const allocator_type &__a =  allocator_type()
)[inline]

Parameters

const_iterator __first
const_iterator __last
const allocator_type & __a =  allocator_type()

slist(const value_type *, const value_type *, const allocator_type &)

slist(const value_type *__first,
const value_type *__last,
const allocator_type &__a =  allocator_type()
)[inline]

Parameters

const value_type * __first
const value_type * __last
const allocator_type & __a =  allocator_type()

slist(const _Self &)

slist(const _Self &__x)[inline]

Parameters

const _Self & __x

slist(__move_source< _Self >)

slist(__move_source< _Self >src)[inline]

Parameters

__move_source< _Self > src

~slist()

~slist()[inline]

Member Functions Documentation

_M_create_node(const value_type &)

_Node *_M_create_node(const value_type &__x = _Tp())[private, inline]

Parameters

const value_type & __x = _Tp()

_M_fill_assign(size_type, const _Tp &)

void_M_fill_assign(size_type__n,
const _Tp &__val
)[private]

Parameters

size_type __n
const _Tp & __val

_M_insert_after(_Node_base *, const value_type &)

_Node *_M_insert_after(_Node_base *__pos,
const value_type &__x = _Tp()
)[private, inline]

Parameters

_Node_base * __pos
const value_type & __x = _Tp()

_M_insert_after_fill(_Node_base *, size_type, const value_type &)

void_M_insert_after_fill(_Node_base *__pos,
size_type__n,
const value_type &__x
)[private, inline]

Parameters

_Node_base * __pos
size_type __n
const value_type & __x

_M_insert_after_range(_Node_base *, const value_type *, const value_type *)

void_M_insert_after_range(_Node_base *__pos,
const value_type *__first,
const value_type *__last
)[private, inline]

Parameters

_Node_base * __pos
const value_type * __first
const value_type * __last

_M_insert_after_range(_Node_base *, const_iterator, const_iterator)

void_M_insert_after_range(_Node_base *__pos,
const_iterator__first,
const_iterator__last
)[private, inline]

Parameters

_Node_base * __pos
const_iterator __first
const_iterator __last

_M_splice_after_range(_Node_base *, const value_type *, const value_type *)

void_M_splice_after_range(_Node_base *__pos,
const value_type *__first,
const value_type *__last
)[private, inline]

Parameters

_Node_base * __pos
const value_type * __first
const value_type * __last

_M_splice_after_range(_Node_base *, const_iterator, const_iterator)

void_M_splice_after_range(_Node_base *__pos,
const_iterator__first,
const_iterator__last
)[private, inline]

Parameters

_Node_base * __pos
const_iterator __first
const_iterator __last

_M_splice_range(_Node_base *, const value_type *, const value_type *)

void_M_splice_range(_Node_base *__pos,
const value_type *__first,
const value_type *__last
)[private, inline]

Parameters

_Node_base * __pos
const value_type * __first
const value_type * __last

_M_splice_range(_Node_base *, const_iterator, const_iterator)

void_M_splice_range(_Node_base *__pos,
const_iterator__first,
const_iterator__last
)[private, inline]

Parameters

_Node_base * __pos
const_iterator __first
const_iterator __last

assign(size_type, const _Tp &)

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

Parameters

size_type __n
const _Tp & __val

assign(const_pointer, const_pointer)

voidassign(const_pointer__first,
const_pointer__last
)[inline]

Parameters

const_pointer __first
const_pointer __last

assign(const_iterator, const_iterator)

voidassign(const_iterator__first,
const_iterator__last
)[inline]

Parameters

const_iterator __first
const_iterator __last

before_begin()

iterator before_begin()[inline]

before_begin()

const_iterator before_begin()const [inline]

begin()

iterator begin()[inline]

begin()

const_iterator begin()const [inline]

clear()

voidclear()[inline]

empty()

boolempty()const [inline]

end()

iterator end()[inline]

end()

const_iterator end()const [inline]

erase(iterator)

iterator erase(iterator__pos)[inline]

Parameters

iterator __pos

erase(iterator, iterator)

iterator erase(iterator__first,
iterator__last
)[inline]

Parameters

iterator __first
iterator __last

erase_after(iterator)

iterator erase_after(iterator__pos)[inline]

Parameters

iterator __pos

erase_after(iterator, iterator)

iterator erase_after(iterator__before_first,
iterator__last
)[inline]

Parameters

iterator __before_first
iterator __last

front()

reference front()[inline]

front()

const_reference front()const [inline]

get_allocator()

allocator_type get_allocator()const [inline]

insert(iterator, const value_type &)

iterator insert(iterator__pos,
const value_type &__x = _Tp()
)[inline]

Parameters

iterator __pos
const value_type & __x = _Tp()

insert(iterator, size_type, const value_type &)

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

Parameters

iterator __pos
size_type __n
const value_type & __x

insert(iterator, const value_type *, const value_type *)

voidinsert(iterator__pos,
const value_type *__first,
const value_type *__last
)[inline]

Parameters

iterator __pos
const value_type * __first
const value_type * __last

insert(iterator, const_iterator, const_iterator)

voidinsert(iterator__pos,
const_iterator__first,
const_iterator__last
)[inline]

Parameters

iterator __pos
const_iterator __first
const_iterator __last

insert_after(iterator, const value_type &)

iterator insert_after(iterator__pos,
const value_type &__x = _Tp()
)[inline]

Parameters

iterator __pos
const value_type & __x = _Tp()

insert_after(iterator, size_type, const value_type &)

voidinsert_after(iterator__pos,
size_type__n,
const value_type &__x
)[inline]

Parameters

iterator __pos
size_type __n
const value_type & __x

insert_after(iterator, const value_type *, const value_type *)

voidinsert_after(iterator__pos,
const value_type *__first,
const value_type *__last
)[inline]

Parameters

iterator __pos
const value_type * __first
const value_type * __last

insert_after(iterator, const_iterator, const_iterator)

voidinsert_after(iterator__pos,
const_iterator__first,
const_iterator__last
)[inline]

Parameters

iterator __pos
const_iterator __first
const_iterator __last

max_size()

size_type max_size()const [inline]

merge(_Self &)

voidmerge(_Self &__x)[inline]

Parameters

_Self & __x

operator=(const _Self &)

_Self &operator=(const _Self &__x)

Parameters

const _Self & __x

pop_front()

voidpop_front()[inline]

previous(const_iterator)

iterator previous(const_iterator__pos)[inline]

Parameters

const_iterator __pos

previous(const_iterator)

const_iterator previous(const_iterator__pos)const [inline]

Parameters

const_iterator __pos

push_front(const value_type &)

voidpush_front(const value_type &__x = _Tp())[inline]

Parameters

const value_type & __x = _Tp()

remove(const _Tp &)

voidremove(const _Tp &__val)

Parameters

const _Tp & __val

resize(size_type, const value_type &)

voidresize(size_typenew_size,
const value_type &__x = _Tp()
)

Parameters

size_type new_size
const value_type & __x = _Tp()

reverse()

voidreverse()[inline]

size()

size_type size()const [inline]

sort()

voidsort()[inline]

splice(iterator, _Self &)

voidsplice(iterator__pos,
_Self &__x
)[inline]

Parameters

iterator __pos
_Self & __x

splice(iterator, _Self &, iterator)

voidsplice(iterator__pos,
_Self &__x,
iterator__i
)[inline]

Parameters

iterator __pos
_Self & __x
iterator __i

splice(iterator, _Self &, iterator, iterator)

voidsplice(iterator__pos,
_Self &__x,
iterator__first,
iterator__last
)[inline]

Parameters

iterator __pos
_Self & __x
iterator __first
iterator __last

splice_after(iterator, _Self &, iterator, iterator)

voidsplice_after(iterator__pos,
_Self &__x,
iterator__before_first,
iterator__before_last
)[inline]

Parameters

iterator __pos
_Self & __x
iterator __before_first
iterator __before_last

splice_after(iterator, _Self &, iterator)

voidsplice_after(iterator__pos,
_Self &__x,
iterator__prev
)[inline]

Parameters

iterator __pos
_Self & __x
iterator __prev

splice_after(iterator, _Self &)

voidsplice_after(iterator__pos,
_Self &__x
)[inline]

Parameters

iterator __pos
_Self & __x

swap(_Self &)

voidswap(_Self &__x)[inline]

Parameters

_Self & __x

unique()

voidunique()[inline]

Member Type Definitions Documentation

Typedef _Base

typedef _STLP_PRIV _Slist_base< _Tp, _Alloc >_Base[private]

Typedef _Iterator_category

typedef forward_iterator_tag _Iterator_category

Typedef _Node

typedef _STLP_PRIV _Slist_node< _Tp >_Node[private]

Typedef _Node_base

typedef _STLP_PRIV _Slist_node_base_Node_base[private]

Typedef _Self

typedef slist< _Tp, _Alloc >_Self[private]

Typedef const_iterator

typedef _STLP_PRIV _Slist_iterator< _Tp, _Const_traits< _Tp > >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 _STLP_PRIV _Slist_iterator< _Tp, _Nonconst_traits< _Tp > >iterator

Typedef pointer

typedef value_type *pointer

Typedef reference

typedef value_type &reference

Typedef size_type

typedef size_t size_type

Typedef value_type

typedef _Tpvalue_type