23 #if ! defined (octave_base_list_h) 24 #define octave_base_list_h 1 26 #include "octave-config.h" 34 template <
typename elt_type>
40 typedef typename std::list<elt_type>::iterator
iterator;
44 typedef typename std::list<elt_type>::const_reverse_iterator
47 bool empty (
void)
const {
return lst.empty (); }
49 size_t size (
void)
const {
return lst.size (); }
50 size_t length (
void)
const {
return size (); }
81 void clear (
void) { lst.clear (); }
97 elt_type&
front (
void) {
return lst.front (); }
98 elt_type&
back (
void) {
return lst.back (); }
100 const elt_type&
front (
void)
const {
return lst.front (); }
101 const elt_type&
back (
void)
const {
return lst.back (); }
110 void append (
const elt_type&
s) { lst.push_back (
s); }
std::list< elt_type > lst
void push_back(const elt_type &s)
void push_front(const elt_type &s)
size_t length(void) const
std::list< elt_type >::iterator iterator
iterator erase(iterator pos)
std::list< elt_type >::reverse_iterator reverse_iterator
reverse_iterator rbegin(void)
base_list(const std::list< elt_type > &l)
const_reverse_iterator rbegin(void) const
const elt_type & back(void) const
const_iterator end(void) const
std::list< elt_type >::const_reverse_iterator const_reverse_iterator
std::list< elt_type >::const_iterator const_iterator
base_list(const base_list &bl)
void append(const elt_type &s)
const_iterator begin(void) const
reverse_iterator rend(void)
const elt_type & front(void) const
const_reverse_iterator rend(void) const