SeqAn3 3.2.0
The Modern C++ library for sequence analysis.
to_rank.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, 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 <cstring>
16#include <ranges>
17
20
21namespace seqan3::views
22{
67 [](auto const in) noexcept
68 {
69 static_assert(semialphabet<decltype(in)>,
70 "The value type of seqan3::views::to_rank must model the seqan3::alphabet.");
71 return seqan3::to_rank(in);
72 })};
73
74} // 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:104
Provides seqan3::views::deep.
auto const to_rank
A view that calls seqan3::to_rank() on each element in the input range.
Definition: to_rank.hpp:66
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:155
decltype(detail::transform< trait_t >(list_t{})) transform
Apply a transformation trait to every type in the list and return a seqan3::type_list of the results.
Definition: traits.hpp:470
The basis for seqan3::alphabet, but requires only rank interface (not char).
The SeqAn namespace for views.
Definition: char_strictly_to.hpp:22