SeqAn3
3.1.0
The Modern C++ library for sequence analysis.
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
to_string.hpp
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------------------------------
2
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3
// Copyright (c) 2016-2021, 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
17
#include <
seqan3/core/debug_stream/debug_stream_type.hpp
>
18
19
namespace
seqan3::detail
20
{
21
28
template
<
typename
...value_type>
29
std::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
std::string
std::stringstream
debug_stream_type.hpp
Provides seqan3::debug_stream and related types.
sstream
std::stringstream::str
T str(T... args)
std::to_string
T to_string(T... args)
seqan3
core
debug_stream
detail
to_string.hpp
Generated on Thu Nov 11 2021 09:23:13 for SeqAn3 by
1.9.2