Commit 8b4a7059 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

sampler.hh: Implement access to items

parent 5d891f86
......@@ -96,6 +96,26 @@ public:
size_t size() const { return _items.size(); }
bool empty() const { return _items.empty(); }
const Value& operator[](size_t i) const
{
return _items[i];
}
const auto& items() const
{
return _items;
}
const auto begin() const
{
return _items.begin();
}
const auto end() const
{
return _items.end();
}
private:
typedef typename mpl::if_<KeepReference,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment