All pastes #1268517 Raw Edit

clueless

public text v1 · immutable
#1268517 ·published 2008-11-27 10:49 UTC
rendered paste body
#ifndef VEKTOR_HH#define VEKTOR_HH#include <map>namespace mpc{  template<typename T> class Vektor {  private:    typedef std::map<int,T> map_t;    typedef map_t::iterator iterator;    typedef map_t::const_iterator const_iterator;    map_t data;  public:    T& operator[](int index){      return data[index];    }    size_t size() const { return data.size(); }    inline iterator begin(){      return data.begin();    }    inline iterator end(){      return data.end();    }    inline const_iterator begin() const{      return data.begin();    }    inline const_iterator end() const{      return data.end();    }  };}#endif