cppreference.com
アカウント作成
ログイン
名前空間
ページ
議論
変種
表示
閲覧
編集
履歴
操作
std::basic_string<CharT,Traits,Allocator>::
pop_back
提供: cppreference.com
<
cpp
|
string
|
basic string
C++
言語
標準ライブラリヘッダ
フリースタンディング処理系とホスト処理系
名前付き要件
言語サポートライブラリ
コンセプトライブラリ
(C++20)
診断ライブラリ
ユーティリティライブラリ
文字列ライブラリ
コンテナライブラリ
イテレータライブラリ
範囲ライブラリ
(C++20)
アルゴリズムライブラリ
数値演算ライブラリ
ローカライゼーションライブラリ
入出力ライブラリ
ファイルシステムライブラリ
(C++17)
正規表現ライブラリ
(C++11)
アトミック操作ライブラリ
(C++11)
スレッドサポートライブラリ
(C++11)
技術仕様書
[edit]
文字列ライブラリ
ヌル終端文字列
バイト文字列
マルチバイト文字列
ワイド文字列
クラス
basic_string
basic_string_view
(C++17)
char_traits
[edit]
std::basic_string
メンバ関数
basic_string::basic_string
basic_string::operator=
basic_string::assign
basic_string::get_allocator
要素アクセス
basic_string::at
basic_string::operator[]
basic_string::front
(C++11)
basic_string::back
(C++11)
basic_string::data
basic_string::c_str
basic_string::operator basic_string_view
(C++17)
イテレータ
basic_string::begin
basic_string::cbegin
(C++11)
basic_string::end
basic_string::cend
(C++11)
basic_string::rbegin
basic_string::crbegin
(C++11)
basic_string::rend
basic_string::crend
(C++11)
容量
basic_string::empty
basic_string::size
basic_string::length
basic_string::max_size
basic_string::reserve
basic_string::capacity
basic_string::shrink_to_fit
(C++11)
操作
basic_string::clear
basic_string::insert
basic_string::erase
basic_string::push_back
basic_string::pop_back
(C++11)
basic_string::append
basic_string::operator+=
basic_string::compare
basic_string::starts_with
(C++20)
basic_string::ends_with
(C++20)
basic_string::replace
basic_string::substr
basic_string::copy
basic_string::resize
basic_string::swap
検索
basic_string::find
basic_string::rfind
basic_string::find_first_of
basic_string::find_first_not_of
basic_string::find_last_of
basic_string::find_last_not_of
定数
basic_string::npos
非メンバ関数
operator+
swap
(std::basic_string)
operator""s
(C++14)
erase
(std::basic_string)
erase_if
(std::basic_string)
(C++20)
(C++20)
入出力
operator<<
operator>>
getline
比較
operator==
operator!=
operator<
operator>
operator<=
operator>=
operator<=>
(C++20未満)
(C++20未満)
(C++20未満)
(C++20未満)
(C++20未満)
(C++20)
数値変換
(C++11)
stoi
stol
stoll
stoul
stoull
stof
stod
stold
to_string
to_wstring
ヘルパークラス
hash
<std::string>
hash
<std::wstring>
hash
<std::u32string>
hash
<std::u16string>
hash
<std::u8string>
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
hash
<std::pmr::string>
hash
<std::pmr::wstring>
hash
<std::pmr::u32string>
hash
<std::pmr::u16string>
hash
<std::pmr::u8string>
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
推定ガイド
(C++17)
[edit]
void
pop_back
(
)
;
(C++11以上)
(C++20未満)
constexpr
void
pop_back
(
)
;
(C++20以上)
文字列から最後の文字を削除します。
erase
(
end
(
)
-
1
)
と同等です。 文字列が空の場合、動作は未定義です。
目次
1
引数
2
戻り値
3
計算量
4
例外
5
関連項目
[
編集
]
引数
(なし)
[
編集
]
戻り値
(なし)
[
編集
]
計算量
一定。
[
編集
]
例外
何も投げません。
[
編集
]
関連項目
push_back
文字を末尾に追加します
(パブリックメンバ関数)
[edit]
erase
文字を削除します
(パブリックメンバ関数)
[edit]