6#ifndef YODA_INDEXEDSET_H
7#define YODA_INDEXEDSET_H
24 class indexedset :
public std::set<T> {
31 const T& operator[](
size_t index)
const {
32 if (index >= this->size()) {
33 throw std::range_error(
"Requested index larger than indexed set size");
36 for (
typename indexedset<T>::const_iterator it = this->begin(); it != this->end(); ++it) {
38 if (i == index)
return *it;
Anonymous namespace to limit visibility.