Returns a reference to the first element in a string.
const_reference front() const;
reference front();
Return Value
A reference to the first element of the string, which must be non-empty.
Requirements
Header: <string>
Namespace: std
このブラウザーはサポートされなくなりました。
Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。
Returns a reference to the first element in a string.
const_reference front() const;
reference front();
A reference to the first element of the string, which must be non-empty.
Header: <string>
Namespace: std