Removed IndexedSet::Impl::end

This commit is contained in:
tclinken 2020-05-16 14:29:38 -07:00
parent 52cb766b17
commit dc11fb6b01
1 changed files with 2 additions and 11 deletions

View File

@ -131,8 +131,6 @@ private: // Forward-declare IndexedSet::Node because Clang is much stricter abou
static IteratorT begin(SetT&);
static IteratorT end(SetT&);
template <bool constIterator>
static IteratorImpl<isConst || constIterator> previous(SetT&, IteratorImpl<constIterator>);
@ -168,8 +166,8 @@ public:
const_iterator begin() const { return ConstImpl::begin(*this); };
iterator begin() { return NonConstImpl::begin(*this); };
const_iterator end() const { return ConstImpl::end(*this); }
iterator end() { return NonConstImpl::end(*this); }
const_iterator end() const { return const_iterator{}; }
iterator end() { return iterator{}; }
const_iterator previous(const_iterator i) const { return ConstImpl::previous(*this, i); }
iterator previous(iterator i) { return NonConstImpl::previous(*this, i); }
@ -748,13 +746,6 @@ typename IndexedSet<T, Metric>::template Impl<isConst>::IteratorT IndexedSet<T,
return IteratorT{ x };
}
template <class T, class Metric>
template <bool isConst>
typename IndexedSet<T, Metric>::template Impl<isConst>::IteratorT IndexedSet<T, Metric>::Impl<isConst>::end(
IndexedSet<T, Metric>::Impl<isConst>::SetT& self) {
return IteratorT{};
}
template <class T, class Metric>
template <bool isConst>
template <bool constIterator>