Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/string/basic string/pop back"

From cppreference.com
< cpp‎ | string‎ | basic string
m (Use since= and until= params of {{ddcl}} template.)
(C++11: "no erase() or pop_back() throws any exceptions", C++14: "Throws: nothing")
Line 15: Line 15:
 
===Complexity===
 
===Complexity===
 
Constant.
 
Constant.
 +
 +
===Exceptions===
 +
(none)
  
 
===See also===
 
===See also===

Revision as of 20:01, 19 March 2014

 
 
 
std::basic_string
Member functions
Element access
Iterators
Capacity
Modifiers
basic_string::pop_back
(DR*)
Search
Operations
Constants
Non-member functions
I/O
Comparison
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
Numeric conversions
(C++11)(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Literals
Helper classes
Deduction guides (C++17)

 
void pop_back();
(since C++11)

Removes the last character from the string.

Contents

Parameters

(none)

Return value

(none)

Complexity

Constant.

Exceptions

(none)

See also

appends a character to the end
(public member function) [edit]