Hi,
I am new to smart pointers so I want someone to clarify that the memory will be deleted after the program loses scope.
1 2 3 4
constchar* query = {"SELECT * FROM `USERS` WHERE `USER_ID` = 1;"};
auto rs = unique_ptr<Leaf::Records>(db->getRecords(query));
Leaf::Record* r = rs->getRecord(0);
In the database libary I wrote it uses the standard pointers. Now that I have made a unique pointer pointing to the record it should delete the memory once the scope is left right?