std::char_traits::find
static const char_type* find( const char_type* p, std::size_t count, const char_type& ch ); | | (until C++17) |
|---|---|---|
static constexpr const char_type* find( const char_type* p, std::size_t count, const char_type& ch ); | | (since C++17) |
搜索字符ch在第一个count所指向的序列的字符p...
参数
p | - | pointer to a character string to search |
|---|---|---|
count | - | the number of characters to analyze |
ch | - | the character to search for |
返回值
指定范围内的第一个字符的指针。[p, p + count)相当于ch,或NULL如果找不到。
例外
%280%29
复杂性
线性在count...
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

