BAN: add value_type to iterators

This commit is contained in:
Bananymous 2023-12-07 10:15:18 +02:00
parent 536bb74d53
commit e935a33a4d
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,9 @@ namespace BAN
template<typename T, typename Container, bool CONST>
class IteratorSimpleGeneral
{
public:
using value_type = T;
public:
IteratorSimpleGeneral() = default;
template<bool CONST2, typename = enable_if_t<CONST2 == CONST || CONST>>
@ -102,6 +105,8 @@ namespace BAN
using InnerIterator = either_or_t<CONST, typename Inner::const_iterator, typename Inner::iterator>;
using OuterIterator = either_or_t<CONST, typename Outer::const_iterator, typename Outer::iterator>;
using value_type = T;
public:
IteratorDoubleGeneral() = default;
template<bool CONST2, typename = enable_if_t<CONST2 == CONST || CONST>>