blob: 0f4f2a97095b56f443428551ce84e5c9837444ce [file] [log] [blame]
namespace std {
template <typename type>
class shared_ptr {
public:
shared_ptr();
shared_ptr(type *ptr);
shared_ptr(const shared_ptr<type> &t) {}
shared_ptr(shared_ptr<type> &&t) {}
~shared_ptr();
type &operator*() { return *ptr; }
type *operator->() { return ptr; }
type *release();
void reset();
void reset(type *pt);
shared_ptr &operator=(shared_ptr &&);
template <typename T>
shared_ptr &operator=(shared_ptr<T> &&);
private:
type *ptr;
};
} // namespace std