]> www.ginac.de Git - ginac.git/blobdiff - check/time_hashmap.cpp
Finalize 1.7.6 release.
[ginac.git] / check / time_hashmap.cpp
index 7ff288c96de38404067f4897d0643ca5855f7d59..7657a477266a1a113c935ee4854bce5336c74151 100644 (file)
@@ -3,7 +3,7 @@
  *  Timings for exhashmap<> operations. */
 
 /*
- *  GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 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
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <iostream>
-#include <vector>
 #include "ginac.h"
 #include "timer.h"
-using namespace std;
 using namespace GiNaC;
 
+#include <iostream>
+#include <vector>
+using namespace std;
+
 template <class T>
 static void run_timing(unsigned size, double &time_insert, double &time_find, double &time_erase)
 {
@@ -81,10 +82,10 @@ unsigned time_hashmap()
        for (vector<unsigned>::const_iterator i = sizes.begin(); i != sizes.end(); ++i) {
                double time_insert, time_find, time_erase;
 
-               run_timing< exhashmap<ex> >(*i, time_insert, time_find, time_erase);
+               run_timing<exhashmap<ex>>(*i, time_insert, time_find, time_erase);
 
 // If you like, you can compare it with this:
-//             run_timing< std::map<ex, ex, ex_is_less> >(*i, time_insert, time_find, time_erase);
+//             run_timing<std::map<ex, ex, ex_is_less>>(*i, time_insert, time_find, time_erase);
 
                times_insert.push_back(time_insert);
                times_find.push_back(time_find);