NSFreeHashTable
指定したハッシュテーブルを解放します
void NSFreeHashTable (
NSHashTable * table );
解説
指定したハッシュテーブルを解放します。
返り値
引数
( NSHashTable * )table
フレームワーク
Foundation
クラス
NSFreeHashTable
Function
使用可能
10.0
参照
NSResetHashTable
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { void *ret; NSHashTable *hTable = NSCreateHashTable(NSNonOwnedPointerHashCallBacks, 10); NSHashInsert(hTable, @"aaa"); NSHashInsert(hTable, @"bbb"); NSHashInsert(hTable, @"ccc"); NSLog(@"%d",sizeof(hTable)); NSLog(NSStringFromHashTable(hTable)); NSLog(@"%d",sizeof(ret)); NSLog(@"%p",ret); ret = NSHashGet(hTable, @"bbb"); NSLog(@"%d",sizeof(ret)); NSLog(@"%p",ret); NSFreeHashTable(hTable); } @end