explicit auto_ptr(_Ty *_Ptr = 0) _THROW0()
: _Myptr(_Ptr)
{ // construct from object pointer
}
auto_ptr 내부인데
_Ty *_Ptr = 0 이게 상식적으로 가능한가??
_Ty는 타입이고
_Ptr은 동적할당된 주소를 받을 변수
template<class _Ty>
class auto_ptr
{ // wrap an object pointer to ensure destruction
public:
typedef auto_ptr<_Ty> _Myt;
typedef _Ty element_type;
explicit auto_ptr(_Ty *_Ptr = 0) _THROW0()
: _Myptr(_Ptr)
{ // construct from object pointer
}
디폴트 파라메터로 0일 경우 즉 무인자로 생성자 호출시 템플릿 타입으로 자동으로 동적할당해주는 것