---
title: "group::elementMaximumInGroup"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/group/elementmaximumingroup
---

# group::elementMaximumInGroup

Returns the maximum number of elements that can exist in the group.

## Declaration

```swift
int group::elementMaximumInGroup()
```

## Return Value

Return Value The maximum number of elements allocated for this group

## Discussion

Discussion Use this function to determine the fixed capacity of particles per group, which is useful for normalizing element indices or managing group resources. note:
