std::basic_string<CharT,Traits,Allocator>::
pop_back
来自cppreference.com
<
cpp
|
string
|
basic string
C++
语言
标准库头文件
自立与有宿主实现
具名要求
语言支持库
概念库
(C++20)
诊断库
工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
输入/输出库
本地化库
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
文件系统库
(C++17)
技术规范
字符串库
空终止字符串
字节字符串
多字节字符串
宽字符串
类
basic_string
basic_string_view
(C++17)
char_traits
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)
I/O
operator<<
operator>>
getline
比较
operator==
operator!=
operator<
operator>
operator<=
operator>=
数值转换
(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)
void
pop_back
(
)
;
(C++11 起)
从字符串移除末字符。
等价于
erase
(
end
(
)
-
1
,
1
)
。若字符串为空则行为未定义。
参数
(无)
返回值
(无)
复杂度
常数。
异常
不抛出。
参阅
push_back
后附字符到结尾
(公开成员函数)
erase
移除字符
(公开成员函数)