table of contents
        
      
      
    - Tumbleweed 2024.07.05-1.3
 - Leap-16.0
 
| std::char_traits::find,std::char_traits::find,(3) | C++ Standard Libary | std::char_traits::find,std::char_traits::find,(3) | 
NAME¶
std::char_traits::find,std::char_traits::find, - std::char_traits::find,std::char_traits::find,
Synopsis¶
std::char_traits<char32_t>::find
  
   static const char_type*
  
   find( const char_type* ptr, std::size_t count, const (constexpr since C++17)
  
   char_type& ch );
  
   Searches for character ch within the first count characters of the sequence
    pointed
  
   to by ptr.
  
   See CharTraits for the general requirements on character traits for
  X::find.
Parameters¶
 ptr - pointer to a character string to search
  
   count - the number of characters to analyze
  
   ch - the character to search for
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.
Complexity¶
Linear in count.
| 2024.06.10 | http://cppreference.com |