名前空間
変種

std::basic_string_view<CharT,Traits>::front

提供: cppreference.com
 
 
 
 
<tbody> </tbody>
constexpr const_reference front() const;
(C++17以上)

ビューの最初の文字を指す参照を返します。 empty() == true の場合、動作は未定義です。

引数

(なし)

戻り値

最初の文字を指す参照。 operator[](0) と同等です。

計算量

一定。

関連項目

最後の文字にアクセスします
(パブリックメンバ関数) [edit]
ビューが空かどうか調べます
(パブリックメンバ関数) [edit]