template<class T> T* clonize( const T* obj ) {
      return obj == 0 ? 0 : new T( *obj );
}
オブジェクトをコピーする