I was reading source code of string_view, and found that operator== accepts parameters by value.
template<typename _CharT, typename _Traits>
constexpr bool
operator==(basic_string_view<_CharT, _Traits> __x,
basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.size() == __y.size() && __x.compare(__y) == 0; }
Why does it accepts parameters by value, not by const reference?