X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_map.tpp;h=f499e8fd69a87709f8d8ac84adc306d83c071c6f;hp=b3a727aba3bf3cdea0465ccbf76a9ab9e53248f2;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36 diff --git a/src/stlplus/strings/print_map.tpp b/src/stlplus/strings/print_map.tpp index b3a727a..f499e8f 100644 --- a/src/stlplus/strings/print_map.tpp +++ b/src/stlplus/strings/print_map.tpp @@ -1,46 +1,46 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -//////////////////////////////////////////////////////////////////////////////// -#include "print_sequence.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // map - - 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) - { - print_pair_sequence(values.begin(), values.end(), - key_print_fn, value_print_fn, - pair_separator, separator); - } - - //////////////////////////////////////////////////////////////////////////////// - // multimap - - 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) - { - print_pair_sequence(device, - values.begin(), values.end(), - key_print_fn, value_print_fn, - pair_separator, separator); - } - - //////////////////////////////////////////////////////////////////////////////// -} // end namespace stlplus +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +//////////////////////////////////////////////////////////////////////////////// +#include "print_sequence.hpp" + +namespace stlplus +{ + + //////////////////////////////////////////////////////////////////////////////// + // map + + 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) + { + print_pair_sequence(values.begin(), values.end(), + key_print_fn, value_print_fn, + pair_separator, separator); + } + + //////////////////////////////////////////////////////////////////////////////// + // multimap + + 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) + { + print_pair_sequence(device, + values.begin(), values.end(), + key_print_fn, value_print_fn, + pair_separator, separator); + } + + //////////////////////////////////////////////////////////////////////////////// +} // end namespace stlplus