Commit c284e3d9 authored by knowledge4igor's avatar knowledge4igor

By performance reason it would be better to use prefix ++

parent d3a31d9f
......@@ -41,7 +41,7 @@ struct Cookie {
class CookieJar {
public:
typedef std::unordered_map<std::string, Cookie> Storage;
using Storage = std::unordered_map<std::string, Cookie>;
struct iterator : std::iterator<std::bidirectional_iterator_tag, Cookie> {
iterator(const Storage::const_iterator& _iterator)
......@@ -59,7 +59,7 @@ public:
iterator operator++(int) {
iterator ret(it_);
it_++;
++it_;
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment