---
title: ClosedRange.Index
framework: swift
role: symbol
role_heading: Enumeration
path: swift/closedrange/index
---

# ClosedRange.Index

A type that represents a position in the collection.

## Declaration

```swift
@frozen enum Index
```

## Overview

Overview Valid indices consist of the position of every element and a “past the end” position that’s not valid for use as a subscript argument.

## Topics

### Enumeration Cases

- [ClosedRange.Index.inRange(_:)](swift/closedrange/index/inrange(_:).md)
- [ClosedRange.Index.pastEnd](swift/closedrange/index/pastend.md)

### Default Implementations

- [Comparable Implementations](swift/closedrange/index/comparable-implementations.md)
- [Equatable Implementations](swift/closedrange/index/equatable-implementations.md)
- [Hashable Implementations](swift/closedrange/index/hashable-implementations.md)

## Relationships

### Conforms To

- [Comparable](swift/comparable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
