Computer Science Notes

Notes From CS Undergrad Courses FSU

This project is maintained by awa03

O(N) Time Complexity

O(1)

Read Only

// Read Only
bool operator== (const iterator & rhs) const;

bool operator!= (const iterator & rhs) const;

Object & operator* ( ) const; 
// return a reference to the current value

Write Only

// Write only
iterator & operator++ ( ); // prefix

iterator operator++ ( int ); // postfix

iterator& operator-- ( ); // prefix

iterator operator-- ( int ); // postfix

List Implementation

Constructors and big-five

// Constructors
List();

List(const List &rhs);

List(List &&rhs);  

List & operator=(const List &rhs);

List & operator=(List && rhs);

~List();

// Read-only accessor functions
int size() const;
bool empty() const;