SeqAn3 3.3.0-rc.1
The Modern C++ library for sequence analysis.
 
Loading...
Searching...
No Matches
to_string.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, 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
15#include <sstream>
16
18
19namespace seqan3::detail
20{
21
28template <typename... value_type>
29std::string to_string(value_type &&... values)
30{
31 std::stringstream stream;
32 debug_stream_type dstream{stream};
33 (dstream << ... << std::forward<value_type>(values));
34 return stream.str();
35}
36
37} // namespace seqan3::detail
A "pretty printer" for most SeqAn data structures and related types.
Definition: debug_stream_type.hpp:78
Provides seqan3::debug_stream and related types.
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
std::string to_string(value_type &&... values)
Streams all parameters via the seqan3::debug_stream and returns a concatenated string.
Definition: to_string.hpp:29
T str(T... args)