On cppreference there are three overloads for std::basic_string_view<CharT,Traits>::starts_with
:
constexpr bool starts_with( basic_string_view sv ) const noexcept; (1)
constexpr bool starts_with( CharT c ) const noexcept; (2)
constexpr bool starts_with( const CharT* s ) const; (3)
Why is the third one not marked as noexcept
? Similar with std::basic_string_view<CharT,Traits>::ends_with