diff options
author | lloyd <[email protected]> | 2009-11-16 17:07:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-16 17:07:38 +0000 |
commit | 22a47e97f459337ff8c2b9fdcf68cb1514b19b34 (patch) | |
tree | 3eacf8d877eb0f3c6bc19f0b1995bedea224591c /src/utils/datastor | |
parent | fc5fadb281c509855a0ae20ecc70bfe9d681a1af (diff) |
Use auto for long iterator names, etc.
It will be nice to convert to the range-based for loop once that's available.
Diffstat (limited to 'src/utils/datastor')
-rw-r--r-- | src/utils/datastor/datastor.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/datastor/datastor.cpp b/src/utils/datastor/datastor.cpp index 129dad9bf..9f8ba2c24 100644 --- a/src/utils/datastor/datastor.cpp +++ b/src/utils/datastor/datastor.cpp @@ -65,12 +65,9 @@ Data_Store::search_with(const Matcher& matcher) const */ std::vector<std::string> Data_Store::get(const std::string& looking_for) const { - typedef std::multimap<std::string, std::string>::const_iterator iter; - - std::pair<iter, iter> range = contents.equal_range(looking_for); - std::vector<std::string> out; - for(iter i = range.first; i != range.second; ++i) + auto range = contents.equal_range(looking_for); + for(auto i = range.first; i != range.second; ++i) out.push_back(i->second); return out; } |