llvm.org GIT mirror llvm / 3da7647
Add a trivial functor for use with unique_ptrs managing memory that needs to be freed rather than deleted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216790 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 6 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
529529
530530 #endif
531531
532 struct FreeDeleter {
533 void operator()(void* v) {
534 ::free(v);
535 }
536 };
537
532538 template
533539 struct pair_hash {
534540 size_t operator()(const std::pair &P) const {