Loading...
Searching...
No Matches
to_rank.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <cstring>
#include <ranges>
#include <seqan3/alphabet/concept.hpp>
#include <seqan3/utility/views/deep.hpp>
namespace seqan3::views
{
inline auto const to_rank = deep{std::views::transform(
[](auto const in) noexcept
{
static_assert(semialphabet<decltype(in)>,
"The value type of seqan3::views::to_rank must model the seqan3::alphabet.");
return seqan3::to_rank(in);
})};
} // namespace seqan3::views
concept.hpp
Core alphabet concept and free function/type trait wrappers.
seqan3::views::deep
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition deep.hpp:101
cstring
deep.hpp
Provides seqan3::views::deep.
seqan3::views::to_rank
auto const to_rank
A view that calls seqan3::to_rank() on each element in the input range.
Definition to_rank.hpp:63
seqan3::to_rank
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition alphabet/concept.hpp:152
semialphabet
The basis for seqan3::alphabet, but requires only rank interface (not char).
seqan3::views
The SeqAn namespace for views.
Definition char_strictly_to.hpp:19
Hide me