diff options
author | Jakob Wenzel <wenzel@rs.tu-darmstadt.de> | 2019-07-25 09:51:09 +0200 |
---|---|---|
committer | Jakob Wenzel <wenzel@rs.tu-darmstadt.de> | 2019-07-25 09:51:09 +0200 |
commit | 70882a807074a521515d1525d83ed7321f982d7e (patch) | |
tree | 67a536edfa5a9ceebbfb5953aa94fb0fd2b26b1d /kernel | |
parent | 25685a9a5b20c7c03b02d67f0a029702f0019e9d (diff) | |
download | yosys-70882a807074a521515d1525d83ed7321f982d7e.tar.gz yosys-70882a807074a521515d1525d83ed7321f982d7e.tar.bz2 yosys-70882a807074a521515d1525d83ed7321f982d7e.zip |
replaced std::iterator with using statements
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 10225cff2..712250b3e 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -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. template<typename T> - struct ObjIterator : public std::iterator<std::forward_iterator_tag, - T, - ptrdiff_t, - T *, - T &> - { + struct ObjIterator { + using iterator_category = std::forward_iterator_tag; + using value_type = T; + using difference_type = ptrdiff_t; + using pointer = T*; + using reference = T&; typename dict<RTLIL::IdString, T>::iterator it; dict<RTLIL::IdString, T> *list_p; int *refcount_p; |