20 stream <<
"The deferenced value of uptr = " << *uptr <<
endl;
30 auto p1 = std::make_unique<int>(1);
62 stream <<
"unique_ptr p1 is no longer valid" <<
endl;
69 auto p1 = std::make_unique<int>(10);
82 auto p2 = std::make_unique<int>( *p1 );
84 stream <<
"the value of p2 after cloned: " << *p2 <<
endl;
void pass_unique_ptr_to_a_funcion_by_value()
void take_unique_ptr_by_value(std::unique_ptr< int > uptr)
void test_cloning_unique_ptr()
Stream output operators << are implemented.