Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
cref
//g++ 5.4.0 #include <iostream> struct a { a() { std::cout << "a\n"; }; ~a() { std::cout << "~a\n"; }; }; struct b { b(const a& mya) : x(mya) { std::cout << "b\n"; } ~b() { std::cout << "~b\n"; } const a& x; }; int main() { b x{a{}}; std::cout << "reference to a in b is now invalid\n"; }
run
|
edit
|
history
|
help
0
ww999
Microsoft - # of fragments (semi-optimised)
te lo paso
5
data locality - fast example
subset sum=k(Recursion)
Adress
stl_sizeof
Dar
MergeDoubLinArr