X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_sequence.tpp;fp=src%2Fstlplus%2Fstrings%2Fprint_sequence.tpp;h=0000000000000000000000000000000000000000;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hp=8600ca834c99404cb3a4c176e877059a60a561b3;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2;p=chaz%2Fyoink diff --git a/src/stlplus/strings/print_sequence.tpp b/src/stlplus/strings/print_sequence.tpp deleted file mode 100644 index 8600ca8..0000000 --- a/src/stlplus/strings/print_sequence.tpp +++ /dev/null @@ -1,50 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -//////////////////////////////////////////////////////////////////////////////// -#include "print_pair.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // any forward iterator sequence - - template - void print_sequence(std::ostream& device, - I begin, I end, - S print_fn, - const std::string& separator) - { - for (I i = begin; i != end; i++) - { - if (i != begin) device << separator; - print_fn(device, *i); - } - } - - //////////////////////////////////////////////////////////////////////////////// - // any sequence where the value is a pair - - template - void print_pair_sequence(std::ostream& device, - I begin, I end, - S1 print_fn1, - S2 print_fn2, - const std::string& pair_separator, - const std::string& separator) - { - for (I i = begin; i != end; i++) - { - if (i != begin) device << separator; - print_pair(device, *i, print_fn1, print_fn2, pair_separator); - } - } - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus