---
title: NSBinarySearchingOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsbinarysearchingoptions
---

# NSBinarySearchingOptions

Options for searches and insertions using index(of:inSortedRange:options:usingComparator:).

## Declaration

```swift
struct NSBinarySearchingOptions
```

## Topics

### Constants

- [firstEqual](foundation/nsbinarysearchingoptions/firstequal.md)
- [lastEqual](foundation/nsbinarysearchingoptions/lastequal.md)
- [insertionIndex](foundation/nsbinarysearchingoptions/insertionindex.md)

### Initializers

- [init(rawValue:)](foundation/nsbinarysearchingoptions/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
