Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C++ out of ref
#include <iostream> #include <vector> using namespace std; class Foo { int bar; int& getBar() { return bar; } }; int main() { vector<int> foo; int& bar = foo[0]; foo.push_back(1); bar = 100; std::cout << "Hello, world!\n" << bar << endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Tree Example
boost tokenizer
What's the problem with this?
SceneGraph Interviewee Task
Reference example
bank queue
DESim Example with Hash Table
You can't erase a std::unordered_map::local_iterator
Dat pointers
(non?)-template template parameters for container stream insertion
Please log in to post a comment.