mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 21:54:26 +02:00
Added is_nothrow_swappable
This commit is contained in:
@@ -810,6 +810,15 @@ template<class T>
|
|||||||
struct is_nothrow_move_assignable
|
struct is_nothrow_move_assignable
|
||||||
{ static const bool value = BOOST_MOVE_IS_NOTHROW_MOVE_ASSIGNABLE(T); };
|
{ 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
|
// alignment_of
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user