SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
take_line_view.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
14
15// ============================================================================
16// detail::take_line (adaptor instance definition)
17// ============================================================================
18
19namespace seqan3::detail
20{
70inline constexpr auto take_line = detail::take_until_and_consume(is_char<'\r'> || is_char<'\n'>);
71
72// ============================================================================
73// detail::take_line_or_throw (adaptor instance definition)
74// ============================================================================
75
83
84} // namespace seqan3::detail
constexpr auto take_until_or_throw_and_consume
A view adaptor that returns elements from the underlying range until the functor evaluates to true (t...
Definition take_until_view.hpp:599
constexpr auto take_until_and_consume
A view adaptor that returns elements from the underlying range until the functor evaluates to true (o...
Definition take_until_view.hpp:585
constexpr auto take_line_or_throw
A view adaptor that returns a single line from the underlying range (throws if there is no end-of-lin...
Definition take_line_view.hpp:82
constexpr auto take_line
A view adaptor that returns a single line from the underlying range or the full range if there is no ...
Definition take_line_view.hpp:70
constexpr auto is_char
Checks whether a given letter is the same as the template non-type argument.
Definition predicate.hpp:60
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Provides character predicates for tokenisation.
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
Hide me