From f99dcdf422310400fe9f20f61697328e87485a34 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 19 Jan 2022 09:57:14 +0000 Subject: [PATCH] Insertion sort sides instead of hashmap --- book.hpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book.hpp b/book.hpp index 04de3a7..61a68d5 100644 --- a/book.hpp +++ b/book.hpp @@ -43,8 +43,8 @@ std::ostream& operator<<(std::ostream& out, const Level& a); struct Book { - std::unordered_map<std::string, Level> bidSide; - std::unordered_map<std::string, Level> askSide; + std::vector<Level> bidSide; + std::vector<Level> askSide; ProductTypeEnum productType; std::string product; int stationId; @@ -53,6 +53,7 @@ double aggFee; double pasFee; double broFee; + double bomPrice; Book(); Book(ProductTypeEnum productType, std::string product, int stationId, -- Gitblit v1.9.3