Out of 3 compilers only gcc accepts this code. I guess clang problem is that it uses antique libstdc++, but MSVC and GCC should support ranges code.
What is the standard mandated behavior?
#include<array>
#include<algorithm>
#include<iostream>
#include<map>
#include<set>
#include<ranges>
constexpr std::array<std::pair<int, double>,2> arr{std::pair{1,1.1},std::pair{2,2.2}};
int main(){
auto it = std::ranges::find(arr | std::views::keys , 2);
std::cout << *it;
}