Add traits under mgp iterator (#1210)
This commit is contained in:
parent
974a6e3027
commit
c0d4f5e0bc
@ -435,6 +435,12 @@ class Labels {
|
||||
friend class Labels;
|
||||
|
||||
public:
|
||||
using value_type = Labels;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using pointer = const Labels *;
|
||||
using reference = const Labels &;
|
||||
using iterator_category = std::forward_iterator_tag;
|
||||
|
||||
bool operator==(const Iterator &other) const;
|
||||
|
||||
bool operator!=(const Iterator &other) const;
|
||||
@ -518,6 +524,12 @@ class List {
|
||||
friend class List;
|
||||
|
||||
public:
|
||||
using value_type = List;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using pointer = const List *;
|
||||
using reference = const List &;
|
||||
using iterator_category = std::forward_iterator_tag;
|
||||
|
||||
bool operator==(const Iterator &other) const;
|
||||
|
||||
bool operator!=(const Iterator &other) const;
|
||||
|
Loading…
Reference in New Issue
Block a user