Proxy
operator[](off_type index)
{
- assert (index >= 0 && index < size());
+ assert (index < size());
return Proxy(this->self(), index);
}
};
ScalarProxy<Stat>
operator[](off_type index)
{
- assert (index >= 0 && index < size());
+ assert (index < size());
return ScalarProxy<Stat>(stat, offset + index);
}
operator[](off_type index)
{
off_type offset = index * y;
- assert (index >= 0 && offset + y <= size());
+ assert (offset + y <= size());
return Proxy(this->self(), offset, y);
}
Proxy operator[](off_type index)
{
- assert(index >= 0 && index < size());
+ assert(index < size());
return Proxy(this->self(), index);
}