Added is_nothrow_swappable

This commit is contained in:
Ion Gaztañaga
2015-01-19 00:05:05 +01:00
parent f21d8f51e7
commit db6448f7ea

View File

@@ -810,6 +810,15 @@ template<class T>
struct is_nothrow_move_assignable
{ static const bool value = BOOST_MOVE_IS_NOTHROW_MOVE_ASSIGNABLE(T); };
//////////////////////////////////////
// is_nothrow_swappable
//////////////////////////////////////
template<class T>
struct is_nothrow_swappable
{
static const bool value = is_empty<T>::value || is_pod<T>::value;
};
//////////////////////////////////////
// alignment_of
//////////////////////////////////////