Namespaces
Variants
Views
Actions

Template:cpp/string/sv hack

From cppreference.com

Implicitly converts t to a string view sv as if by std::basic_string_view<CharT, Traits> sv = t;, then {{{1}}}.

This overload participates in overload resolution only if std::is_convertible_v<const StringViewLike&,
                      std::basic_string_view<CharT, Traits>>
is true and std::is_convertible_v<const StringViewLike&, const CharT*> is false.