X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_map.hpp;h=83c0048f34bc08f4d9ab398896cf6a0797838155;hp=69350379ef0c9441e7d017a7522fa6bffc60fc9e;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36 diff --git a/src/stlplus/strings/print_map.hpp b/src/stlplus/strings/print_map.hpp index 6935037..83c0048 100644 --- a/src/stlplus/strings/print_map.hpp +++ b/src/stlplus/strings/print_map.hpp @@ -1,38 +1,38 @@ -#ifndef STLPLUS_PRINT_MAP -#define STLPLUS_PRINT_MAP -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// Generate a string representation of a map/multimap - -//////////////////////////////////////////////////////////////////////////////// -#include "strings_fixes.hpp" -#include -#include -#include - -namespace stlplus -{ - - template - void print_map(std::ostream& device, const std::map& values, - SK key_print_fn, - ST value_print_fn, - const std::string& pair_separator = ":", - const std::string& separator = ","); - - template - void print_multimap(std::ostream& device, const std::multimap& values, - SK key_print_fn, - ST value_print_fn, - const std::string& pair_separator = ":", - const std::string& separator = ","); - -} // end namespace stlplus - -#include "print_map.tpp" -#endif +#ifndef STLPLUS_PRINT_MAP +#define STLPLUS_PRINT_MAP +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// Generate a string representation of a map/multimap + +//////////////////////////////////////////////////////////////////////////////// +#include "strings_fixes.hpp" +#include +#include +#include + +namespace stlplus +{ + + template + void print_map(std::ostream& device, const std::map& values, + SK key_print_fn, + ST value_print_fn, + const std::string& pair_separator = ":", + const std::string& separator = ","); + + template + void print_multimap(std::ostream& device, const std::multimap& values, + SK key_print_fn, + ST value_print_fn, + const std::string& pair_separator = ":", + const std::string& separator = ","); + +} // end namespace stlplus + +#include "print_map.tpp" +#endif