20 lines
313 B
C
20 lines
313 B
C
|
#ifndef __ODS_LIST__
|
||
|
#define __ODS_LIST__
|
||
|
|
||
|
|
||
|
#include <cstddef>
|
||
|
|
||
|
|
||
|
// Lists are sequences of values.
|
||
|
template <typename T>
|
||
|
class List {
|
||
|
public:
|
||
|
virtual std::size_t size(void);
|
||
|
virtual T get(std::size_t);
|
||
|
virtual T set(std::size_t, T);
|
||
|
virtual void add(std:size_t, T);
|
||
|
virtual T remove(std::size_t);
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|