Contents

init(keyOptions:valueOptions:capacity:)

Returns a map table, initialized with the given options.

Declaration

init(keyOptions: NSPointerFunctions.Options = [], valueOptions: NSPointerFunctions.Options = [], capacity initialCapacity: Int)

Parameters

  • keyOptions:

    A bit field that specifies the options for the keys in the map table. For possible values, see Nsmaptableoptions.

  • valueOptions:

    A bit field that specifies the options for the values in the map table. For possible values, see Nsmaptableoptions.

  • initialCapacity:

    The initial capacity of the map table. This is just a hint; the map table may subsequently grow and shrink as required.

Return Value

A map table initialized using the given options.

Discussion

values must contain entries at all the indexes specified in keys.

See Also

Related Documentation

  • Collections Programming Topics

Creating and Initializing a Map Table