---
title: "withContiguousStorageIfAvailable(_:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/pathlist/withcontiguousstorageifavailable(_:)"
---

# withContiguousStorageIfAvailable(_:)

Inherited from Sequence.withContiguousStorageIfAvailable(_:).

## Declaration

```swift
func withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<Self.Element>) throws -> R) rethrows -> R?
```
