|"I don't find 95 percent of the standard library useful actually."|
|Give me an example when to use 10 things from the std library. |
Threading. We are using non-standard library because we were using it befor C++11 and don't want to rewrite all code. But if you aren't using threading, you are using ½~⅛ of your CPU. It is very important for games. If only Dwarf fortress was rewritten using multithreading, it would give me more that 60 FPS with 250 dwarves.
and if you are using threads you probably need <functional>
tuples is pretty useful too. I often use std::tie when implementing relationship operators for data structures.
Different random number generators are prety useful too. I didn't need most of them but I like normal distribution generator and fact that we can have several independent generators we can seed independely.
static_assert and type_trait are used sometimes in templates.
Fixed width types when you need binary compatibility.
have already wrote about containers, so I will not repeat that.
And, of course, streams and strings.
In C++14 variable length arrays will be supported. However sizeof() will not work with them.
Does anybody have information about std::begin/end on vararrays?
Because AFAIK for arrays
std::begin(a) == a
std::end(a) == a + sizeof(a);
Also there is some C++14 stuff on http://en.cppreference.com/w/