4#ifndef TETL_STRINGS_FIND_HPP
5#define TETL_STRINGS_FIND_HPP
7#include <etl/_string_view/basic_string_view.hpp>
11template <
typename Char,
typename Traits>
12[[nodiscard]]
constexpr auto find(
18 if (needle.size() == 0
and pos <= haystack.size()) {
22 if (pos <= haystack.size() - needle.size()) {
23 return haystack.find(needle, pos);
constexpr auto find(basic_string_view< Char, Traits > haystack, basic_string_view< Char, Traits > needle, typename basic_string_view< Char, Traits >::size_type pos=0) noexcept -> typename basic_string_view< Char, Traits >::size_type
Definition find.hpp:12
Definition adjacent_find.hpp:9
The class template basic_string_view describes an object that can refer to a constant contiguous sequ...
Definition basic_string_view.hpp:35