7 /*----------------------------------------------------------------------*\
9 \*---------------------------------------------------------------------*/
11 /*--------------------------------------*\
13 \*-------------------------------------*/
16 class shared_array
: public std::shared_ptr
<T
>
19 shared_array(T
* pointer
) :
20 std::shared_ptr
<T
>(pointer
, std::default_delete
<T
[]>())
27 return this->get()[i
];
30 T
& operator[](int i
) const
32 return this->get()[i
];
38 /*----------------------------------------------------------------------*\
40 \*---------------------------------------------------------------------*/