This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is it OK to declare a function | |
... f(Value value) { ... | |
instead of two functions | |
... f(const Value& value) { ... | |
... f(Value &&value) { ... | |
if Value has a move constructor Value(Value&& value)? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do the following code snippets make sense? | |
1. MyClass::f(Value value) { | |
this->value_ptr = &ptr; | |
------------------------------------------------------------------------------------- | |
2. MyClass::f(const Value value) { | |
------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Напомнить как действовать в консоли: сборка, запуск, редиректы, пайпы, флаги, навигация по диску, &&, exit status, diff | |
переменные, for. Хотя бы достичь уровня при котором можно читать мои примеры баш-кода. | |
Показать как дебажить программу принтами. | |
Показать как дебажить программу gdb, как его поставить, брейкпоинты, распечатка переменных, -g | |
Показать как дебажить сегфолты в gdb. | |
Рассказать что такое сегфолт и дать примеры действий, приводящих к сегфолту. Задача-эксперимент на выход за пределы вектора, |