0xd34df00d
11.12.2012 19:58 Azoth_primary
template< class T >
struct decay {
typedef typename std::remove_reference<T>::type U;
typedef typename std::conditional<
std::is_array<U>::value,
typename std::remove_extent<U>::type*,
typename std::conditional<
std::is_function<U>::value,
typename std::add_pointer<U>::type,
typename std::remove_cv<U>::type
>::type
>::type type;
};
Recommended by:
@pooq: моча съела говно
LEFT HAND TYPE INFERENCE
Хуита инференс.
шоэта? std::decay?
Да.
и?
};