Serving the Quantitative Finance Community

 
User avatar
Cuchulainn
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

C++ quiz --- STL tricks

January 4th, 2016, 7:28 pm

QuoteOriginally posted by: outrunIn a word, "move semantics and move ctor".
Last edited by Cuchulainn on January 3rd, 2016, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

C++ quiz --- STL tricks

January 29th, 2016, 12:16 pm

Why is an abstract class not the same as an interface?It is amusing to see how some C++ developers think they are and can change the definitions so they morph into the same thing.There are at least 3 differences between them.
Last edited by Cuchulainn on January 28th, 2016, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

C++ quiz --- STL tricks

January 29th, 2016, 1:38 pm

QuoteOriginally posted by: outrunwhy isn't there are std::delimited(",") like so:std::cout << std::delimited(",");std::cout << 1 << 2 << 3;output:1,2,3I suppose you are working on something more general?In that case, I would think that this belongs to std::regex?Or even call a callback each time it finds a token.Plan B: what about manipulators?
Last edited by Cuchulainn on January 28th, 2016, 11:00 pm, edited 1 time in total.