MathTL
|
00001 // -*- c++ -*- 00002 00003 // +--------------------------------------------------------------------+ 00004 // | This file is part of MathTL - the Mathematical Template Library | 00005 // | | 00006 // | Copyright (c) 2002-2009 | 00007 // | Thorsten Raasch, Manuel Werner | 00008 // +--------------------------------------------------------------------+ 00009 00010 #ifndef _MATHTL_MAP_TOOLS_H 00011 #define _MATHTL_MAP_TOOLS_H 00012 00013 #include <cassert> 00014 #include <map> 00015 00016 namespace MathTL 00017 { 00021 template <class K, class C> 00022 void 00023 add_maps(const std::map<K,C>& m1, const std::map<K,C>& m2, 00024 std::map<K,C>& result, 00025 const double factor1 = 1.0, const double factor2 = 1.0); 00026 00030 template <class K, class C> 00031 std::ostream& operator << (std::ostream& os, const std::map<K,C>& m); 00032 00033 } 00034 00035 #include <utils/map_tools.cpp> 00036 00037 #endif