lundi 28 mars 2016

How is is_nothrow_move_constructible implemented

How exactly is is_nothrow_move_constructible() implemented? In particular how can one check for the nothrow specification at compile time? And how can you check whether a class has a move constructor?

Can the second be done with a partial template specialization that accepts a function pointer to a move constructor. Basically SFINAE, but how can one check for noexcept?

EDIT : noexcept() exists, so I guess I understand now. But if someone wants to post a detailed answer for people that do not know, then go ahead!

Aucun commentaire:

Enregistrer un commentaire