6#ifndef YODA_CACHEDVECTOR_H
7#define YODA_CACHEDVECTOR_H
18 class cachedvector :
public std::vector<T> {
21 cachedvector(
const std::vector<T>& vec) : std::vector<T>(vec) {}
26 for(
size_t i=0; i < this->size(); i++)
27 _cache.insert(std::make_pair(this->at(i).first, i));
31 std::map<double, size_t> _cache;
Anonymous namespace to limit visibility.