SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
rank_to.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{
61template <typename alphabet_type>
63inline auto const rank_to = deep{std::views::transform(
64 [](alphabet_rank_t<alphabet_type> const in) -> alphabet_type
65 {
66 return assign_rank_to(in, alphabet_type{});
67 })};
68
69} // 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 rank_to
A view over an alphabet, given a range of ranks.
Definition rank_to.hpp:63
decltype(seqan3::to_rank(std::declval< semi_alphabet_type >())) alphabet_rank_t
The rank_type of the semi-alphabet; defined as the return type of seqan3::to_rank....
Definition alphabet/concept.hpp:166
constexpr auto assign_rank_to
Assign a rank to an alphabet object.
Definition alphabet/concept.hpp:290
A refinement of seqan3::semialphabet that adds assignability.
The SeqAn namespace for views.
Definition char_strictly_to.hpp:19
Hide me