Douglas Gregor | f9997a0 | 2011-02-01 15:24:58 +0000 | [diff] [blame] | 1 | // PR9073 |
| 2 | template<typename _Tp> |
| 3 | class shared_ptr{ |
| 4 | public: |
| 5 | template<class _Alloc, class ..._Args> |
| 6 | static |
| 7 | shared_ptr<_Tp> |
| 8 | allocate_shared(const _Alloc& __a, _Args&& ...__args); |
| 9 | }; |
| 10 | |
| 11 | template<class _Tp> |
| 12 | template<class _Alloc, class ..._Args> |
| 13 | shared_ptr<_Tp> |
| 14 | shared_ptr<_Tp>::allocate_shared(const _Alloc& __a, _Args&& ...__args) |
| 15 | { |
| 16 | shared_ptr<_Tp> __r; |
| 17 | return __r; |
| 18 | } |
Richard Smith | 6964b3f | 2012-09-07 02:06:42 +0000 | [diff] [blame] | 19 | |
| 20 | template<typename...Ts> struct outer { |
| 21 | template<Ts...Vs, template<Ts> class ...Cs> struct inner { |
| 22 | inner(Cs<Vs>...); |
| 23 | }; |
| 24 | }; |
| 25 | template struct outer<int, int>; |