From 353657fa069326a4036f2c9872e420c85f44b4e9 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joel.grunbaum@imc.com>
Date: Wed, 12 Jan 2022 02:25:20 +0000
Subject: [PATCH] Added optimisation and test exchange selection in Makefile

---
 book.hpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/book.hpp b/book.hpp
index ae89819..04de3a7 100644
--- a/book.hpp
+++ b/book.hpp
@@ -6,6 +6,7 @@
 #include <iostream>
 #include <queue>
 #include <string>
+#include <unordered_map>
 #include <vector>
 
 namespace book
@@ -42,8 +43,8 @@
 std::ostream& operator<<(std::ostream& out, const Level& a);
 
 struct Book {
-	std::vector<Level> bidSide;
-	std::vector<Level> askSide;
+	std::unordered_map<std::string, Level> bidSide;
+	std::unordered_map<std::string, Level> askSide;
 	ProductTypeEnum productType;
 	std::string product;
 	int stationId;

--
Gitblit v1.9.3