Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
vector destruction - clang
//clang #include <iostream> #include <vector> struct A{ A(int i):i_(i){} ~A(){ std::cout << i_ << std::endl; } int i_; }; int main() { std::vector<A> a({0,1,2,3,4,5}); std::cout << "Destroy a " << std::endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
(non?)-template template parameters for container stream insertion
chakib
Linker error while passing constexpr variable as const &
Access to temporary object
Union-Struct-uint32_t byte order
Thread-safe Interval Average Calculator
even number
6 7
Graphs Iteration 2.1 Directed Graphs
Crow unordered_map Quiz
Please log in to post a comment.