SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
to_upper.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2020, 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 
18 #include <seqan3/std/ranges>
19 
20 namespace seqan3::views
21 {
22 
66 inline auto const to_upper = deep{std::views::transform([] (auto const in) noexcept
67 {
68  static_assert(builtin_character<std::remove_cvref_t<decltype(in)>>,
69  "The value type of seqan3::views::to_upper must model the seqan3::builtin_character.");
70  return seqan3::to_upper(in);
71 })};
72 
74 
75 } // namespace seqan3::views
seqan3::views
The SeqAn namespace for views.
Definition: view_iota_simd.hpp:218
seqan3::views::to_upper
auto const to_upper
A view that calls seqan3::to_upper() on each element in the input range.
Definition: to_upper.hpp:66
seqan3::views::deep
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition: deep.hpp:102
builtin_character
This concept encompasses exactly the types char, signed char, unsigned char, wchar_t,...
seqan3::to_upper
constexpr char_type to_upper(char_type const c) noexcept
Converts 'a'-'z' to 'A'-'Z' respectively; other characters are returned as is.
Definition: transform.hpp:97
ranges
Adaptations of concepts from the Ranges TS.
deep.hpp
Provides seqan3::views::deep.
transform.hpp
Provides utilities for modifying characters.
std::remove_cvref_t
seqan3::pack_traits::transform
seqan3::type_list< trait_t< pack_t >... > transform
Apply a transformation trait to every type in the pack and return a seqan3::type_list of the results.
Definition: traits.hpp:307
concept.hpp
Core alphabet concept and free function/type trait wrappers.