Run Code
|
API
|
Code Wall
|
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
void pointer
C++ standard
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
GetTypeName
Throttle Example in C++ (80 requests every 2 seconds)
Simple Generic Data Type Example
function returning a function demo
Recursive Function Calling Example with Stack Addresses
Wrapper to pass shared_ptr to &, const &, *, const * through std::bind.
Test3