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
14
#include <
seqan3/core/debug_stream/debug_stream_type.hpp
>
15
16
namespace
seqan3::detail
17
{
18
25
template
<
typename
... value_type>
26
std::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
std::string
std::stringstream
seqan3::debug_stream_type
A "pretty printer" for most SeqAn data structures and related types.
Definition
debug_stream_type.hpp:75
debug_stream_type.hpp
Provides seqan3::debug_stream and related types.
seqan3::detail
The internal SeqAn3 namespace.
Definition
aligned_sequence_concept.hpp:26
seqan3::detail::to_string
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
sstream
std::stringstream::str
T str(T... args)
Hide me
Version:
seqan3
core
debug_stream
detail
to_string.hpp
Generated on Wed May 29 2024 09:12:52 for SeqAn3 by
1.9.8