diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-03 10:26:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-03 10:26:15 -0700 |
commit | d91de4b8baf849b08d6248f16c22ea6f9cd26c49 (patch) | |
tree | 367ac7dfcf58dc8c9811242b69360cc88d5570c1 /cpp | |
parent | af329482ed8d65693462182df4917a53316d8890 (diff) | |
download | mu-d91de4b8baf849b08d6248f16c22ea6f9cd26c49.tar.gz |
1004
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/010vm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/010vm b/cpp/010vm index 5c8e120c..39159e40 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -211,7 +211,11 @@ string slurp_until(istream& in, char delim) { } void dump_memory() { - for (unordered_map<int, int>::iterator p = Memory.begin(); p != Memory.end(); ++p) { + map<int, int> ordered(Memory.begin(), Memory.end()); + for (map<int, int>::iterator p = ordered.begin(); p != ordered.end(); ++p) { cout << p->first << ": " << p->second << '\n'; } } +:(before "End Includes") +#include <map> +using std::map; |