Loading...
Searching...
No Matches
core/range/detail/misc.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 <ranges>
#include <seqan3/core/platform.hpp>
namespace seqan3::detail
{
template <std::ranges::input_range rng_t>
constexpr void consume(rng_t && rng)
{
auto it = begin(rng);
auto it_end = end(rng);
while (it != it_end)
++it;
}
template <std::ranges::forward_range rng_t>
constexpr void consume(rng_t &&)
{}
} // namespace seqan3::detail
std::begin
T begin(T... args)
std::end
T end(T... args)
platform.hpp
Provides platform and dependency checks.
Hide me