DEENESPTFRRUARHIKOZHNL

klasse ara::core::PolymorphicAllocator

[SWS_CORE_06540] Upstream: RS_AP_00130

template <class Tp = ara::core::Byte> class PolymorphicAllocator {...};

Implementation of std::pmr::polymorphic_allocator from [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

User GuideAI-GEGENEREERD

Beheert polymorfe geheugenallocatie voor objecten en containers via uitwisselbare geheugenbronnen.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 4f3088ca1f09 Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Beheert polymorfe geheugenallocatie voor objecten en containers via uitwisselbare geheugenbronnen.

De templateklasse kapselt de op geheugenbronnen gebaseerde dynamische allocatie in voor adaptieve applicaties en containers als een volledig uitzonderingsvrije implementatie van polymorfe allocatoren [SWS_CORE_06541]. Voor een flexibele besturing van de objectlevenscyclus delegeert de instantie alle geheugenverzoeken naar een uitwisselbare geheugenbron, waarbij mislukte allocaties deterministisch null-pointers retourneren in plaats van C++-exceptions [SWS_CORE_06547]. Als belangrijke functionele randvoorwaarde is reguliere copy assignment expliciet geblokkeerd, terwijl foutieve vrijgave-operaties tijdens runtime altijd stilzwijgend worden genegeerd.

Context

De templateklasse ara::core::PolymorphicAllocator realiseert in AUTOSAR Adaptive de interface voor toestandshoudende, polymorfe geheugenallocatie volgens het C++-standaardpatroon en definieert het onderliggende elementtype value_type [SWS_CORE_06572]. Deze fungeert als adapter tussen aanroepende componenten – zoals containers of applicatiestructuren – en een concrete geheugenbron. Via de methode resource() kan de pointer naar de gebruikte MemoryResource te allen tijde worden opgevraagd [SWS_CORE_06557]. Door deze inkapseling wordt het aanvragen van geheugen semantisch gescheiden van de concrete implementatie van het geheugenbeheer.

diag_context caller Aufrufer / Container allocator PolymorphicAllocator caller->allocator Allokationsaufruf resource MemoryResource allocator->resource Speicherdelegierung

Contextdiagram: Integratie van de allocator tussen aanroeper en geheugenbron. Bronnen: [SWS_CORE_06557], [SWS_CORE_06572].

Levenscyclus

Instanties van de allocator worden standaard geconstrueerd [SWS_CORE_06541] of met een pointer naar een specifieke MemoryResource [SWS_CORE_06542]. Omdat de allocator slechts naar de geheugenbron refereert, ligt de verantwoordelijkheid voor de levensduur daarvan vermoedelijk bij de aanroeper. Vraag Q-adde89798a03cf8b (open) Naast de reguliere copy constructor [SWS_CORE_06543] staat een conversieconstructor initialisatie toe vanuit allocatoren voor andere elementtypen U [SWS_CORE_06544].

Met betrekking tot eigendomsoverdrachten is de reguliere copy assignment operator verwijderd (=delete) [SWS_CORE_06545]. Daarentegen definieert AUTOSAR expliciet een move constructor [SWS_CORE_06546] en een standaard move assignment operator [SWS_CORE_00066]. Bij kopieerbewerkingen van containers genereert de methode select_on_container_copy_construction() een overeenkomstige allocator-instantie [SWS_CORE_06573].

Wat betreft concurrency zijn de standaard- en conversieconstructors evenals het opvragen van de geheugenbron gespecificeerd als thread-safe ([SWS_CORE_06541], [SWS_CORE_06542], [SWS_CORE_06544], [SWS_CORE_06557]). Move-operaties ([SWS_CORE_06546]), kopieerselecties ([SWS_CORE_06573]) en alle allocatie-, constructie- en deallocatie-operaties zijn daarentegen gedeclareerd als niet thread-safe.

Gebruikspad

Het reguliere verloop omvat de beschikbaarstelling van geheugen, de constructie van objecten en de latere vernietiging en vrijgave ervan:

  • Geheugenallocatie: Onbewerkt geheugen voor n objecten van het type Tp wordt aangevraagd via allocate() [SWS_CORE_06547]. Als alternatief zijn allocate_bytes() beschikbaar voor byte-nauwkeurige allocatie met uitlijning [SWS_CORE_06549] en de template allocate_object() voor getypeerde allocaties [SWS_CORE_06551].
  • Objectinitialisatie: De methode construct() maakt objecten aan in het eerder gealloceerde geheugengebied [SWS_CORE_06555]. Als gecombineerde operatie biedt new_object() allocatie en in-place-constructie in één aanroep [SWS_CORE_06553].
  • Destructie en vrijgave: Vernietiging vindt plaats via destroy() [SWS_CORE_06556], gevolgd door vrijgave via deallocate() [SWS_CORE_06548], deallocate_bytes() [SWS_CORE_06550] of deallocate_object() [SWS_CORE_06552]. Beide kunnen als alternatief worden gecombineerd met delete_object() [SWS_CORE_06554].
Verloop van allocatie, constructie, vernietiging en vrijgaveAufruferPolymorphicAllocatorMemoryResourceallocate(n)Speicher anfordernSpeicheradresseTp* (of nullptr)construct(p, args...)Objektkonstruktiondestroy(p)Objektdestruktiondeallocate(p, n)Speicher freigeben

Sequentiediagram: Typisch verloop van allocatie, constructie, vernietiging en vrijgave. Bronnen: [SWS_CORE_06547], [SWS_CORE_06548], [SWS_CORE_06555], [SWS_CORE_06556].

Foutscenario's

De klasse verschilt op het gebied van essentiële foutafhandelingsmechanismen van de ISO-C++-standaard om te voldoen aan strenge eisen voor uitzonderingsvrije systemen:

Deze handleiding is gebaseerd op de specificatie van ara::core::PolymorphicAllocator uit AUTOSAR R25-11 en is geautomatiseerd opgesteld.

Ledenkaart

Klassendiagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__PolymorphicAllocator970 PolymorphicAllocator + PolymorphicAllocator() + operator=() + allocate() + allocate_bytes() + allocate_object() + construct() + deallocate() + deallocate_bytes() + deallocate_object() + delete_object() + destroy() + new_object() + resource() + select_on_container_copy_construction()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

≙ [mem.poly.allocator.class]

Overloads PolymorphicAllocator 5
PolymorphicAllocator () noexcept; SWS_CORE_06541
PolymorphicAllocator (MemoryResource *r) noexcept; SWS_CORE_06542
PolymorphicAllocator (const PolymorphicAllocator &other) noexcept=default; SWS_CORE_06543
template <class U> PolymorphicAllocator (const PolymorphicAllocator< U > &other) noexcept; SWS_CORE_06544
PolymorphicAllocator (PolymorphicAllocator &&other) noexcept; SWS_CORE_06546

Methoden

allocate functie

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception ≙ [mem.poly.allocator.class]

[[nodiscard]] Tp * allocate (std::size_t n) noexcept;

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr ≙ [mem.poly.allocator.class]

[[nodiscard]] void * allocate_bytes (std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr ≙ [mem.poly.allocator.class]

template <class T> [[nodiscard]] T * allocate_object (std::size_t n=1) noexcept;
construct functie

except for the following deviations: 1. Function is conditionally noexcept ≙ [mem.poly.allocator.class]

template <class T, class... Args> void construct (T *p, Args &&... args) noexcept(std::is_nothrow_ constructible< T, Args... >::value);
deallocate functie

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

void deallocate (Tp *p, std::size_t n) noexcept;

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

void deallocate_bytes (void *p, std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

except for the following deviations: 1. Function is nullptr 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

template <class T> void deallocate_object (T *p, std::size_t n=1) noexcept;

except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

template <class T> void delete_object (T *p) noexcept(std::is_nothrow_destructible< T >::value);
destroy functie

except for the following deviations: 1. Function is conditionally noexcept ≙ [mem.poly.allocator.class]

template <class T> void destroy (T *p) noexcept(std::is_nothrow_destructible< T >::value);
new_object functie

except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception ≙ [mem.poly.allocator.class]

template <class T, class... CtorArgs> [[nodiscard]] T * new_object (CtorArgs &&... ctor_args) noexcept(std::is_nothrow_constructible< T, CtorArgs... >::value);
resource functie

≙ [mem.poly.allocator.class]

MemoryResource * resource () const noexcept;

except for the following deviations: 1. The function is noexcept ≙ [mem.poly.allocator.class]

PolymorphicAllocator select_on_container_copy_construction () const noexcept;

Operatoren

operator= functie 2

[AUTOSAR defined] not present in ISO-14882. Move assignment operator

Overloads = 2
PolymorphicAllocator & operator= (PolymorphicAllocator &&other) noexcept=default; SWS_CORE_00066

Type-aliassen

value_type typealias

≙ [mem.poly.allocator.class]

using value_type = Tp;

Documentatie van de methoden

functie PolymorphicAllocator [SWS_CORE_06541]

PolymorphicAllocator () noexcept;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06541
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06541@rel:R25-11#f4d4a67b
Content hash
f4d4a67b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06541
Status: valid/unmigrated Version: rel:R25-11#195a35ec Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06541@rel:R25-11#195a35ec
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#7e6fd9e52026-09-30
  • R23-11rel:R23-11#1465b8862026-10-14
  • R24-11rel:R24-11#a1bf01392026-10-14
  • R25-11rel:R25-11#195a35ec2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie PolymorphicAllocator [SWS_CORE_06542]

PolymorphicAllocator (MemoryResource *r) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06542
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06542@rel:R25-11#9a6ec5c8
Content hash
9a6ec5c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06542
Status: valid/unmigrated Version: rel:R25-11#8bd93278 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06542@rel:R25-11#8bd93278
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8ff7601b2026-09-30
  • R23-11rel:R23-11#d5a7d6172026-10-14
  • R24-11rel:R24-11#728611b82026-10-14
  • R25-11rel:R25-11#8bd932782026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie PolymorphicAllocator [SWS_CORE_06543]

PolymorphicAllocator (const PolymorphicAllocator &other) noexcept=default;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06543
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06543@rel:R25-11#970310bf
Content hash
970310bf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06543
Status: valid/unmigrated Version: rel:R25-11#5d62e6ca Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06543@rel:R25-11#5d62e6ca
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#50677d202026-09-30
  • R23-11rel:R23-11#fc99e5522026-10-14
  • R24-11rel:R24-11#7f7cdd4b2026-10-14
  • R25-11rel:R25-11#5d62e6ca2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie PolymorphicAllocator [SWS_CORE_06544]

template <class U> PolymorphicAllocator (const PolymorphicAllocator< U > &other) noexcept;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06544
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06544@rel:R25-11#7de1b9cf
Content hash
7de1b9cf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06544
Status: valid/unmigrated Version: rel:R25-11#539ac7f5 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06544@rel:R25-11#539ac7f5
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1facdd412026-09-30
  • R23-11rel:R23-11#a331d77c2026-10-14
  • R24-11rel:R24-11#745d118b2026-10-14
  • R25-11rel:R25-11#539ac7f52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie PolymorphicAllocator [SWS_CORE_06546] Upstream: RS_AP_00145

PolymorphicAllocator (PolymorphicAllocator &&other) noexcept;

[AUTOSAR defined] not present in ISO-14882. Move constructor

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherother PolymorphicAllocator to move from

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06546
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06546@rel:R25-11#c8123cd0
Content hash
c8123cd0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06546
Status: valid/unmigrated Version: rel:R25-11#8cbb6f43 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06546@rel:R25-11#8cbb6f43
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#cbffc4452026-09-30
  • R23-11rel:R23-11#76904a592026-10-14
  • R24-11rel:R24-11#fb6303702026-10-14
  • R25-11rel:R25-11#8cbb6f432026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie allocate [SWS_CORE_06547]

[[nodiscard]] Tp * allocate (std::size_t n) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: e24ff27c5b25 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De memberfunctie allocate van de klasse ara::core::PolymorphicAllocator dient voor het synchroon aanvragen van ongeïnitialiseerd geheugen voor n objecten van het type Tp [SWS_CORE_06547]. Zij oriënteert zich op de functionaliteit van [mem.poly.allocator.class], maar wijkt door de declaratie als noexcept en het attribuut [[nodiscard]] doelgericht af van de C++-standaard [SWS_CORE_06547].

In geval van een fout werpt allocate geen exceptie zoals std::bad_alloc, maar geeft in plaats daarvan een nullptr terug [SWS_CORE_06547]. Vanwege [[nodiscard]] moet de aanroeper de retourwaarde expliciet in ontvangst nemen en controleren op nullptr alvorens het geheugenbereik te gebruiken [SWS_CORE_06547]. Wat betreft de gelijktijdigheid is de functie geclassificeerd als exception-safe, maar geldt als niet-thread-safe (not thread-safe) [SWS_CORE_06547]. Interpretatie: een synchrone aanroep via dezelfde allocator vanuit verschillende threads zou daarom vermoedelijk een externe beveiliging door de aanroeper vereisen. Vraag Q-b00116faadf930fe (open)

Het fouttolerante gedrag zonder excepties correspondeert rechtstreeks met de interface ara::core::MemoryResource::allocate [SWS_CORE_06503], die eveneens is gedefinieerd als noexcept en in geval van een fout nullptr retourneert. Ook vooraf gedefinieerde instanties zoals NullMemoryResource [SWS_CORE_06563] hanteren dit principe en leveren bij allocatie-aanroepen consequent nullptr op. Op een overkoepelend niveau interageert dit mechanisme met containers zoals ara::core::Vector [SWS_CORE_01315], waarvan de toewijzingsoperatoren zijn afgestemd op dergelijke allocatie-eigenschappen.

Deze tekst is automatisch gegenereerd. Toonaangevend is de AUTOSAR-specificatie.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
Tp *• If successful: As per corresponding usage in [mem.poly.allocator.class] • If unsuccessful: the returned pointer shall be nullptr

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06547
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06547@rel:R25-11#b2032e59
Content hash
b2032e59
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06547
Status: valid/unmigrated Version: rel:R25-11#c37fff24 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06547@rel:R25-11#c37fff24
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1a6944692026-09-30
  • R23-11rel:R23-11#eca29eb82026-10-14
  • R24-11rel:R24-11#ae9311ae2026-10-14
  • R25-11rel:R25-11#c37fff242026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie allocate_bytes [SWS_CORE_06549]

[[nodiscard]] void * allocate_bytes (std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: ed713f104c1d Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De elementfunctie allocate_bytes van de klasse ara::core::PolymorphicAllocator reserveert ongeformatteerd geheugen ter omvang van nbytes met de voorgeschreven alignment alignment [SWS_CORE_06549]. De standaardwaarde voor de alignment komt overeen met alignof(std::max_align_t) [SWS_CORE_06549]. De functie wordt via de header ara/core/memory_resource.h ingesloten en synchroon uitgevoerd [SWS_CORE_06549].

Foutafhandeling en semantiek

In tegenstelling tot het standaardgedrag volgens [mem.poly.allocator.class] vertoont de implementatie twee afwijkingen [SWS_CORE_06549]:

  • De functie is gedeclareerd als noexcept en werpt geen uitzonderingen [SWS_CORE_06549].
  • Mislukt de allocatie, dan retourneert de functie nullptr in plaats van een uitzondering te genereren [SWS_CORE_06549].

Op grond van het attribuut [[nodiscard]] moet de retourwaarde door de aanroeper worden geëvalueerd, in het bijzonder door een controle op nullptr voorafgaand aan toegang tot het geheugengebied [SWS_CORE_06549].

Gelijktijdigheid en beperkingen

Wat betreft thread-safety is de methode gespecificeerd als not thread-safe [SWS_CORE_06549]. Parallelle aanroepen op dezelfde instantie vereisen daarom vermoedelijk een externe synchronisatie [SWS_CORE_06549]. Vraag Q-85c74d55563cae38 (open) Met betrekking tot uitzonderingsveiligheid geldt de bewerking als exception safe [SWS_CORE_06549].

Deze tekst is gegenereerd door een AI op basis van de specificatie.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06549
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06549@rel:R25-11#4f1794ba
Content hash
4f1794ba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06549
Status: valid/unmigrated Version: rel:R25-11#126a0b29 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06549@rel:R25-11#126a0b29
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#d65ae27d2026-09-30
  • R23-11rel:R23-11#d9ed47762026-10-14
  • R24-11rel:R24-11#9b3f93072026-10-14
  • R25-11rel:R25-11#126a0b292026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie allocate_object [SWS_CORE_06551]

template <class T> [[nodiscard]] T * allocate_object (std::size_t n=1) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: c04a4d5d02ff Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De template-elementfunctie allocate_object maakt deel uit van de klasse ara::core::PolymorphicAllocator en wordt beschikbaar gesteld via het headerbestand #include "ara/core/memory_resource.h" [SWS_CORE_06551]. Ze allokeert synchroon geheugen voor n objecten van het type T, waarbij de parameter n standaard van de waarde 1 is voorzien [SWS_CORE_06551]. Het compilerattribuut [[nodiscard]] verplicht aanroepers ertoe de geretourneerde getypeerde pointer T* niet te negeren.

Foutafhandeling

De specificatie definieert twee expliciete afwijkingen van de standaard [mem.poly.allocator.class] [SWS_CORE_06551]:

  • Geen exceptions: De functie is gedeclareerd als noexcept en gespecificeerd als uitzonderingsveilig (exception safe) [SWS_CORE_06551].
  • Nullpointer bij fouten: Mislukt de geheugenallocatie, dan wordt er geen exception geworpen, maar dwingend nullptr geretourneerd [SWS_CORE_06551].

De aanroeper moet de geleverde pointer daarom onmiddellijk vóór verder gebruik op nullptr controleren.

Gelijktijdigheid en beperkingen

De bewerking is gespecificeerd als niet thread-safe (not thread-safe) [SWS_CORE_06551]. Bij gelijktijdig gebruik van dezelfde allocator-instantie is vermoedelijk een externe synchronisatie vereist om dataraces te vermijden. Bovendien reserveert de functie zuiver geheugen (interpretatie: de constructie van objecten in het gereserveerde geheugen is de verantwoordelijkheid van achterliggende mechanismen). Vraag Q-c41df2caaeb4c503 (open)

Deze tekst is opgesteld door een AI en is gebaseerd op de specificatie van AUTOSAR R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06551
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06551@rel:R25-11#c14fa4a4
Content hash
c14fa4a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06551
Status: valid/unmigrated Version: rel:R25-11#e1e4da70 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06551@rel:R25-11#e1e4da70
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#3b58128a2026-09-30
  • R23-11rel:R23-11#68fdb6af2026-10-14
  • R24-11rel:R24-11#e6cdc1b02026-10-14
  • R25-11rel:R25-11#e1e4da702026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie construct [SWS_CORE_06555]

template <class T, class... Args> void construct (T *p, Args &&... args) noexcept(std::is_nothrow_ constructible< T, Args... >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: b824902bd6dd Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De templatefunctie construct van de klasse ara::core::PolymorphicAllocator ([SWS_CORE_06555]) dient voor het synchroon aanmaken van een object van het type T op het meegegeven geheugenadres p onder doorsturen van de argumenten args.... Ze is gedefinieerd via de header ara/core/memory_resource.h en volgt in hoofdzaak de voorschriften uit [mem.poly.allocator.class].

Een expliciete afwijking van de C++-standaard betreft de uitzonderingsafhandeling: volgens [SWS_CORE_06555] is de functie voorwaardelijk gedeclareerd als noexcept, afhankelijk van het feit of std::is_nothrow_constructible<T, Args...>::value van toepassing is. De specificatie kent haar daarmee het attribuut conditionally exception safe toe. Interpretatie: Voor zover T niet uitzonderingsvrij construeerbaar is, kunnen eventuele constructor-uitzonderingen vermoedelijk ongehinderd naar de aanroeper worden gepropageerd, aangezien er geen interne foutcodes of afzonderlijke opvangmechanismen zijn gedefinieerd. Vraag Q-ad77510f396e59ae (open)

Wat betreft gelijktijdigheid en randvoorwaarden is construct gespecificeerd als niet thread-safe (not thread-safe) ([SWS_CORE_06555]). Bij parallelle toegangen tot dezelfde allocator-instantie of hetzelfde geheugengebied is externe synchronisatie in de aanroepcontext daarom dwingend vereist.

Het architectuurpatroon van een typeafhankelijke noexcept-declaratie komt overeen met de conventies in ara::core, zoals deze onder andere ook bij de constructors van ara::core::Result worden toegepast ([SWS_CORE_00725], [SWS_CORE_00726]).

Deze gebruiksinstructie is geautomatiseerd gegenereerd en steunt uitsluitend op de specificatie van AUTOSAR Adaptive Release R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06555
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06555@rel:R25-11#8745d0b4
Content hash
8745d0b4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06555
Status: valid/unmigrated Version: rel:R25-11#0973fb97 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06555@rel:R25-11#0973fb97
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#797687e32026-09-30
  • R23-11rel:R23-11#62b249762026-10-14
  • R24-11rel:R24-11#44e873a92026-10-14
  • R25-11rel:R25-11#0973fb972026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie deallocate [SWS_CORE_06548]

void deallocate (Tp *p, std::size_t n) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 2c2725501203 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De lidfunctie deallocate van de klasse ara::core::PolymorphicAllocator geeft eerder gealloceerd geheugen voor n objecten van het type Tp vanaf het adres p vrij [SWS_CORE_06548]. De declaratie vindt plaats via de header ara/core/memory_resource.h [SWS_CORE_06548]. De functie volgt in principe de semantiek van de standaard-C++-allocator conform [mem.poly.allocator.class], maar vertoont twee specifieke afwijkingen [SWS_CORE_06548].

Foutafhandeling en exception-veiligheid

Als wezenlijke afwijking is de bewerking gedeclareerd als noexcept en gespecificeerd als uitzonderingsveilig (exception safe) [SWS_CORE_06548]. Mislukt de vrijgave van het geheugen, dan worden optredende fouten geruisloos genegeerd (silently ignored), zodat er noch excepties worden geworpen noch expliciete foutcodes worden teruggemeld [SWS_CORE_06548].

Gelijktijdigheid en wisselwerking

Wat betreft de aanroepcontext is deallocate geclassificeerd als niet-thread-safe (not thread-safe) [SWS_CORE_06548]. In het geheugenbeheerconcept correspondeert deze functie met de methode deallocate van de onderliggende basisklasse ara::core::MemoryResource [SWS_CORE_06504], waarvoor dezelfde afwijkingen met betrekking tot noexcept en geruisloze foutafhandeling gelden.

Deze gebruiksinstructie is geautomatiseerd gegenereerd en is uitsluitend gebaseerd op de specificatie-eisen van AUTOSAR Adaptive.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06548
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06548@rel:R25-11#9f5f0ca6
Content hash
9f5f0ca6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06548
Status: valid/unmigrated Version: rel:R25-11#d1d0b454 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06548@rel:R25-11#d1d0b454
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#824b5be32026-09-30
  • R23-11rel:R23-11#af3c4e332026-10-14
  • R24-11rel:R24-11#92f9b2332026-10-14
  • R25-11rel:R25-11#d1d0b4542026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie deallocate_bytes [SWS_CORE_06550]

void deallocate_bytes (void *p, std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: faf22ebd97f2 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De functie deallocate_bytes van de klasse ara::core::PolymorphicAllocator dient voor het vrijgeven van een eerder gealloceerd geheugengebied volgens [SWS_CORE_06550]. Ze wordt beschikbaar gesteld via de header ara/core/memory_resource.h en richt zich in principe naar de semantiek uit [mem.poly.allocator.class].

De aanroep vindt synchroon plaats en verwacht volgens [SWS_CORE_06550] de volgende parameters:

  • p: Pointer (void*) naar het vrij te geven geheugengebied.
  • nbytes: Grootte van het vrij te geven geheugen in bytes (std::size_t).
  • alignment: Gewenste alignment (standaardwaarde alignof(std::max_align_t)).

Wat betreft het foutgedrag vertoont de implementatie specifieke afwijkingen ten opzichte van de standaard: de functie is gedeclareerd als noexcept en geldt als uitzonderingsveilig (exception safe). Mislukt de vrijgave, dan worden optredende fouten stilzwijgend genegeerd (silently ignored) volgens [SWS_CORE_06550]. Er worden geen exceptions geworpen en er worden geen retourwaarden verstrekt.

Met betrekking tot gelijktijdigheid en beperkingen is de functie expliciet gespecificeerd als niet thread-safe (not thread-safe) [SWS_CORE_06550]. Een gelijktijdige toegang tot dezelfde allocator-instantie zonder externe synchronisatie leidt daarom vermoedelijk tot ongedefinieerd gedrag. Vraag Q-33c80e3bb50ed64f (open)

Deze gebruiksinstructie is geautomatiseerd op basis van release R25-11 aangemaakt.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06550
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06550@rel:R25-11#c77eca73
Content hash
c77eca73
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06550
Status: valid/unmigrated Version: rel:R25-11#7305c652 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06550@rel:R25-11#7305c652
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b90edcee2026-09-30
  • R23-11rel:R23-11#9a13c45b2026-10-14
  • R24-11rel:R24-11#eeb59aac2026-10-14
  • R25-11rel:R25-11#7305c6522026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie deallocate_object [SWS_CORE_06552]

template <class T> void deallocate_object (T *p, std::size_t n=1) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is nullptr 2. If unsuccessful: errors will be silently ignored

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: d1e41bdb2142 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De templatefunctie deallocate_object van de klasse ara::core::PolymorphicAllocator dient voor het vrijgeven van eerder gereserveerd objectgeheugen [SWS_CORE_06552]. Ze richt zich naar het overeenkomstige C++-standaardgebruik volgens [mem.poly.allocator.class], maar vertoont specifieke afwijkingen [SWS_CORE_06552].

Wat betreft parameters en aanroepcontext gelden volgens [SWS_CORE_06552] de volgende eigenschappen:

  • Signatuur: template <class T> void deallocate_object (T *p, std::size_t n=1) noexcept; [SWS_CORE_06552].
  • Header: De functie is beschikbaar via #include "ara/core/memory_resource.h" [SWS_CORE_06552].
  • Retourwaarde: De bewerking levert geen retourwaarde op (void) [SWS_CORE_06552].
  • Nullpointer-gedrag: Als expliciete afwijking is gespecificeerd dat de functie bij overdracht van nullptr ingrijpt resp. nullpointers ondersteunt (“Function is nullptr”) [SWS_CORE_06552].

Met betrekking tot de foutafhandeling is de functie gedeclareerd als noexcept en geldt ze als uitzonderingsveilig (exception safe) [SWS_CORE_06552]. Mislukt een deallocatie, dan worden optredende fouten stilzwijgend genegeerd (“errors will be silently ignored”), zodat er geen uitzonderingen naar buiten worden gepropageerd [SWS_CORE_06552].

Als wezenlijke beperking is deallocate_object geclassificeerd als niet thread-safe (not thread-safe) [SWS_CORE_06552]. Bij parallelle toegangen tot dezelfde allocator-instantie vanuit meerdere threads moeten aanroepen daarom worden beveiligd met externe synchronisatiemechanismen.

Deze tekst is opgesteld door een AI en baseert zich uitsluitend op de specificaties van release R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06552
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06552@rel:R25-11#527db8c2
Content hash
527db8c2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06552
Status: valid/unmigrated Version: rel:R25-11#8e127a90 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06552@rel:R25-11#8e127a90
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#97b0add92026-09-30
  • R23-11rel:R23-11#0e144f892026-10-14
  • R24-11rel:R24-11#30aa2ab62026-10-14
  • R25-11rel:R25-11#8e127a902026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie delete_object [SWS_CORE_06554]

template <class T> void delete_object (T *p) noexcept(std::is_nothrow_destructible< T >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: errors will be silently ignored

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: c42857d5d063 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De elementfunctie delete_object van de klasse ara::core::PolymorphicAllocator dient volgens [SWS_CORE_06554] voor de vernietiging en vrijgave van een object van het type T, waarnaar de meegegeven pointer p verwijst. De functie wordt beschikbaar gesteld via het headerbestand #include "ara/core/memory_resource.h" en volgt het gedrag uit [mem.poly.allocator.class] met specifieke afwijkingen.

Wat betreft de aanroepcontext en de semantiek gelden de volgende eigenschappen:

  • Retourwaarde en uitzonderingen: De functie heeft geen retourwaarde (void). Ze is voorwaardelijk uitzonderingsveilig (conditionally noexcept) met de specificatie noexcept(std::is_nothrow_destructible<T>::value), werpt dus geen uitzonderingen mits de destructor van T als niet-werpend is gedeclareerd [SWS_CORE_06554].
  • Foutafhandeling: Mislukt de bewerking, dan worden optredende fouten stilzwijgend genegeerd (errors will be silently ignored) [SWS_CORE_06554]. Interpretatie: Aanroepers ontvangen in geval van een fout zodoende noch een foutmelding noch een foutcode of een exception. Vraag Q-9393b0f68a055e4b (open)
  • Thread-safety: De bewerking is gespecificeerd als niet thread-safe (not thread-safe) [SWS_CORE_06554]. Bij gelijktijdig gebruik van dezelfde allocator over meerdere threads heen berust de synchronisatie bij de aanroeper.

Deze tekst is gegenereerd door een AI op basis van de specificatie R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06554
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06554@rel:R25-11#75511232
Content hash
75511232
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06554
Status: valid/unmigrated Version: rel:R25-11#9b4d40a0 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06554@rel:R25-11#9b4d40a0
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#052ca7492026-09-30
  • R23-11rel:R23-11#3c9cbc572026-10-14
  • R24-11rel:R24-11#d8a2d49d2026-10-14
  • R25-11rel:R25-11#9b4d40a02026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie destroy [SWS_CORE_06556]

template <class T> void destroy (T *p) noexcept(std::is_nothrow_destructible< T >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: d8b5334c8292 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De template-elementfunctie destroy van de klasse ara::core::PolymorphicAllocator ([SWS_CORE_06556]) dient voor het destrueren van een object van het type T, waarnaar de pointer p verwijst. De functie is gedeclareerd in de header ara/core/memory_resource.h en volgt in principe het gestandaardiseerde gedrag uit [mem.poly.allocator.class] ([SWS_CORE_06556]). De methode-aanroep levert geen retourwaarde op en wordt synchroon uitgevoerd in de context van de aanroepende thread. Interpretatie: Hierbij wordt vermoedelijk voorondersteld dat p verwijst naar een geldig, eerder geïnstantieerd object. Vraag Q-a4faf7034eb683dd (open)

Foutafhandeling en exception-veiligheid

Wat betreft de foutafhandeling is de functie geclassificeerd als voorwaardelijk uitzonderingsveilig (conditionally exception safe) ([SWS_CORE_06556]). Als specifieke afwijking van de standaardeis [mem.poly.allocator.class] is destroy voorwaardelijk gedeclareerd met noexcept(std::is_nothrow_destructible<T>::value) ([SWS_CORE_06556]). Mits de destructor van het meegegeven type T geen uitzonderingen werpt, geldt de uitzonderingsvrijheid voor de gehele aanroep; anders kunnen uit de destructor resulterende exceptions ontsnappen.

Gelijktijdigheid en beperkingen

Met betrekking tot het gelijktijdigheidsgedrag is destroy gespecificeerd als niet thread-safe (not thread-safe) ([SWS_CORE_06556]). Wanneer meerdere threads tegelijkertijd toegang hebben tot dezelfde instantie van ara::core::PolymorphicAllocator of tot het te vernietigen object, moeten geschikte externe synchronisatiemechanismen worden ingesteld.

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie van AUTOSAR Adaptive Release R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06556
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06556@rel:R25-11#e6bb7942
Content hash
e6bb7942
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06556
Status: valid/unmigrated Version: rel:R25-11#abadf693 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06556@rel:R25-11#abadf693
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b20f3b522026-09-30
  • R23-11rel:R23-11#4cffca7a2026-10-14
  • R24-11rel:R24-11#c0cdac192026-10-14
  • R25-11rel:R25-11#abadf6932026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie new_object [SWS_CORE_06553]

template <class T, class... CtorArgs> [[nodiscard]] T * new_object (CtorArgs &&... ctor_args) noexcept(std::is_nothrow_constructible< T, CtorArgs... >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: d4720bb5fd75 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De template-elementfunctie new_object van de klasse ara::core::PolymorphicAllocator (gedefinieerd in #include "ara/core/memory_resource.h") allokeert synchroon geheugen en construeert een object van het type T met de meegegeven constructorargumenten ctor_args [SWS_CORE_06553].

Het gebruik is onderworpen aan de volgende bepalingen en afwijkingen van de standaard [mem.poly.allocator.class] [SWS_CORE_06553]:

  • Aanroep en retourwaarde: Bij succesvolle objectcreatie wordt een getypeerde pointer T* naar de nieuwe instantie geretourneerd. Het attribuut [[nodiscard]] verplicht aanroepers ertoe de retourwaarde te evalueren.
  • Foutafhandeling: In geval van mislukking wordt in afwijking van [mem.poly.allocator.class] geen exception gegenereerd, maar nullptr geretourneerd. De aanroeper moet de resulterende pointer daarom vóór toegang dwingend controleren op nullptr.
  • Uitzonderingsveiligheid: De functie is gespecificeerd als voorwaardelijk uitzonderingsveilig (conditionally exception safe). Ze is dan en slechts dan noexcept als de objectcreatie zelf gegarandeerd geen uitzondering werpt (noexcept(std::is_nothrow_constructible<T, CtorArgs...>::value)).
  • Gelijktijdigheid: De functie is gedeclareerd als niet thread-safe (not thread-safe). Interpretatie: Bij gelijktijdige toegang tot dezelfde instantie van ara::core::PolymorphicAllocator is de aanroeper vermoedelijk verantwoordelijk voor een geschikte externe synchronisatie. Vraag Q-3d0ecfe34187c91e (open)

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van AUTOSAR R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
T*• If successful: As per corresponding usage in [mem.poly.allocator.class] • If unsuccessful: the returned pointer shall be nullptr

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06553
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06553@rel:R25-11#d46776ae
Content hash
d46776ae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06553
Status: valid/unmigrated Version: rel:R25-11#a6ad2786 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06553@rel:R25-11#a6ad2786
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#d2723bd62026-09-30
  • R23-11rel:R23-11#914b6df22026-10-14
  • R24-11rel:R24-11#700266922026-10-14
  • R25-11rel:R25-11#a6ad27862026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie operator= [SWS_CORE_00066] Upstream: RS_AP_00145

PolymorphicAllocator & operator= (PolymorphicAllocator &&other) noexcept=default;

[AUTOSAR defined] not present in ISO-14882. Move assignment operator

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherother PolymorphicAllocator to move from

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_00066
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00066@rel:R25-11#d884fe2f
Content hash
d884fe2f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00066
Status: valid/unmigrated Version: rel:R25-11#b0c562e4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00066@rel:R25-11#b0c562e4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9ab9307f2026-09-30
  • R24-11rel:R24-11#49e75ee42026-10-14
  • R25-11rel:R25-11#b0c562e42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie operator= [SWS_CORE_06545]

PolymorphicAllocator & operator= (const PolymorphicAllocator &)=delete;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06545
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06545@rel:R25-11#63f68975
Content hash
63f68975
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06545
Status: valid/unmigrated Version: rel:R25-11#ebba2fe5 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06545@rel:R25-11#ebba2fe5
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#6662d26d2026-09-30
  • R23-11rel:R23-11#19b7dc922026-10-14
  • R24-11rel:R24-11#9e9fa6da2026-10-14
  • R25-11rel:R25-11#ebba2fe52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie resource [SWS_CORE_06557]

MemoryResource * resource () const noexcept;

As per corresponding usage in [mem.poly.allocator.class]

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 90f4d7f53a57 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De methode resource is een constante elementfunctie van de klasse ara::core::PolymorphicAllocator uit het headerbestand #include "ara/core/memory_resource.h" [SWS_CORE_06557]. Ze dient volgens de specificatiereferentie naar [mem.poly.allocator.class] voor het synchroon opvragen van de toegewezen geheugenresource [SWS_CORE_06557].

Gebruik en signatuur

De functiesignatuur luidt MemoryResource * resource () const noexcept; [SWS_CORE_06557]. De aanroep vindt parameterloos en synchroon plaats op een instantie van ara::core::PolymorphicAllocator. Als retourwaarde levert de functie een pointer van het type MemoryResource* [SWS_CORE_06557] op. Interpretatie: De geretourneerde pointer verwijst vermoedelijk direct naar de concrete geheugenresource die de allocator voor geheugenbewerkingen gebruikt. Vraag Q-392683a38a4e490b (open)

Foutafhandeling en gelijktijdigheid

  • Uitzonderingsveiligheid: De functie is gedeclareerd als noexcept en ingedeeld als exception safe [SWS_CORE_06557]. Ze werpt geen exceptions en er zijn geen specifieke foutcodes gedefinieerd.
  • Thread-safety: De specificatie merkt de methode expliciet aan als thread-safe [SWS_CORE_06557]. Door de kwalificatie als const is de gelijktijdige leestoegang over meerdere threads heen veilig.

Samenspel

In de module core stelt resource de interface beschikbaar om de door ara::core::PolymorphicAllocator ingekapselde MemoryResource op te vragen en de bewerkingen ervan aan te spreken [SWS_CORE_06557].

Deze gebruiksinstructie is gegenereerd door een AI op basis van de specificatie AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06557
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06557@rel:R25-11#2afe1e5f
Content hash
2afe1e5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06557
Status: valid/unmigrated Version: rel:R25-11#95a9a731 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06557@rel:R25-11#95a9a731
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#03dbf6b12026-09-30
  • R23-11rel:R23-11#071c0a122026-10-14
  • R24-11rel:R24-11#4d44fc3f2026-10-14
  • R25-11rel:R25-11#95a9a7312026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie select_on_container_copy_construction [SWS_CORE_06573]

PolymorphicAllocator select_on_container_copy_construction () const noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: c103d893236c Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De elementfunctie select_on_container_copy_construction behoort tot de scope van de klasse ara::core::PolymorphicAllocator en wordt gedeclareerd via het headerbestand #include "ara/core/memory_resource.h" ([SWS_CORE_06573]). Ze wordt synchroon aangeroepen om bij de kopieerconstructie van een container een nieuwe instantie van PolymorphicAllocator aan te maken ([SWS_CORE_06573]). Het functionele gedrag volgt daarbij de voorschriften van [mem.poly.allocator.class] ([SWS_CORE_06573]). Interpretatie: De resulterende allocator is vermoedelijk standaard geconstrueerd en valt zodoende terug op de standaard geheugenresource, in plaats van de geheugenresource van de broncontainer dwingend te kopiëren. Vraag Q-134ed967dc22e133 (open)

Foutafhandeling en exception-veiligheid

Een centrale afwijking van de algemene C++-specificatie bestaat erin dat de functie in AUTOSAR expliciet is gedeclareerd als noexcept ([SWS_CORE_06573]). De uitvoering is gedefinieerd als uitzonderingsveilig (exception safe) ([SWS_CORE_06573]). Specifieke foutcodes, retourwaarden ter foutindicatie of meldingen aan DET of DEM zijn voor deze interface niet voorzien, aangezien de aanroep gegarandeerd foutloos termineert.

Gelijktijdigheid en beperkingen

Volgens de specificatie is de functie geclassificeerd als not thread-safe ([SWS_CORE_06573]). Dit betekent dat gelijktijdige aanroepen op dezelfde PolymorphicAllocator-instantie vanuit meerdere threads zonder externe synchronisatie tot dataraces kunnen leiden. Voorafgaand aan het kopiëren van een container in gelijktijdige omgevingen moet de toegang tot het allocator-object door de gebruiker worden beschermd.

Deze gebruiksinstructie is geautomatiseerd aangemaakt aan de hand van de AUTOSAR-specificatie voor release R25-11.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06573
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06573@rel:R25-11#21df9cc6
Content hash
21df9cc6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06573
Status: valid/unmigrated Version: rel:R25-11#23e4ce94 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06573@rel:R25-11#23e4ce94
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f78e279c2026-09-30
  • R24-11rel:R24-11#70871b2b2026-10-14
  • R25-11rel:R25-11#23e4ce942026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

Documentatie van de typealiassen

typealias value_type [SWS_CORE_06572]

using value_type = Tp;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Symbolvalue_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06572
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06572@rel:R25-11#a5d9f1f2
Content hash
a5d9f1f2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06572
Status: valid/unmigrated Version: rel:R25-11#8c0c50c3 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06572@rel:R25-11#8c0c50c3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2bb07c522026-09-30
  • R24-11rel:R24-11#92a2e3f52026-10-14
  • R25-11rel:R25-11#8c0c50c32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill