New paste Repaste Download
#include <array>
#include <concepts>
#include <ranges>
template <std::ranges::range T>
std::ranges::iterator_t<T>
iterate (T &&input)
{
  return std::ranges::begin (input.begin);
}
template <typename T> struct Foo;
int
main ()
{
  constexpr std::array<char, 1> arr{'A'};
  auto foo = Foo<decltype (iterate (arr))> ();
  return 0;
}
Filename: None. Size: 353b. View raw, , hex, or download this file.

This paste expires on 2025-02-27 04:15:30.062803. Pasted through web.