#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