namespace __swappable_details {
using std::swap;
struct __do_is_swappable_impl
{
template <typename _Tp, typename
= decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))>
static true_type __test(int);
template <typename>
static false_type __test(...);
};
}
template <typename _Tp>
struct __is_swappable_impl
: public __swappable_details::__do_is_swappable_impl
{
typedef decltype(__test<_Tp>(0)) type;
};
template <typename _Tp>
struct __is_swappable
: public __is_swappable_impl<_Tp>::type
{};
namespace details
{
struct HasMemberToStringValidator
{
template <typename T, typename = decltype(&T::ToString)>
static std::true_type Test(int);
template <typename>
static std::false_type Test(...);
};
}
template <typename T>
struct HasMemberToString :
public decltype(details::HasMemberToStringValidator::Test<T>(0))
{};
struct HasMemberToStringValidator
{
template <typename T, typename U =
typename std::decay<decltype(std::declval<T>().ToString())>::type,
typename = typename std::enable_if<std::is_same<std::string, U>::value>::type>
static std::true_type Test(int);
template <typename>
static std::false_type Test(...);
};
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有