“cpp/string/char traits/find”的版本间的差异

来自cppreference.com
< cpp‎ | string‎ | char traits
(1个修订: Translate from the English version)
 
(未显示3个用户的7个中间版本)
第1行: 第1行:
{{tr_note}}
 
 
{{cpp/string/char_traits/title|find}}
 
{{cpp/string/char_traits/title|find}}
 
{{cpp/string/char_traits/navbar}}
 
{{cpp/string/char_traits/navbar}}
{{ddcl list begin}}
+
{{ddcl{{|
{{ddcl list item |  
+
const *
const CharT* find( const CharT* p, std::size_t count, CharT a );
+
find( const * , std::size_t count, );
 
}}
 
}}
{{ddcl list end}}
 
  
Searches for character {{tt|a}} within the first {{tt|count}} characters within character string pointed to by {{tt|p}}.
+
{{|}} {{|count}} {{|}}
  
===。参数。===
+
{{|}} {{|}}
{{param list begin}}
+
{{param list item | p | pointer to a character string to search}}
+
{{param list item | count | the number of characters to analyze}}
+
{{param list item | a | the character to search for}}
+
{{param list end}}
+
  
===
+
=== ===
返回值。===
+
{{
A pointer to the first character of value {{tt|a}} withing the given character string.
+
|
 +
 +
 +
}}
  
=== 。例外。===
+
=== ===
{{tr| (无)。|(none)}}
+
{{| |}}
  
=== 复杂 性。===
+
===复杂 ===
{{tr| 线性.|Linear.}}
+
{{|线性
 +
 
 +
|}}

2024年3月9日 (六) 09:51的最后版本