Which is faster during sequential iteration over identical elements: std::list or std::vector, and why?
C/C++
For list, vector, set, and unordered_set, name the complexity of searching for an element by value and deleting a found element, as well as the rules for invalidating iterators.
What is an atomic operation and what does memory_order specify?
What tests did you write and how did you use Google Test/Google Mock?
Tell us about your experience developing in C++: projects, language standards, and relevant tasks.
Why was multithreading needed in your TCP server?
What primitive synchronization mechanisms do you know in C++? How does std::lock_guard differ from std::unique_lock, and when might manual unlock be needed?
How was the emulator device startup and testing organized and automated?
How did you control the performance of real-time applications and identify bottlenecks?
What will the program in the image output when constructing and destroying an object C with a base class A, field B, and field X?
// x86-64 struct S { char ch; std::uint16_t i; std::uint16_t getI() const { return i; }; virtual ~S() {} }; sizeof(S) == ?
Have you had to optimize the system, find bottlenecks, and profile it?
Why is the size of an empty structure in C++ usually 1 byte, not 0?