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
| #include <cassert> | |
| #include <cstddef> | |
| #include <string> | |
| #include <utility> | |
| #include <algorithm> | |
| template <typename Type> | |
| class SingleLinkedList { | |
| // Узел списка | |
| struct Node { |
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
| class SignalProcessor { | |
| public: | |
| explicit SignalProcessor(UniverseListener& listener, EmailSender& sender) | |
| : universe_listener_{listener} | |
| , email_sender_{sender} { | |
| // Порог силы сигнала. Нужно игнорировать сигнал, если | |
| // его сила ниже этого числа. | |
| static const double threshold = 0.8; | |
| // Создайте шаблонную лямбда-функцию, |
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
| function sum(a, b) { | |
| return a + b | |
| } |