Jon asks:
If I have a:
std::map<std::string, std::vector<int> > x
can I do:
x["bob"].push_back(2)?
Yes, you can.
Jon asks:
Do you remember from somewhere(possibly a Sutter talk?) what happens
in the below?volatile int x; Thread #1: Write 1 to x Read x Thread #2: Write 2 to x Read x
Yes, I do remember the talk but am not sure who it was by. First, let's start with what the volatile keyword does.
Recent comments
1 day 15 hours ago
5 days 11 hours ago
5 days 11 hours ago
6 days 7 hours ago
1 week 4 days ago
1 week 4 days ago
2 weeks 3 days ago
9 weeks 6 days ago
14 weeks 1 hour ago
16 weeks 5 days ago