]> git.lyx.org Git - lyx.git/blobdiff - src/support/translator.h
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / translator.h
index 16c54e3c86112b6c069e31bd260c4cc054b156ca..4d4020dafa8c4a1977d1ec9ee6d275fcfafda374 100644 (file)
@@ -48,6 +48,12 @@ public:
        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 {