<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/group/elementMaximumInGroup",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "group::elementMaximumInGroup"
  },
  "title" : "group::elementMaximumInGroup"
}
-->

# group::elementMaximumInGroup

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

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

## Return Value

The maximum number of elements allocated for this group

## Discussion

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

> Visual: ![Graph](group__elementMaximumInGroup)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)