diff options
author | Sam Clegg <sbc@chromium.org> | 2022-11-15 10:02:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 18:02:27 +0000 |
commit | 59cbdd818dc3397a823a37e9821fd32f4522b2fc (patch) | |
tree | 58470bfc11591d2e70f1b79645061c1a23beb75d /src/support/insert_ordered.h | |
parent | 236f12f7df64f10e1238bf2d66b1216f700b15df (diff) | |
download | binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.tar.gz binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.tar.bz2 binaryen-59cbdd818dc3397a823a37e9821fd32f4522b2fc.zip |
Switch from `typedef` to `using` in C++ code. NFC (#5258)
This is more modern and (IMHO) easier to read than that old C typedef
syntax.
Diffstat (limited to 'src/support/insert_ordered.h')
-rw-r--r-- | src/support/insert_ordered.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/insert_ordered.h b/src/support/insert_ordered.h index 6b0f54968..1460c4329 100644 --- a/src/support/insert_ordered.h +++ b/src/support/insert_ordered.h @@ -32,7 +32,7 @@ template<typename T> struct InsertOrderedSet { std::unordered_map<T, typename std::list<T>::iterator> Map; std::list<T> List; - typedef typename std::list<T>::iterator iterator; + using iterator = typename std::list<T>::iterator; iterator begin() { return List.begin(); } iterator end() { return List.end(); } @@ -87,7 +87,7 @@ template<typename Key, typename T> struct InsertOrderedMap { Map; std::list<std::pair<const Key, T>> List; - typedef typename std::list<std::pair<const Key, T>>::iterator iterator; + using iterator = typename std::list<std::pair<const Key, T>>::iterator; iterator begin() { return List.begin(); } iterator end() { return List.end(); } |