SeqAn3 3.4.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// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
12#include <sstream>
13
15
16namespace seqan3::detail
17{
18
25template <typename... value_type>
26std::string to_string(value_type &&... values)
27{
28 std::stringstream stream;
29 debug_stream_type dstream{stream};
30 (dstream << ... << std::forward<value_type>(values));
31 return stream.str();
32}
33
34} // namespace seqan3::detail
A "pretty printer" for most SeqAn data structures and related types.
Definition debug_stream_type.hpp:75
Provides seqan3::debug_stream and related types.
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
std::string to_string(value_type &&... values)
Streams all parameters via the seqan3::debug_stream and returns a concatenated string.
Definition to_string.hpp:26
T str(T... args)
Hide me