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: моча съела говно

1. DZhon 11.12.2012 20:05

LEFT HAND TYPE INFERENCE

2. 0xd34df00dDZhon /1 11.12.2012 20:05 Azoth_primary

Хуита инференс.

3. generatorglukoff 11.12.2012 20:41 Досктоп

шоэта? std::decay?

4. 0xd34df00dgeneratorglukoff /3 11.12.2012 21:10 Azoth_primary

Да.

5. generatorglukoff0xd34df00d /4 11.12.2012 22:49 Досктоп

и?

6. a9qd0wf 12.12.2012 19:33

};

Do you really want to delete ?