Logo

Programming-Idioms

History of Idiom 171 > diff from v28 to v29

Edit summary for version 29 by nuraby:
New C++ implementation by user [nuraby]

Version 28

2020-05-18, 18:14:55

Version 29

2020-05-18, 18:16:23

Idiom #171 Add an element at the end of a list

Append element x to the list s.

Idiom #171 Add an element at the end of a list

Append element x to the list s.

Variables
x,s
Variables
x,s
Extra Keywords
push grow
Extra Keywords
push grow
Imports
#include <list>
Code
s.push_back(x);
Comments bubble
any c++
Doc URL
https://en.cppreference.com/w/cpp/container/list/push_back