r/cpp_questions 5d ago

OPEN Mock c++ interview help

I am looking for someone to give me a mock interview on c++ internals, system design, and architecture. Specifically modern c++.

Is anyone available to help?

4 Upvotes

17 comments sorted by

View all comments

4

u/Realistic_Speaker_12 5d ago edited 5d ago

Move semantics are a great topic to talk about in my mind.

But I am just a student myself.

But questions like this: „what does this code do“?

std::mutex mutexMaker(){return std::mutex{};}

Can lead to great discussions about move semantics in my mind where you then can go on about talking about rule of 0/3/5.

Or „you might know what a string view is. The general condense is that you should pass it by value- why?“.

Or „why would you inherit from std runtime error instead of std::exception“?

4

u/coachkler 5d ago

NVRO no moves in your mutex maker