public:
explicit Index(T o) : _index{o} {}
explicit Index(int32_t o) : _index{static_cast<T>(o)} {} // For legacy code compatibility
- Index(const Index<T, DummyTag> &o) : _index{o._index} {}
+ Index(const Index &o) : _index{o._index} {}
- Index<T, DummyTag> &operator=(T o)
+ Index &operator=(T o)
{
_index = o;
return *this;
}
- Index<T, DummyTag> &operator=(const T &o)
+ Index &operator=(const T &o)
{
_index = o._index;
return *this;
}
bool operator==(T o) const { return _index == o; }
- bool operator==(const Index<T, DummyTag> &o) const { return _index == o._index; }
+ bool operator==(const Index &o) const { return _index == o._index; }
bool operator!=(T o) const { return !(*this == o); }
- bool operator!=(const Index<T, DummyTag> &o) const { return !(*this == o); }
+ bool operator!=(const Index &o) const { return !(*this == o); }
T value() const { return _index; }
int32_t asInt() const { return static_cast<int32_t>(_index); } // For legacy code compatibility