NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
phmap::swap_internal 命名空间参考

struct  IsNothrowSwappable
 
struct  IsSwappable
 

类型定义

template<class T >
using IsSwappableImpl = decltype(swap(std::declval<T&>(), std::declval<T&>()))
 
template<class T , class IsNoexcept = std::integral_constant< bool, noexcept(swap(std::declval<T&>(), std::declval<T&>()))>>
using IsNothrowSwappableImpl = typename std::enable_if<IsNoexcept::value>::type
 
using StdSwapIsUnconstrained = IsSwappable<void()>
 

函数

void swap ()
 
template<class T , phmap::enable_if_t< IsSwappable< T >::value, int > = 0>
void Swap (T &lhs, T &rhs) noexcept(IsNothrowSwappable< T >::value)
 

类型定义说明

◆ IsNothrowSwappableImpl

template<class T , class IsNoexcept = std::integral_constant< bool, noexcept(swap(std::declval<T&>(), std::declval<T&>()))>>
using phmap::swap_internal::IsNothrowSwappableImpl = typename std::enable_if<IsNoexcept::value>::type

◆ IsSwappableImpl

template<class T >
using phmap::swap_internal::IsSwappableImpl = decltype(swap(std::declval<T&>(), std::declval<T&>()))

◆ StdSwapIsUnconstrained

函数说明

◆ swap()

void phmap::swap_internal::swap ( )

◆ Swap()

template<class T , phmap::enable_if_t< IsSwappable< T >::value, int > = 0>
void phmap::swap_internal::Swap ( T & lhs,
T & rhs )
noexcept