SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
variant.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 <variant>
13
17
18namespace seqan3
19{
33template <typename char_t, typename variant_type>
34 requires detail::is_type_specialisation_of_v<std::remove_cvref_t<variant_type>, std::variant>
36{
37 if (!v.valueless_by_exception())
39 [&s](auto && arg)
40 {
41 s << arg;
42 },
43 v);
44 else
45 s << "<VALUELESS_VARIANT>";
46 return s;
47}
48
50
51} // namespace seqan3
Provides various type traits on generic types.
A "pretty printer" for most SeqAn data structures and related types.
Definition debug_stream_type.hpp:75
Provides seqan3::debug_stream and related types.
debug_stream_type< char_t > & operator<<(debug_stream_type< char_t > &stream, alignment_t &&alignment)
Stream operator for alignments, which are represented as tuples of aligned sequences.
Definition debug_stream_alignment.hpp:107
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Provides type traits for working with templates.
T visit(T... args)
Hide me