mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
replaced std::iterator with using statements
This commit is contained in:
parent
25685a9a5b
commit
70882a8070
|
@ -420,12 +420,12 @@ namespace RTLIL
|
||||||
// It maintains a reference counter that is used to make sure that the container is not modified while being iterated over.
|
// It maintains a reference counter that is used to make sure that the container is not modified while being iterated over.
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct ObjIterator : public std::iterator<std::forward_iterator_tag,
|
struct ObjIterator {
|
||||||
T,
|
using iterator_category = std::forward_iterator_tag;
|
||||||
ptrdiff_t,
|
using value_type = T;
|
||||||
T *,
|
using difference_type = ptrdiff_t;
|
||||||
T &>
|
using pointer = T*;
|
||||||
{
|
using reference = T&;
|
||||||
typename dict<RTLIL::IdString, T>::iterator it;
|
typename dict<RTLIL::IdString, T>::iterator it;
|
||||||
dict<RTLIL::IdString, T> *list_p;
|
dict<RTLIL::IdString, T> *list_p;
|
||||||
int *refcount_p;
|
int *refcount_p;
|
||||||
|
|
Loading…
Reference in a new issue