#ifndef TRANSLATOR_H
#define TRANSLATOR_H
+#include <boost/assert.hpp>
+
#include <vector>
#include <utility>
#include <algorithm>
void addPair(T1 const & first, T2 const & second) {
map.push_back(MapPair(first, second));
}
+ // Add the contents of \c other
+ void add(Translator const & other) {
+ if (other.map.empty())
+ return;
+ map.insert(map.end(), other.map.begin(), other.map.end());
+ }
/// Find the mapping for the first argument
T2 const & find(T1 const & first) const {