Skip to content

BaseFab: simplify placementNew dispatch#5523

Open
WeiqunZhang wants to merge 1 commit into
AMReX-Codes:developmentfrom
WeiqunZhang:placement
Open

BaseFab: simplify placementNew dispatch#5523
WeiqunZhang wants to merge 1 commit into
AMReX-Codes:developmentfrom
WeiqunZhang:placement

Conversation

@WeiqunZhang

Copy link
Copy Markdown
Member

Replace the constrained placementNew overload set with a single if constexpr implementation. Skip construction for trivially default-constructible element types, where default initialization has no effect, and use the AMReX host/device loop for types with non-trivial default constructors.

Replace the constrained placementNew overload set with a single if constexpr
implementation. Skip construction for trivially default-constructible
element types, where default initialization has no effect, and use the AMReX
host/device loop for types with non-trivial default constructors.
@WeiqunZhang WeiqunZhang requested a review from atmyers June 27, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant