X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fstring_vector.hpp;h=204eea90d7e4e7980da996f7c7c2e30901fd5da4;hp=6842a98bcbe0d0df2484125a203946cfb9a5a444;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36 diff --git a/src/stlplus/strings/string_vector.hpp b/src/stlplus/strings/string_vector.hpp index 6842a98..204eea9 100644 --- a/src/stlplus/strings/string_vector.hpp +++ b/src/stlplus/strings/string_vector.hpp @@ -1,36 +1,36 @@ -#ifndef STLPLUS_STRING_VECTOR -#define STLPLUS_STRING_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 - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // vector - - template - std::string vector_to_string(const std::vector& values, - S to_string_fn, - const std::string& separator = ","); - - // specialisation for vector which has a different implementation - std::string bool_vector_to_string(const std::vector& values); - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus - -#include "string_vector.tpp" -#endif +#ifndef STLPLUS_STRING_VECTOR +#define STLPLUS_STRING_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 + +namespace stlplus +{ + + //////////////////////////////////////////////////////////////////////////////// + // vector + + template + std::string vector_to_string(const std::vector& values, + S to_string_fn, + const std::string& separator = ","); + + // specialisation for vector which has a different implementation + std::string bool_vector_to_string(const std::vector& values); + + //////////////////////////////////////////////////////////////////////////////// + +} // end namespace stlplus + +#include "string_vector.tpp" +#endif