# `GSCFIndexToCFIndexMap enumerateIndexKeysAndValuesWithBlock:`

*Instance Method*

Since std::map always stores keys in sorted order, they will be enumerated in sorted order as well.

## Declaration

```swift
func enumerateIndexKeysAndValues(_ block: (@Sendable (CFIndex, CFIndex) -> Void)!)
```

```swift
func enumerateIndexKeysAndValues() async -> (CFIndex, CFIndex)
```

```objc
- (void) enumerateIndexKeysAndValuesWithBlock:(GSCFIndexToCFIndexMapEnumeratorBlock) block;
```

```python
enumerateIndexKeysAndValuesWithBlock_(block: GSCFIndexToCFIndexMapEnumeratorBlock)
```

