C++ Class Templates (Part 1)

preview_player
Показать описание
This video shows the use of C++ class templates and also demonstrates the difference between pass-by-value and pass-by-reference semantics (including "copy" vs "move" semantics and optimizations) for C++ parameters and return values. In addition, it demonstrates the use of template member functions and member function templates in C++ parameterized types.
Рекомендации по теме
Комментарии
Автор

Hello Professor Doug, at 9:00 could you clarify why there are 3 calls to the simple_string(const &) copy constructor as suppose to 2 ? Thank you.

mac-noble
Автор

Hi Prof Doug,
So is the recommendation to do pass by value and std::move over pass by reference?

kaushiksr