---
title: "init(options:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nshashtable/init(options:)"
---

# init(options:)

Returns a hash table with given pointer functions options.

## Declaration

```swift
init(options: NSPointerFunctions.Options = [])
```

## Parameters

- `options`: A bit field that specifies the options for the elements in the hash table. For possible values, see doc://com.apple.foundation/documentation/Foundation/NSHashTableOptions.

## Return Value

Return Value A hash table with given pointer functions options.

## See Also

### Convenience Constructors

- [weakObjects()](foundation/nshashtable/weakobjects().md)
