SeqAn3 3.1.0
The Modern C++ library for sequence analysis.
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
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
Provides seqan3::debug_stream and related types.
T str(T... args)
T to_string(T... args)