vendredi 22 février 2019

Is std::list::splice and std::forward_list::splice_after noexceptin in C++11?

std::forward_list::splice_after cppreference and std::list::splice cppreference mentions nothing about the exception guarantee of std::forward_list::emplace_after and std::list::emplace.

However, since these 2 functions only changes the pointer of the list node thus does not need to copy/move any element or allocate any memory, IMHO they should be noexcept.

Are they noexcept in C++11? If they are not, why?

Aucun commentaire:

Enregistrer un commentaire