#ifndef __LIST_HPP__
#define __LIST_HPP__

#include "scalar.hpp"
#include <vector>
#include <iostream>
using namespace std;

typedef vector<scalar*>::const_iterator const_list_iterator;

class list : public vector<scalar*>
{
public:
      ~list()
      {
	  const_list_iterator li;
	  for (li = begin(); li!=end(); li++)
	    delete *li;
      }
};

ostream& operator<<(ostream& ostr, const list& l);

#endif
