Instantiated member variants

find

Template: std::char_traits<T>

Specializations:
  • char
  • wchar_t
  • char8_t
  • char16_t
  • char32_t

Searches for character ch within the first count characters of the sequence pointed to by ptr.

# Declarations

static const char_type*
find( const char_type* ptr, std::size_t count, const char_type& ch );

(constexpr since C++17)

# Parameters

# Return value

A pointer to the first character in the range specified by [ptr,ptr + count) that compares equal to ch, or a null pointer if not found.