template<std::size_t N2>
SPROUT_CONSTEXPR size_type find(basic_string<T, N2, Traits> const& str, size_type pos = 0) const SPROUT_NOEXCEPT;
#include <sprout/string.hpp>
using namespace sprout;
SPROUT_STATIC_CONSTEXPR auto input = string<8>("madocchi");
SPROUT_STATIC_CONSTEXPR auto result = input.find("cchi");
static_assert(result == 4, "a found position is 4.");
Note
The current implementation is incomplete. O(N) (linear) depth.
SPROUT_CONSTEXPR size_type find(value_type const* s, size_type pos, size_type n) const;
SPROUT_CONSTEXPR size_type find(value_type const* s, size_type pos = 0) const;
SPROUT_CONSTEXPR size_type find(value_type c, size_type pos = 0) const;