---
title: "assign(repeating:count:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/unsafemutablepointer/assign(repeating:count:)"
---

# assign(repeating:count:)

## Declaration

```swift
func assign(repeating repeatedValue: Pointee, count: Int)
```
