2011-02-01 23:24:58 +08:00
|
|
|
// PR9073
|
|
|
|
template<typename _Tp>
|
|
|
|
class shared_ptr{
|
|
|
|
public:
|
|
|
|
template<class _Alloc, class ..._Args>
|
|
|
|
static
|
|
|
|
shared_ptr<_Tp>
|
|
|
|
allocate_shared(const _Alloc& __a, _Args&& ...__args);
|
|
|
|
};
|
|
|
|
|
|
|
|
template<class _Tp>
|
|
|
|
template<class _Alloc, class ..._Args>
|
|
|
|
shared_ptr<_Tp>
|
|
|
|
shared_ptr<_Tp>::allocate_shared(const _Alloc& __a, _Args&& ...__args)
|
|
|
|
{
|
|
|
|
shared_ptr<_Tp> __r;
|
|
|
|
return __r;
|
|
|
|
}
|
2012-09-07 10:06:42 +08:00
|
|
|
|
|
|
|
template<typename...Ts> struct outer {
|
|
|
|
template<Ts...Vs, template<Ts> class ...Cs> struct inner {
|
|
|
|
inner(Cs<Vs>...);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
template struct outer<int, int>;
|