// This program demonstrates a unique_ptr 
#include <iostream>
#include <memory>
using namespace std; 

int main()
{
    // define a unique_ptr samrt pointer, pointing
    // to a dynamically allocated int 
    unique_ptr<int> ptr (new int);
    
    // assign 99 to the dynamically allocated int 
    *ptr = 99; 
    
    // display the value of the dynamically allocated int 
    cout << *ptr << endl;
    return 0;
}