nalchi
Loading...
Searching...
No Matches
typed_input_range.hpp
1#pragma once
2
3#include <concepts>
4#include <ranges>
5#include <type_traits>
6#include <utility>
7
8namespace nalchi
9{
10
11template <typename R, typename T>
12concept typed_input_range = std::ranges::input_range<R> &&
13 std::same_as<T, std::remove_cvref_t<decltype(*std::ranges::begin(std::declval<R>()))>>;
14
15}
Definition typed_input_range.hpp:12