#ifndef __AMVUTILS1_AMV #define __AMVUTILS1_AMV #include using namespace std; namespace amv { template void print(const type &t) { cout< inline bool less_ptr(const type *p1, const type *p2) { return (*p1<*p2); } template inline bool less_ptr_ptr(const type **p1, const type **p2) { return (**p1<**p2); } inline bool less_str(const char *s1, const char *s2) { return (strcmp(s1,s2)<0); } inline bool less_str_ptr(const char **s1, const char **s2) { return (strcmp(*s1,*s2)<0); } inline bool eq_str(const char *s1, const char *s2) { return (strcmp(s1,s2)==0); } inline bool eq_str_ptr(const char **s1, const char **s2) { return (strcmp(*s1,*s2)==0); } } #endif