From ea76b6988ccafaa6a4d4ed90f2489d0e49e1f180 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 5 Sep 2015 09:32:30 -0400 Subject: Imported Upstream version 0.40.24 --- g_src/bimap.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 g_src/bimap.h (limited to 'g_src/bimap.h') diff --git a/g_src/bimap.h b/g_src/bimap.h new file mode 100755 index 0000000..968f770 --- /dev/null +++ b/g_src/bimap.h @@ -0,0 +1,17 @@ +#ifndef BIMAP_H +#define BIMAP_H + +#include + +template +struct bimap { + std::map left; + std::map right; + + void insert(A a, B b) { + left.insert(std::pair(a,b)); + right.insert(std::pair(b,a)); + } +}; + +#endif -- cgit v1.2.3