---
title: "store(in:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/cancellable/store(in:)-35vnt"
---

# store(in:)

Stores this cancellable instance in the specified collection.

## Declaration

```swift
func store<C>(in collection: inout C) where C : RangeReplaceableCollection, C.Element == AnyCancellable
```

## Parameters

- `collection`: The collection in which to store this doc://com.apple.Combine/documentation/Combine/Cancellable.

## See Also

### Storing instances

- [store(in:)](combine/cancellable/store(in:)-95sfl.md)
