X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fremember.cpp;h=18f484a7a39e57c7cb89badbdbde3635916d4cad;hb=63f3e977f92d51ea173382a9b7c4c3b18bda7b8e;hp=ee62fa0f691777988448dfd7b873c068d88fe9d1;hpb=e100f94d92d574ea89a817eca8c58c5eb3418821;p=ginac.git diff --git a/ginac/remember.cpp b/ginac/remember.cpp index ee62fa0f..18f484a7 100644 --- a/ginac/remember.cpp +++ b/ginac/remember.cpp @@ -4,7 +4,7 @@ * in GiNaC functions */ /* - * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2018 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -81,8 +81,8 @@ void remember_table_list::add_entry(function const & f, ex const & result) } case remember_strategies::delete_lru: { // delete least recently used entry - iterator it = begin(); - iterator lowest_access_it = it; + auto it = begin(); + auto lowest_access_it = it; unsigned long lowest_access = (*it).get_last_access(); ++it; while (it!=end()) { @@ -97,8 +97,8 @@ void remember_table_list::add_entry(function const & f, ex const & result) } case remember_strategies::delete_lfu: { // delete least frequently used entry - iterator it = begin(); - iterator lowest_hits_it = it; + auto it = begin(); + auto lowest_hits_it = it; unsigned lowest_hits = (*it).get_successful_hits(); ++it; while (it!=end()) { @@ -121,7 +121,7 @@ void remember_table_list::add_entry(function const & f, ex const & result) bool remember_table_list::lookup_entry(function const & f, ex & result) const { - const_iterator i = begin(), iend = end(); + auto i = begin(), iend = end(); while (i != iend) { if (i->is_equal(f)) { result = i->get_result();