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 ()
void assign ( size_type , const _Tp &)
void assign ( const_pointer , const_pointer )
void assign ( const_iterator , const_iterator )
iterator before_begin ()
const_iterator before_begin ()
iterator begin ()
const_iterator begin ()
void clear ()
bool empty ()
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 &)
void insert ( iterator , size_type , const value_type &)
void insert ( iterator , const value_type *, const value_type *)
void insert ( iterator , const_iterator , const_iterator )
iterator insert_after ( iterator , const value_type &)
void insert_after ( iterator , size_type , const value_type &)
void insert_after ( iterator , const value_type *, const value_type *)
void insert_after ( iterator , const_iterator , const_iterator )
size_type max_size ()
void merge ( _Self &)
_Self & operator= (const _Self &)
void pop_front ()
iterator previous ( const_iterator )
const_iterator previous ( const_iterator )
void push_front (const value_type &)
void remove (const _Tp &)
void resize ( size_type , const value_type &)
void reverse ()
size_type size ()
void sort ()
void splice ( iterator , _Self &)
void splice ( iterator , _Self &, iterator )
void splice ( iterator , _Self &, iterator , iterator )
void splice_after ( iterator , _Self &, iterator , iterator )
void splice_after ( iterator , _Self &, iterator )
void splice_after ( iterator , _Self &)
void swap ( _Self &)
void unique ()
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
typedef const value_type * const_pointer
typedef const 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 &)

void assign ( size_type __n,
const _Tp & __val
) [inline]

Parameters

size_type __n
const _Tp & __val

assign(const_pointer, const_pointer)

void assign ( const_pointer __first,
const_pointer __last
) [inline]

Parameters

const_pointer __first
const_pointer __last

assign(const_iterator, const_iterator)

void assign ( 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()

void clear ( ) [inline]

empty()

bool empty ( ) 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 &)

void insert ( 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 *)

void insert ( 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)

void insert ( 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 &)

void insert_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 *)

void insert_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)

void insert_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 &)

void merge ( _Self & __x ) [inline]

Parameters

_Self & __x

operator=(const _Self &)

_Self & operator= ( const _Self & __x )

Parameters

const _Self & __x

pop_front()

void pop_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 &)

void push_front ( const value_type & __x = _Tp() ) [inline]

Parameters

const value_type & __x = _Tp()

remove(const _Tp &)

void remove ( const _Tp & __val )

Parameters

const _Tp & __val

resize(size_type, const value_type &)

void resize ( size_type new_size,
const value_type & __x = _Tp()
)

Parameters

size_type new_size
const value_type & __x = _Tp()

reverse()

void reverse ( ) [inline]

size()

size_type size ( ) const [inline]

sort()

void sort ( ) [inline]

splice(iterator, _Self &)

void splice ( iterator __pos,
_Self & __x
) [inline]

Parameters

iterator __pos
_Self & __x

splice(iterator, _Self &, iterator)

void splice ( iterator __pos,
_Self & __x,
iterator __i
) [inline]

Parameters

iterator __pos
_Self & __x
iterator __i

splice(iterator, _Self &, iterator, iterator)

void splice ( iterator __pos,
_Self & __x,
iterator __first,
iterator __last
) [inline]

Parameters

iterator __pos
_Self & __x
iterator __first
iterator __last

splice_after(iterator, _Self &, iterator, iterator)

void splice_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)

void splice_after ( iterator __pos,
_Self & __x,
iterator __prev
) [inline]

Parameters

iterator __pos
_Self & __x
iterator __prev

splice_after(iterator, _Self &)

void splice_after ( iterator __pos,
_Self & __x
) [inline]

Parameters

iterator __pos
_Self & __x

swap(_Self &)

void swap ( _Self & __x ) [inline]

Parameters

_Self & __x

unique()

void unique ( ) [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 _Tp value_type