diff options
author | user <user@localhost.localdomain> | 2019-12-23 11:08:26 -0800 |
---|---|---|
committer | user <user@localhost.localdomain> | 2019-12-23 11:08:26 -0800 |
commit | 217d6142e92a21f592ffacadb6598fb41005d577 (patch) | |
tree | 72f22ba843256c7f46074bb65175f3cee6c0d4ff /starts/meaning-vm/level-0 | |
parent | e720dfea4d7b07cbeb5312dbfd6940fd7fa29633 (diff) | |
download | standingwithresilience-217d6142e92a21f592ffacadb6598fb41005d577.tar.gz standingwithresilience-217d6142e92a21f592ffacadb6598fb41005d577.zip |
wip link iteration habits
Diffstat (limited to 'starts/meaning-vm/level-0')
-rw-r--r-- | starts/meaning-vm/level-0/baseref.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/starts/meaning-vm/level-0/baseref.hpp b/starts/meaning-vm/level-0/baseref.hpp index 69880c8..d20b22a 100644 --- a/starts/meaning-vm/level-0/baseref.hpp +++ b/starts/meaning-vm/level-0/baseref.hpp @@ -108,18 +108,18 @@ private: struct array { - mutated_it<ref,typename concept::array::iterator> begin() { return array.begin(); } - mutated_it<ref,typename concept::array::iterator> end() { return array.end(); } + using iterator = mutated_it<ref,typename concept::array::iterator>; + iterator begin() { return array.begin(); } + iterator end() { return array.end(); } typename concept::array array; }; struct links_t { - mutated_it<std::pair<ref,ref>,typename decltype(concept::links)::iterator> begin() - { return links.begin(); } - mutated_it<std::pair<ref,ref>,typename decltype(concept::links)::iterator> end() - { return links.end(); } + using iterator = mutated_it<std::pair<ref,ref>,typename decltype(concept::links)::iterator>; + iterator begin() { return links.begin(); } + iterator end() { return links.end(); } decltype(concept::links) & links; }; |