On Fri, Nov 12, 2010 at 3:51 PM, John Dlugosz <JDlugosz@tradestation.com> wrote:

I’m wondering if there is a simple “bi-map” class that can take a list of pairs and produce the effect of both functions.

http://www.boost.org/doc/libs/1_39_0/libs/bimap/doc/html/index.html

sorry for the link to the older Boost version; of course it's also in all versions since...