SeqAn3
3.3.0
The Modern C++ library for sequence analysis.
Toggle main menu visibility
Welcome
Setup
Quick Setup (using CMake)
Tutorial
First steps with SeqAn
Parsing command line arguments with Sharg
C++ Concepts
Alphabets in SeqAn
Ranges
Minimisers
Sequence File Input and Output
Pairwise Alignment
Indexing and searching with SeqAn
SAM Input and Output in SeqAn
Implementing your own read mapper with SeqAn
How-To
Porting from SeqAn2
How to write an argument parser with subcommands
How to serialise SeqAn data structures
How to write a view
How to write your own alphabet
Cookbook
About
Stability and long-term promises
Citing
Customisation
Changelog
Copyright
Code of Conduct
Contributing
API Reference
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
to_string.hpp
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------------------------------
2
// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
3
// Copyright (c) 2016-2023, 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 Aug 17 2023 14:29:08 for SeqAn3 by
1.9.6