]> Creatis software - clitk.git/blobdiff - common/clitkCommon.h
Add MapToVec (first/second) functions.
[clitk.git] / common / clitkCommon.h
index 31f28dc40637bd95e91dfec7974f23183edd43ac..97808d8d870ba778887a8ba98542cd3ea7ddf8b5 100644 (file)
@@ -209,6 +209,13 @@ namespace clitk {
   //--------------------------------------------------------------------
   void PrintMemoryUsed();
 
+  //--------------------------------------------------------------------
+  // Convert a map to a vector
+  template <typename M, typename V> 
+  void MapToVecFirst(const M & m, V & v);
+  template <typename M, typename V> 
+  void MapToVecSecond(const M & m, V & v);
+
 #include "clitkCommon.txx"
 
 } // end namespace