DEENESPTFRRUARHIKOZHNL

klasse ara::core::Optional< T & >

[SWS_CORE_01150]

template <typename T> class Optional< T & > final {...};

Specialization of for type T&

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

User GuideAI-GEGENEREERD

Kapselt een optionele referentie naar een object in en maakt veilige toegang mogelijk zonder dynamische geheugenallocatie.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 7a73f15cddcd Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Kapselt een optionele referentie naar een object in en maakt veilige toegang mogelijk zonder dynamische geheugenallocatie.

De specialisatie ara::core::Optional<T &> dient als typeveilige container voor optionele lvalue-referenties met het elementtype T & [SWS_CORE_01151]. Deze maakt het opnieuw toewijzen of resetten van de referentie tijdens runtime mogelijk zonder dynamische geheugenallocatie [SWS_CORE_01164], [SWS_CORE_01165]. Vóór elke toegang via dereferentie-operatoren of de potentieel exceptie-genererende toegangsmethode value() is de aanwezigheid van een geldig doelobject dwingend vereist om te verifiëren [SWS_CORE_01172], [SWS_CORE_01173].

Context

De template-specialisatie ara::core::Optional<T &> biedt een typeveilige container voor een optionele lvalue-referentie. Het onderliggende elementtype wordt door de type-alias value_type vastgelegd als T & [SWS_CORE_01151]. In tegenstelling tot het primaire template voor waardetypen dient deze specialisatie als herbruikbare, opnieuw bindbare referentie (rebindable reference), die ofwel naar een bestaand object van het type T verwijst ofwel een niet-ingevulde toestand vertegenwoordigt. Deze communiceert rechtstreeks met aanroepende softwarecomponenten en het gerefereerde doelobject, zonder dynamisch geheugen in beslag te nemen.

Levenscyclus

Een instantie van ara::core::Optional<T &> bevindt zich altijd in een van twee welgecontroleerde toestanden: Leeg (niet ingesteld) of Bezet (refereert naar een object). De lege toestand wordt aangenomen via de standaardconstructor [SWS_CORE_01152] of de initialisatie met nullopt_t [SWS_CORE_01153]. De binding aan een referentie vindt bij de constructie plaats door het meegeven van een compatibele waarde of een referentie [SWS_CORE_01156] evenals via conversieconstructors [SWS_CORE_01157]. Kopieer- en verplaatsingsconstructors dragen de toestand van de broncontainer over [SWS_CORE_01154], [SWS_CORE_01155].

Tijdens runtime kan de toestand dynamisch worden gewijzigd: de toewijzing van een waarde of een referentie bindt de Optional opnieuw aan het doorgegeven doelobject [SWS_CORE_01162], wat ook gebeurt via toewijzingsoperatoren van andere Optional-containers [SWS_CORE_01159], [SWS_CORE_01160], [SWS_CORE_01163] of de methode emplace [SWS_CORE_01164]. Een overgang naar de lege toestand vindt plaats via de aanroep van reset [SWS_CORE_01165] of door toewijzing van nullopt_t [SWS_CORE_01161]. Voorts staat swap het atomair verwisselen van twee instanties toe [SWS_CORE_01166]. De standaarddestructor beëindigt de levensduur van de wrapper-instantie [SWS_CORE_01158], maar raakt daarbij vermoedelijk niet het gerefereerde originele object aan, aangezien een referentie semantisch geen eigendom vestigt. Vraag Q-3ba25e19c4b098ed (open)

diag_lifecycle Leer Leer (disengaged) Leer->Leer operator=(nullopt) reset() Belegt Belegt (engaged) Leer->Belegt Optional(u) emplace() operator=(u) Belegt->Leer reset() operator=(nullopt) Belegt->Belegt emplace() operator=(u)

Toestandsdiagram: Toestanden en toestandsovergangen van een instantie van ara::core::Optional<T &>. Bronnen: [SWS_CORE_01152], [SWS_CORE_01153], [SWS_CORE_01156], [SWS_CORE_01161], [SWS_CORE_01162], [SWS_CORE_01164], [SWS_CORE_01165].

Gebruikspad

Een typische gebruikscyclus omvat het aanmaken, valideren en de lezende of modificerende toegang tot het gerefereerde doel:

  1. Initialisatie: Een instantie wordt leeg aangemaakt [SWS_CORE_01152] of bezet met de referentie naar een bestaand object [SWS_CORE_01156].
  2. Tostandscontrole: Vóór het derefereren controleert de aanroeper de aanwezigheid van een referentie via de expliciete conversie-operator operator bool [SWS_CORE_01171] of de methode has_value [SWS_CORE_01172].
  3. Toegang: Bij een bevestigde referentie vindt de toegang tot het gerefereerde object plaats via de dereferentie-operatoren operator* [SWS_CORE_01169], [SWS_CORE_01170] of de pijl-operator operator-> [SWS_CORE_01167], [SWS_CORE_01168]. Alternatief levert value_or de gerefereerde waarde of een opgegeven standaardwaarde op [SWS_CORE_01175].
  4. Resetten: Na voltooiing van de verwerking wordt de referentie desgewenst via reset expliciet verwijderd [SWS_CORE_01165].
Nutzungsablauf von Optional<T &>AufruferOptionalZielobjektOptional(ziel)Instanz erzeugthas_value()trueopthas_value() == trueoperator*()Referentie oplossenT &reset()void

Sequentiediagram: Typisch verloop van initialisatie, verificatie en dereferentie van een optionele referentie. Bronnen: [SWS_CORE_01156], [SWS_CORE_01165], [SWS_CORE_01170], [SWS_CORE_01172].

Foutscenario's

Fouten treden primair op bij vroegtijdige of ontoelaatbare pogingen tot toegang tot lege instanties. Wordt value() aangeroepen terwijl het object geen waarde bevat, dan wordt een schending van het type IsoStdBadOption-alAccessViolation gegenereerd [SWS_CORE_01173], [SWS_CORE_01174]. Dienovereenkomstig is value(), in tegenstelling tot de meeste andere bewerkingen van de klasse, expliciet niet als uitzonderingsveilig (not exception safe) geclassificeerd.

Ook de directe dereferenties middels operator* [SWS_CORE_01169], [SWS_CORE_01170] evenals operator-> [SWS_CORE_01167], [SWS_CORE_01168] documenteren een schending van de categorie IsoStdBadOption-alAccessViolation indien de instantie geen referentie bevat. Hoewel deze operatoren met noexcept zijn gedeclareerd, vereist het gebruik ervan dwingend de naleving van de voorwaarde dat er een geldige referentie bestaat.

Deze handleiding is opgesteld door een AI-systeem op basis van de specificatie-eisen van AUTOSAR Adaptive R25-11.

Ledenkaart

Klassendiagram

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

G nara__core__Optional__T____62 Optional< T & > + Optional() + operator=() + ~Optional() + emplace() + reset() + swap() + has_value() + operator bool() + operator*() + Optional< T &() + value() + value_or()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Optional functie 6

≙ [optional]

Overloads Optional 6
constexpr Optional () noexcept; SWS_CORE_01152
constexpr Optional (nullopt_t) noexcept; SWS_CORE_01153
constexpr Optional (const Optional &other) noexcept=default; SWS_CORE_01154
constexpr Optional (Optional &&other) noexcept=default; SWS_CORE_01155
template <typename U = T> explicit constexpr Optional (U &&u) noexcept; SWS_CORE_01156
template <typename U> explicit constexpr Optional (Optional< U > const &other) noexcept; SWS_CORE_01157
~Optional functie

≙ [optional]

~Optional () noexcept=default;

Methoden

emplace functie

≙ [optional]

template <typename U = T> constexpr Optional & emplace (U &&u) noexcept;
has_value functie

≙ [optional]

constexpr bool has_value () const noexcept;
Optional< T & functie 2

≙ [optional]

Overloads Optional< T & 2
T const * operator-> () const noexcept; SWS_CORE_01167
T * operator-> () noexcept; SWS_CORE_01168
reset functie

≙ [optional]

constexpr void reset () noexcept;
swap functie

≙ [optional]

constexpr void swap (Optional &other) noexcept;
value functie 2

≙ [optional]

Overloads value 2
constexpr T & value (); SWS_CORE_01173
constexpr T const & value () const; SWS_CORE_01174
value_or functie

≙ [optional]

template <typename U> constexpr T value_or (U &&u) const noexcept;

Operatoren

≙ [optional]

explicit constexpr operator bool () const noexcept;
operator* functie 2

≙ [optional]

Overloads * 2
constexpr T const & operator* () const noexcept; SWS_CORE_01169
constexpr T & operator* () noexcept; SWS_CORE_01170
operator= functie 5

≙ [optional]

Overloads = 5
constexpr Optional & operator= (const Optional &other) & noexcept=default; SWS_CORE_01159
constexpr Optional & operator= (Optional &&other) & noexcept=default; SWS_CORE_01160
constexpr Optional & operator= (nullopt_t) & noexcept; SWS_CORE_01161
template <typename U = T> constexpr Optional & operator= (U &&u) & noexcept; SWS_CORE_01162
template <typename U = T> Optional & operator= (const Optional< U > &other) & noexcept; SWS_CORE_01163

Type-aliassen

value_type typealias

≙ [optional]

using value_type = T&;

Documentatie van de methoden

functie Optional< T & [SWS_CORE_01167]

T const * operator-> () const noexcept;

As per corresponding usage in [optional]

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

De elementtoegangsoperator operator-> van de templateklasse ara::core::Optional<T &> dient voor synchrone toegang tot members van het gereferentieerde object [SWS_CORE_01167]. De functie is gedefinieerd in header #include "ara/core/optional.h", behoort tot de scope van ara::core::Optional<T &> en verwacht geen parameters [SWS_CORE_01167]. Als retourwaarde wordt een pointer van het type T const * geretourneerd, die directe leestoegang tot het onderliggende doelobject biedt [SWS_CORE_01167]. Daarmee komt het retourtype overeen met een pointer naar constante data, waardoor modifiërende toegang via deze operator wordt verhinderd.

Wat betreft foutafhandeling is de methode gedeclareerd als noexcept en geclassificeerd als exception safe [SWS_CORE_01167]. Bevat de instantie echter geen waarde (If *this does not contain a value), dan documenteert de specificatie als schending een IsoStdBadOptionalAccessViolation [SWS_CORE_01167]. Vóór dereferentie moet de toepassingssoftware er derhalve voor zorgen dat de optionele referentie geldig is ingesteld, om fouttoestanden tijdens runtime betrouwbaar te voorkomen.

Voor concurrency en aanroepcontext noemt de specificatie geen afzonderlijke beveiligingsmechanismen; vermoedelijk biedt de const-operatie geen interne synchronisatie tegen concurrerende modificaties [SWS_CORE_01167]. Vraag Q-0ebf3ed1284fc0c1 (open) Het algemene gedrag richt zich volgens de specificatie naar het corresponderende gebruik van de C++-standaard voor optionele typen (As per corresponding usage in [optional]) [SWS_CORE_01167].

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

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01167
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01167@rel:R25-11#2727cbb0
Content hash
2727cbb0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01167
Status: valid/unmigrated Version: rel:R25-11#619d01d4 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_01167@rel:R25-11#619d01d4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#453ae4da2026-09-30
  • R24-11rel:R24-11#70a745e42026-10-14
  • R25-11rel:R25-11#619d01d42026-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 Optional< T & [SWS_CORE_01168]

T * operator-> () noexcept;

As per corresponding usage in [optional]

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

De overbelaste operator operator-> van de specialisatie ara::core::Optional<T &> maakt synchrone lidtoegang tot de ingekapselde referentie mogelijk ([SWS_CORE_01168]). De functie wordt beschikbaar gesteld via het headerbestand ara/core/optional.h en vereist geen aanroepparameters. Bij aanroep retourneert deze een pointer van het type T * naar het gereferentieerde doelobject, waardoor members van de instantie direct geadresseerd kunnen worden ([SWS_CORE_01168]). De semantiek komt daarbij overeen met het gebruik van [optional] in de C++-standaard ([SWS_CORE_01168]).

Met betrekking tot foutveiligheid is de operator gedeclareerd als noexcept en geclassificeerd als uitzonderingsveilig („exception safe”) ([SWS_CORE_01168]). Bevat de instantie geen waarde (*this does not contain a value), dan is er sprake van een toegangsschending van de categorie IsoStdBadOptionalAccessViolation ([SWS_CORE_01168]). Interpretatie: aangezien de signatuur gedeclareerd is met noexcept, wordt deze ontoelaatbare toestand vermoedelijk niet afgehandeld door het gooien van een reguliere C++-exceptie, maar leidt deze tot een gestandaardiseerde foutafhandeling of programma-afbreking. Vraag Q-c3ef91b84a00cae8 (open)

Als aanroepvoorwaarde moet de ontwikkelaar voorafgaand aan de uitvoering waarborgen dat het Optional-object daadwerkelijk een waarde bevat. Niet-beveiligde toegang zonder voorafgaande controle van de aanwezigheidsstatus schendt de preconditie van de operator ([SWS_CORE_01168]).

Deze tekst is automatisch aangemaakt. Inhoudelijke uitspraken zijn onderbouwd met verwijzingen naar de specificatie.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01168
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01168@rel:R25-11#9e80924f
Content hash
9e80924f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01168
Status: valid/unmigrated Version: rel:R25-11#df3c1201 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_01168@rel:R25-11#df3c1201
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#62076e1a2026-09-30
  • R24-11rel:R24-11#3761249b2026-10-14
  • R25-11rel:R25-11#df3c12012026-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 Optional [SWS_CORE_01152]

constexpr Optional () noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01152@rel:R25-11#c835c2e0
Content hash
c835c2e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01152
Status: valid/unmigrated Version: rel:R25-11#bd774096 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_01152@rel:R25-11#bd774096
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#203f559e2026-09-30
  • R24-11rel:R24-11#5f8d3df42026-10-14
  • R25-11rel:R25-11#bd7740962026-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 Optional [SWS_CORE_01153]

constexpr Optional (nullopt_t) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01153@rel:R25-11#44715110
Content hash
44715110
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01153
Status: valid/unmigrated Version: rel:R25-11#a42355d6 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_01153@rel:R25-11#a42355d6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d49495ac2026-09-30
  • R24-11rel:R24-11#4189d3352026-10-14
  • R25-11rel:R25-11#a42355d62026-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 Optional [SWS_CORE_01154]

constexpr Optional (const Optional &other) noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01154@rel:R25-11#2f092586
Content hash
2f092586
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01154
Status: valid/unmigrated Version: rel:R25-11#6343a19e 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_01154@rel:R25-11#6343a19e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c9cbf44b2026-09-30
  • R24-11rel:R24-11#67a352912026-10-14
  • R25-11rel:R25-11#6343a19e2026-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 Optional [SWS_CORE_01155]

constexpr Optional (Optional &&other) noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01155
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01155@rel:R25-11#f024d79f
Content hash
f024d79f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01155
Status: valid/unmigrated Version: rel:R25-11#63fd67a5 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_01155@rel:R25-11#63fd67a5
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1cfb040f2026-09-30
  • R24-11rel:R24-11#4e8aeb8f2026-10-14
  • R25-11rel:R25-11#63fd67a52026-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 Optional [SWS_CORE_01156]

template <typename U = T> explicit constexpr Optional (U &&u) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01156
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01156@rel:R25-11#a1892771
Content hash
a1892771
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01156
Status: valid/unmigrated Version: rel:R25-11#20a661bc 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_01156@rel:R25-11#20a661bc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f57f8ec42026-09-30
  • R24-11rel:R24-11#e42ae9492026-10-14
  • R25-11rel:R25-11#20a661bc2026-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 Optional [SWS_CORE_01157]

template <typename U> explicit constexpr Optional (Optional< U > const &other) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01157
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01157@rel:R25-11#76149cfb
Content hash
76149cfb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01157
Status: valid/unmigrated Version: rel:R25-11#9d72d212 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_01157@rel:R25-11#9d72d212
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#818d85522026-09-30
  • R24-11rel:R24-11#4a2fbbd72026-10-14
  • R25-11rel:R25-11#9d72d2122026-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 emplace [SWS_CORE_01164]

template <typename U = T> constexpr Optional & emplace (U &&u) noexcept;

As per corresponding usage in [optional]

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

De template-lidfunctie emplace van de specialisatie ara::core::Optional<T&> dient voor het toewijzen resp. instellen van een referentie in een optionele container ([SWS_CORE_01164]). De functie is gedefinieerd via het headerbestand #include "ara/core/optional.h" ([SWS_CORE_01164]).

Gebruik en semantiek

De aanroep vindt synchroon plaats en accepteert als parameter een forwarding-referentie u van het type U&& (standaard U = T) ([SWS_CORE_01164]). Interpretatie: Het argument u wordt daarbij vermoedelijk opnieuw gebonden aan de in Optional gehouden referentie, zonder dat er een nieuw object wordt geconstrueerd. Vraag Q-55c9eca385e9e496 (open) Als retourwaarde levert emplace een lvalue-referentie op naar de instantie van Optional zelf (Optional &), wat het aaneenschakelen van bewerkingen mogelijk maakt ([SWS_CORE_01164]). Door de declaratie als constexpr kan de aanroep ook tijdens compilatie in constante expressies worden geëvalueerd ([SWS_CORE_01164]).

Foutafhandeling en uitzonderingsveiligheid

De bewerking is gedeclareerd als noexcept en heeft de classificatie exception safe ([SWS_CORE_01164]). Specifieke foutcodes, DET- of DEM-meldingen zijn in het specificatiefragment niet voorzien; falen door C++-excepties is uitgesloten ([SWS_CORE_01164]).

Interactie en afbakening

In tegenstelling tot de primaire template-varianten van ara::core::Optional<T> voor waardetypen, die het ingesloten object in-place construeren, een referentie T& teruggeven en slechts voorwaardelijk uitzonderingsveilig (conditionally exception safe) resp. voorwaardelijk noexcept zijn ([SWS_CORE_01119], [SWS_CORE_01120]), garandeert deze overbelasting voor Optional<T&> strikte uitzonderingsvrijheid ([SWS_CORE_01164]). Andere containers van de module zoals ara::core::Vector ([SWS_CORE_01366]), ara::core::Map ([SWS_CORE_01458]) of ara::core::Variant ([SWS_CORE_01661]) bieden eveneens emplace-methoden, maar hebben zelfstandige semantiek en afwijkende veiligheidsniveaus.

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

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01164@rel:R25-11#3427e448
Content hash
3427e448
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01164
Status: valid/unmigrated Version: rel:R25-11#ae44b1d3 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_01164@rel:R25-11#ae44b1d3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#30e3d4342026-09-30
  • R24-11rel:R24-11#62874e892026-10-14
  • R25-11rel:R25-11#ae44b1d32026-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 has_value [SWS_CORE_01172]

constexpr bool has_value () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01172
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01172@rel:R25-11#d17034a1
Content hash
d17034a1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01172
Status: valid/unmigrated Version: rel:R25-11#401f0d0a 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_01172@rel:R25-11#401f0d0a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a395f6112026-09-30
  • R24-11rel:R24-11#fd763aff2026-10-14
  • R25-11rel:R25-11#401f0d0a2026-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 bool [SWS_CORE_01171]

explicit constexpr operator bool () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01171
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01171@rel:R25-11#8cd6f35c
Content hash
8cd6f35c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01171
Status: valid/unmigrated Version: rel:R25-11#35eaa065 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_01171@rel:R25-11#35eaa065
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f211fcbd2026-09-30
  • R24-11rel:R24-11#59297dd12026-10-14
  • R25-11rel:R25-11#35eaa0652026-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_01169]

constexpr T const & operator* () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01169
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01169@rel:R25-11#ad8eb9aa
Content hash
ad8eb9aa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01169
Status: valid/unmigrated Version: rel:R25-11#7af50405 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_01169@rel:R25-11#7af50405
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5244c30f2026-09-30
  • R24-11rel:R24-11#058fa3292026-10-14
  • R25-11rel:R25-11#7af504052026-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_01170]

constexpr T & operator* () noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01170
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01170@rel:R25-11#29c4bcfd
Content hash
29c4bcfd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01170
Status: valid/unmigrated Version: rel:R25-11#cf473125 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_01170@rel:R25-11#cf473125
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#fbc1818d2026-09-30
  • R24-11rel:R24-11#036016592026-10-14
  • R25-11rel:R25-11#cf4731252026-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_01159]

constexpr Optional & operator= (const Optional &other) & noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01159
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01159@rel:R25-11#4722f5ce
Content hash
4722f5ce
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01159
Status: valid/unmigrated Version: rel:R25-11#3efb9211 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_01159@rel:R25-11#3efb9211
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0ceb335f2026-09-30
  • R24-11rel:R24-11#7729a6cc2026-10-14
  • R25-11rel:R25-11#3efb92112026-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_01160]

constexpr Optional & operator= (Optional &&other) & noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01160@rel:R25-11#6992c813
Content hash
6992c813
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01160
Status: valid/unmigrated Version: rel:R25-11#df5ae80f 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_01160@rel:R25-11#df5ae80f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a47c96572026-09-30
  • R24-11rel:R24-11#7fccea222026-10-14
  • R25-11rel:R25-11#df5ae80f2026-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_01161]

constexpr Optional & operator= (nullopt_t) & noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01161
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01161@rel:R25-11#e29d2cfe
Content hash
e29d2cfe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01161
Status: valid/unmigrated Version: rel:R25-11#47d11828 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_01161@rel:R25-11#47d11828
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#224804b32026-09-30
  • R24-11rel:R24-11#07da73332026-10-14
  • R25-11rel:R25-11#47d118282026-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_01162]

template <typename U = T> constexpr Optional & operator= (U &&u) & noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01162@rel:R25-11#7216487a
Content hash
7216487a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01162
Status: valid/unmigrated Version: rel:R25-11#48bce027 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_01162@rel:R25-11#48bce027
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#043f8bfa2026-09-30
  • R24-11rel:R24-11#e310521a2026-10-14
  • R25-11rel:R25-11#48bce0272026-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_01163]

template <typename U = T> Optional & operator= (const Optional< U > &other) & noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01163@rel:R25-11#6cdcf1ef
Content hash
6cdcf1ef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01163
Status: valid/unmigrated Version: rel:R25-11#13eb961a 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_01163@rel:R25-11#13eb961a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#963c28f12026-09-30
  • R24-11rel:R24-11#5bc3f9cf2026-10-14
  • R25-11rel:R25-11#13eb961a2026-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 reset [SWS_CORE_01165]

constexpr void reset () noexcept;

As per corresponding usage in [optional]

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

De memberfunctie reset van de specialisatie ara::core::Optional<T&> dient conform [SWS_CORE_01165] voor het resetten van een optioneel referentie-object. Ze wordt via de header #include "ara/core/optional.h" gedeclareerd, accepteert geen parameters en heeft geen retourwaarde (void). Als constexpr-functie kan ze ook in compile-time-evaluaties worden gebruikt; de uitvoering ervan vindt synchroon plaats. Interpretatie: Conform de algemene verwijzing naar het gebruik in [optional] brengt de aanroep de instantie vermoedelijk in een toestand zonder gebonden referentie (disengaged), zodat het object daarna geen waarde meer bevat. Vraag Q-edf521c7744139d2 (open)

Met betrekking tot foutafhandeling is de functie conform [SWS_CORE_01165] voorzien van de identifier noexcept en geclassificeerd als uitzonderingsveilig („exception safe”). Een aanroep werpt zodoende geen uitzonderingen op en meldt geen foutcodes; specifieke DET- of DEM-meldingen zijn in de payload voor deze functie niet voorzien.

In de modulecontext verschilt deze implementatie van de algemene template-klasse ara::core::Optional conform [SWS_CORE_01136], waarvan de reset-methode niet als constexpr is gedeclareerd. Andere reset-functies in de module bestaan voor ara::core::Bitset, waarbij reset() conform [SWS_CORE_01727] een referentie naar het object retourneert of met positieaanduiding conform [SWS_CORE_01728] een ara::core::Result oplevert en bij een ongeldige index IsoStdOutOfRangeViolation opwerpt.

Deze tekst is door een AI-systeem gegenereerd op basis van de specificatiegegevens.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01165@rel:R25-11#5bd365c2
Content hash
5bd365c2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01165
Status: valid/unmigrated Version: rel:R25-11#96b9362b 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_01165@rel:R25-11#96b9362b
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c553061a2026-09-30
  • R24-11rel:R24-11#a55359f52026-10-14
  • R25-11rel:R25-11#96b9362b2026-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 swap [SWS_CORE_01166]

constexpr void swap (Optional &other) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01166
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01166@rel:R25-11#675806e2
Content hash
675806e2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01166
Status: valid/unmigrated Version: rel:R25-11#47897cb1 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_01166@rel:R25-11#47897cb1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#036ffd582026-09-30
  • R24-11rel:R24-11#c68cc8362026-10-14
  • R25-11rel:R25-11#47897cb12026-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 value [SWS_CORE_01173]

constexpr T & value ();

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01173
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01173@rel:R25-11#22f02a9e
Content hash
22f02a9e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01173
Status: valid/unmigrated Version: rel:R25-11#bb97e429 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_01173@rel:R25-11#bb97e429
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a59124572026-09-30
  • R24-11rel:R24-11#c5e7fb242026-10-14
  • R25-11rel:R25-11#bb97e4292026-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 value [SWS_CORE_01174]

constexpr T const & value () const;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01174
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01174@rel:R25-11#e8658952
Content hash
e8658952
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01174
Status: valid/unmigrated Version: rel:R25-11#3d7b55ac 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_01174@rel:R25-11#3d7b55ac
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ded2d5c12026-09-30
  • R24-11rel:R24-11#9a78cd172026-10-14
  • R25-11rel:R25-11#3d7b55ac2026-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 value_or [SWS_CORE_01175]

template <typename U> constexpr T value_or (U &&u) const noexcept;

As per corresponding usage in [optional]

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

De lidfunctie value_or van de specialisatie ara::core::Optional<T&> wordt beschikbaar gesteld via het headerbestand #include "ara/core/optional.h" [SWS_CORE_01175]. Als sjabloonfunctie neemt zij een parameter U&& u als uitwijkwaarde in ontvangst en geeft synchroon een resultaatwaarde van het type T terug. Interpretatie: Volgens de specificatieaanduiding „As per corresponding usage in [optional]” levert de functie vermoedelijk de door de referentie vastgehouden waarde terug als het object gevuld is, en anders de fallback-waarde u. Vraag Q-c050380198abf06b (open)

Voor de foutafhandeling garandeert de specificatie volledige uitzonderingsveiligheid (exception safe) en declareert zij de methode als noexcept [SWS_CORE_01175]. Noch foutcodes noch meldingen aan fout- of diagnosemonitors zijn voor deze operatie voorzien. Aangezien de lidfunctie bovendien als constexpr en const is gekwalificeerd, kan zij zonder modificatie van het object ook in constante expressies tijdens compileertijd worden geëvalueerd [SWS_CORE_01175].

In de context van de module core staat de functie in nauw verband met de algemene overbelastingen voor niet-referentiële typen. Terwijl [SWS_CORE_01175] voor ara::core::Optional<T&> is gedeclareerd als exception safe, classificeert de specificatie de corresponderende varianten van de primaire template ara::core::Optional – zowel de const-lvalue-overbelasting [SWS_CORE_01134] als de rvalue-overbelasting [SWS_CORE_01135] – telkens als not exception safe.

Deze gebruiksinstructie is opgesteld door een AI op basis van de specificatie.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01175
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01175@rel:R25-11#2242dd82
Content hash
2242dd82
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01175
Status: valid/unmigrated Version: rel:R25-11#b15a3240 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_01175@rel:R25-11#b15a3240
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#07a50f3f2026-09-30
  • R24-11rel:R24-11#b275cdd32026-10-14
  • R25-11rel:R25-11#b15a32402026-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 ~Optional [SWS_CORE_01158]

~Optional () noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01158
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01158@rel:R25-11#e87ffc31
Content hash
e87ffc31
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01158
Status: valid/unmigrated Version: rel:R25-11#9f329d75 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_01158@rel:R25-11#9f329d75
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5583615b2026-09-30
  • R24-11rel:R24-11#8b55e5d62026-10-14
  • R25-11rel:R25-11#9f329d752026-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_01151]

using value_type = T&;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Symbolvalue_type

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

Record
AUTOSAR/AP/record/SWS_CORE_01151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01151@rel:R25-11#d31c7e75
Content hash
d31c7e75
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01151
Status: valid/unmigrated Version: rel:R25-11#53609b21 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_01151@rel:R25-11#53609b21
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ec6b63872026-09-30
  • R24-11rel:R24-11#03a4e1d12026-10-14
  • R25-11rel:R25-11#53609b212026-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