#include <iostream>
#include <list>
using namespace std;

int main(void)
{
   list <double> zahlenwerte;

   for(int i=0; i<5; ++i)
   {
      zahlenwerte.push_front(10*i);
   }
   cout << "zahlenwerte hat jetzt "
        << zahlenwerte.size()
        << " Elemente." << endl;
   cout << "Vorderstes Element: " << zahlenwerte.front() << endl;
   cout << "Hinterstes Element: " << zahlenwerte.back() << endl;
   
   cout << "Loesche alle Elemente von zahlenwerte." << endl;
   zahlenwerte.clear();
   cout << "zahlenwerte hat jetzt "
        << zahlenwerte.size()
        << " Elemente." << endl;
   return 0;
}
