SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
to_char.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 <ranges>
13
16
17namespace seqan3::views
18{
60inline auto const to_char = deep{std::views::transform(
61 [](auto const in) noexcept
62 {
63 static_assert(alphabet<std::remove_cvref_t<decltype(in)>>,
64 "The value type of seqan3::views::to_char must model the seqan3::alphabet.");
65 return seqan3::to_char(in);
66 })};
67
68} // namespace seqan3::views
Core alphabet concept and free function/type trait wrappers.
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition deep.hpp:101
Provides seqan3::views::deep.
auto const to_char
A view that calls seqan3::to_char() on each element in the input range.
Definition to_char.hpp:60
constexpr auto to_char
Return the char representation of an alphabet object.
Definition alphabet/concept.hpp:383
The generic alphabet concept that covers most data types used in ranges.
The SeqAn namespace for views.
Definition char_strictly_to.hpp:19
Hide me