名稱空間
變體
操作

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

來自 cppreference.com
 
 
實驗性
技術規範
檔案系統庫 (檔案系統 TS)
庫基礎 (庫基礎 TS)
庫基礎 2 (庫基礎 TS v2)
庫基礎 3 (庫基礎 TS v3)
並行性擴充套件 (並行性 TS)
並行性擴充套件 2 (並行性 TS v2)
併發性擴充套件 (併發性 TS)
併發擴充套件 2 (併發 TS v2)
概念 (概念 TS)
範圍 (範圍 TS)
反射 (反射 TS)
數學特殊函式 (特殊函式 TR)
實驗性非 TS
模式匹配
線性代數
std::execution
契約
2D 圖形
 
 
 
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) 在此檢視中,從位置 pos 開始,查詢第一個不等於 v 中任何字元的字元。
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())。

[編輯] 參閱

在檢視中查詢字元
(public member function) [編輯]
查詢子串的最後一次出現
(public member function) [編輯]
查詢字元的首次出現
(public member function) [編輯]
查詢字元的最後一次出現
(public member function) [編輯]
查詢字元的最後一次缺席
(public member function) [編輯]