Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::char_traits<char>::find,std::char_traits<wchar_t>::find,std::char_traits<char8_t>::find,std::char_traits<char16_t>::find,std::char_traits<char32_t>::find

      From cppreference.com
      <cpp‎ |string‎ |char traits
       
       
       
       
      staticconst char_type*
          find(const char_type* ptr,std::size_t count,const char_type& ch);
      (constexpr since C++17)

      Searches for characterch within the firstcount characters of the sequence pointed to byptr.

      SeeCharTraits for the general requirements on character traits forX::find.

      [edit]Parameters

      ptr - pointer to a character string to search
      count - the number of characters to analyze
      ch - the character to search for

      [edit]Return value

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

      [edit]Complexity

      Linear incount.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/string/char_traits/find&oldid=158862"

      [8]ページ先頭

      ©2009-2025 Movatter.jp