std::list<T,Allocator>::push_back
Min standard notice:
Appends the given element value to the end of the container.
# Declarations
void push_back( const T& value );
void push_back( T&& value );
(since C++11)
# Parameters
value: the value of the element to append
# Return value
(none)
# Example
#include <iomanip>
#include <iostream>
#include <string>
#include <list>
int main()
{
std::list<std::string> letters;
letters.push_back("abc");
std::string s{"def"};
letters.push_back(std::move(s));
std::cout << "std::list letters holds: ";
for (auto&& e : letters)
std::cout << std::quoted(e) << ' ';
std::cout << "\nMoved-from string s holds: " << std::quoted(s) << '\n';
}