Skip to content

Return the allocator by value from get_allocator - #526

Merged
philipcraig merged 1 commit into
mainfrom
get-allocator-by-value-507
Nov 28, 2026
Merged

philipcraig merged 1 commit into
mainfrom
get-allocator-by-value-507

Conversation

@philipcraig

Copy link
Copy Markdown
Collaborator

Closes #507.

get_allocator now returns allocator_type and is noexcept, as in DRAFT.md's synopsis and polymorphic.

Match the synopsis and polymorphic: get_allocator returns allocator_type
and is noexcept, so its result no longer changes when an assignment or
swap propagates the allocator.
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.90%. Comparing base (8421099) to head (b794cc3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #526   +/-   ##
=======================================
  Coverage   95.90%   95.90%           
=======================================
  Files          11       11           
  Lines         927      927           
  Branches       30       30           
=======================================
  Hits          889      889           
  Misses         28       28           
  Partials       10       10           
Flag Coverage Δ
consteval 89.65% <ø> (ø)
runtime 98.34% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@philipcraig
philipcraig marked this pull request as ready for review November 28, 2026 15:28
@philipcraig
philipcraig requested a review from jbcoe as a code owner November 28, 2026 15:28
@philipcraig
philipcraig requested a review from RyanJK5 November 28, 2026 15:28
@philipcraig
philipcraig merged commit 8cdc487 into main Nov 28, 2026
23 checks passed
@philipcraig
philipcraig deleted the get-allocator-by-value-507 branch November 28, 2026 17:34
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.

get_allocator returns a reference and is not noexcept

2 participants