unique_ptr custom deleter
1
2
3
4
5
6
7
8
9
10
11
12
#include <memory>
#include <iostream>
#include "cpp_unique_ptr_custom.h"
int main()
{
ModernWordCache myModernClass;
ModernWordCache::unique_legacylist_ptr pUniqueList(new LegacyList());
myModernClass.UpdateCache(std::move(pUniqueList));
}
Enter to Rename, Shift+Enter to Preview
1
#include <memory>
Enter to Rename, Shift+Enter to Preview