std::experimental::basic_string_view<CharT,Traits>::at
來自 cppreference.com
< cpp | experimental | basic string view
constexpr const_reference at(size_type pos) const; |
(庫基礎 TS) | |
返回指定位置 pos
字元的引用。執行邊界檢查,無效訪問時會丟擲 std::out_of_range 型別的異常。
目錄 |
[編輯] 引數
pos | - | 要返回的字元的位置 |
[編輯] 返回值
對請求字元的引用。
[編輯] 異常
如果 pos >= size(),則丟擲 std::out_of_range。
[編輯] 複雜度
常數時間。
[編輯] 參閱
訪問指定字元 (公共成員函式) |