std::experimental::basic_string_view<CharT,Traits>::find_first_not_of

constexpr size_type
    find_first_not_of(basic_string_view v, size_type pos = 0) const noexcept;
(1) (库基础 TS)
constexpr size_type
    find_first_not_of(CharT c, size_type pos = 0) const noexcept;
(2) (库基础 TS)
constexpr size_type
    find_first_not_of(const CharT* s, size_type pos, size_type count) const;
(3) (库基础 TS)
constexpr size_type
    find_first_not_of(const CharT* s, size_type pos = 0) const;
(4) (库基础 TS)

查找首个不等于给定字符序列中的任何字符的字符。

1) 查找此视图中首个不等于 v 中的任何字符的字符,从位置 pos 开始。
2) 等价于 find_first_not_of(basic_string_view(&c, 1), pos)
3) 等价于 find_first_not_of(basic_string_view(s, count), pos)
4) 等价于 find_first_not_of(basic_string_view(s), pos)

参数

v - 要搜索的视图
pos - 从之开始搜索的位置
count - 要比较的字符串的长度
s - 指向要比较字符串的指针
ch - 要比较的字符

返回值

首个不等于给定字符串中的任何字符的字符的位置,或当未找到这种字符时为 npos

复杂度

最差为 O(size() * v.size())。

参阅

在视图中查找字符
(公开成员函数)
寻找子字符串的最后出现
(公开成员函数)
检查首个出现的字符
(公开成员函数)
返回最末出现的字符
(公开成员函数)
查找最末未出现字符
(公开成员函数)