bsl::slist::previous

previous overloads

Synopses

Declared in <bslstp_slist.h>

Return an iterator to the element preceding __pos.

iterator
previous(const_iterator __pos);
» more...

Return a const iterator to the element preceding __pos.

const_iterator
previous(const_iterator __pos) const;
» more...

Return Value

  • iterator to the predecessor of __pos
  • const iterator to the predecessor of __pos

Parameters

NameDescription
__posposition whose predecessor is sought