◐ Shell
clean mode source ↗

std::basic_string_view<CharT,Traits>::front - cppreference.com

提供: cppreference.com

<tbody> </tbody>

constexpr const_reference front() const;

(C++17以上)

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

引数

(なし)

戻り値

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

計算量

一定。

関連項目