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.
In questa pagina del sito puoi guardare il video online C++ noexcept specifier vs noexcept operator della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Cpp in Detail 30 marzo 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,214 volte e gli è piaciuto 20 spettatori. Buona visione!