C++ noexcept specifier vs noexcept operator

Publicado el: 30 marzo 2019
en el canal de: Cpp in Detail
2,214
20

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.


En esta página del sitio puede ver el video en línea C++ noexcept specifier vs noexcept operator de Duración hora minuto segunda en buena calidad , que subió el usuario Cpp in Detail 30 marzo 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,214 veces y le gustó 20 a los espectadores. Disfruta viendo!