// STLprint.h #ifndef STLprint_H #define STLprint_H // Free functions to print STL containers. #include //********************************************************************** // Print a list of values. template void print_list(char* name, const T& mylist); template void print_list(char* name, const T& mylist, std::ostream& stream); //********************************************************************** // Print a list of dereferenced values. // I.e. print of list of pointers by value. template void print_ptr_list(char* name, const T& mylist); template void print_ptr_list(char* name, const T& mylist, std::ostream& stream); //********************************************************************** // Print a map of values. template void print_map(char* name, const T& mylist); template void print_map(char* name, const T& mylist, std::ostream& stream); //********************************************************************** // Print a map of pointers by value template void print_ptr_map(char* name, const T& mylist); template void print_ptr_map(char* name, const T& mylist, std::ostream& stream); //********************************************************************** // Print a map of lists of values. template void print_list_map(char* name, const T& mylist); template void print_list_map(char* name, const T& mylist, std::ostream& stream); //********************************************************************** // Print a map of lists of pointers. template void print_ptr_list_map(char* name, const T& mylist); template void print_ptr_list_map(char* name, const T& mylist, std::ostream& stream); //********************************************************************** #ifndef __xlC__ #include "STLprint.c" #endif #endif