added decorator functions (specifically for unique_ptr and shared_ptr)