SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
to_string.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
4 // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5 // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6 // -----------------------------------------------------------------------------------------------------
7 
13 #pragma once
14 
16 
17 namespace seqan3::detail
18 {
19 
26 template <typename ...value_type>
27 std::string to_string(value_type && ...values)
28 {
29  std::stringstream stream;
30  debug_stream_type dstream{stream};
31  (dstream << ... << std::forward<value_type>(values));
32  return stream.str();
33 }
34 
35 } // namespace seqan3::detail
debug_stream.hpp
Provides seqan3::debug_stream and related types.
std::string
std::stringstream
std::to_string
T to_string(T... args)
std::stringstream::str
T str(T... args)