X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=410c97683a3404eba2a8a5c7822bd593f87dddd4;hb=ef9b02c88f132a17f2292e84b4167c22e1b87f8d;hp=4087259d07feb1c70aff82e97557398995890785;hpb=e79c7f94a4c1a8c79e0c4090922b796532192b62;p=clitk.git diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 4087259..410c976 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -29,6 +29,8 @@ #include #include +#include + //-------------------------------------------------------------------- namespace clitk { @@ -40,6 +42,10 @@ namespace clitk { // display #define DD(a) std::cout << #a " = [ " << a << " ]" << std::endl; #define DDV(a,n) { std::cout << #a " = [ "; for(unsigned int _i_=0; _i_ +void _print_container(T const& a) + { for(typename T::const_iterator i=a.begin();i!=a.end();++i) { std::cout << *i << " "; };} +#define DDS(a) { std::cout << #a " = [ "; _print_container(a) ; std::cout << " ]" << std::endl;} //-------------------------------------------------------------------- // when everything goes wrong