More lectures at https://www.udemy.com/cpp-in-detail-e...
Note that noexcept operator performs a compile-time check and doesn’t evaluate the expression.
Unlike operator, noexcept specifier can take only constant expressions that evaluate to either true or false; noexcept specifier can only be used with functions, methods, lambdas, function pointers.
On the other hand, noexcept operator takes any expression and can be used in other expressions. Call to noexcept operator is itself a constant expression.
Furthermore, noexcept operator doesn’t analyze function definition. If you have throw expression in your function, it won’t affect noexcept operator; noexcept operator will look only at declaration.
На этой странице сайта вы можете посмотреть видео онлайн C++ noexcept specifier vs noexcept operator длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Cpp in Detail 30 Март 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,214 раз и оно понравилось 20 зрителям. Приятного просмотра!