Implement erase(), get erase_tests passing

This commit is contained in:
Christian Mazakas committed 2022-10-04 11:48:09 -07:00
1 parent 9280e13697
commit 4cdfb2537a
3 files changed
+21

No files matched your search

+5
View File
@@ -590,6 +590,8 @@ private:
template<typename,typename,typename,typename>
class table;
class const_iterator_cast_tag {};
template<typename Value,typename Group,bool Const>
class table_iterator
{
@@ -604,6 +606,9 @@ public:
template<bool Const2,typename std::enable_if<!Const2>::type* =nullptr>
table_iterator(const table_iterator<Value,Group,Const2>& x):
pc{x.pc},p{x.p}{}
table_iterator(
const_iterator_cast_tag, const table_iterator<Value,Group,true>& x):
pc{x.pc},p{x.p}{}
inline reference operator*()const noexcept{return *p;}
inline pointer operator->()const noexcept{return p;}