mirror of
https://github.com/boostorg/move.git
synced 2025-08-01 21:34:27 +02:00
Added is_nothrow_swappable
This commit is contained in:
@@ -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
|
||||
//////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user