X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_set.tpp;h=ba29fd7091c3f13de7ddfb9be803e036c112a96c;hp=25c88ef739ce558ed7708e5e9d24f8acb4a3b192;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c diff --git a/src/stlplus/strings/print_set.tpp b/src/stlplus/strings/print_set.tpp index 25c88ef..ba29fd7 100644 --- a/src/stlplus/strings/print_set.tpp +++ b/src/stlplus/strings/print_set.tpp @@ -1,41 +1,41 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// template implementations - -//////////////////////////////////////////////////////////////////////////////// -#include "print_sequence.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // set - - template - void print_set(std::ostream& device, - const std::set& values, - S print_fn, - const std::string& separator) - { - print_sequence(device, values.begin(), values.end(), print_fn, separator); - } - - //////////////////////////////////////////////////////////////////////////////// - // multiset - - template - void print_multiset(std::ostream& device, - const std::multiset& values, - S print_fn, - const std::string& separator) - { - print_sequence(device, values.begin(), values.end(), print_fn, 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 + +// template implementations + +//////////////////////////////////////////////////////////////////////////////// +#include "print_sequence.hpp" + +namespace stlplus +{ + + //////////////////////////////////////////////////////////////////////////////// + // set + + template + void print_set(std::ostream& device, + const std::set& values, + S print_fn, + const std::string& separator) + { + print_sequence(device, values.begin(), values.end(), print_fn, separator); + } + + //////////////////////////////////////////////////////////////////////////////// + // multiset + + template + void print_multiset(std::ostream& device, + const std::multiset& values, + S print_fn, + const std::string& separator) + { + print_sequence(device, values.begin(), values.end(), print_fn, separator); + } + + //////////////////////////////////////////////////////////////////////////////// +} // end namespace stlplus