Return whether the string begins with another string. @li **(1)** checks if the string begins with `s`. @li **(2)** checks if the string begins with `ch`. @par Complexity @li **(1)** linear in `s.size()`. @li **(2)** constant. @param s The string to check for. @{ */
| 1418 | @{ |
| 1419 | */ |
| 1420 | bool |
| 1421 | starts_with(string_view s) const noexcept |
| 1422 | { |
| 1423 | return subview(0, s.size()) == s; |
| 1424 | } |
| 1425 | |
| 1426 | /** Overload |
| 1427 |