X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_vector.hpp;h=56d5aeb8d729630af0fa91687ebde6ddb7b2667b;hp=5916532c8319655889690f5c4599c6c33a3cc3d2;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36 diff --git a/src/stlplus/strings/print_vector.hpp b/src/stlplus/strings/print_vector.hpp index 5916532..56d5aeb 100644 --- a/src/stlplus/strings/print_vector.hpp +++ b/src/stlplus/strings/print_vector.hpp @@ -1,38 +1,38 @@ -#ifndef STLPLUS_PRINT_VECTOR -#define STLPLUS_PRINT_VECTOR -//////////////////////////////////////////////////////////////////////////////// - -// 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 vector - -//////////////////////////////////////////////////////////////////////////////// -#include "strings_fixes.hpp" -#include -#include -#include - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // vector - - template - void print_vector(std::ostream& device, - const std::vector& values, - S print_fn, - const std::string& separator); - - // specialisation for vector which has a different implementation - void print_bool_vector(std::ostream& device, const std::vector& values); - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus - -#include "print_vector.tpp" -#endif +#ifndef STLPLUS_PRINT_VECTOR +#define STLPLUS_PRINT_VECTOR +//////////////////////////////////////////////////////////////////////////////// + +// 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 vector + +//////////////////////////////////////////////////////////////////////////////// +#include "strings_fixes.hpp" +#include +#include +#include + +namespace stlplus +{ + + //////////////////////////////////////////////////////////////////////////////// + // vector + + template + void print_vector(std::ostream& device, + const std::vector& values, + S print_fn, + const std::string& separator); + + // specialisation for vector which has a different implementation + void print_bool_vector(std::ostream& device, const std::vector& values); + + //////////////////////////////////////////////////////////////////////////////// + +} // end namespace stlplus + +#include "print_vector.tpp" +#endif