DEENESPTFRRUARHIKOZHNL

class 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 GuideKI-GENERIERT

Kapselt eine optionale Referenz auf ein Objekt und ermöglicht sicheren Zugriff ohne dynamische Speicherallokation.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 7a73f15cddcd Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Kapselt eine optionale Referenz auf ein Objekt und ermöglicht sicheren Zugriff ohne dynamische Speicherallokation.

Die Spezialisierung ara::core::Optional<T &> dient als typsicherer Behälter für optionale Lvalue-Referenzen mit dem Elementtyp T & [SWS_CORE_01151]. Sie ermöglicht das Neubelegen oder Zurücksetzen des Verweises zur Laufzeit ohne dynamische Speicherallokation [SWS_CORE_01164], [SWS_CORE_01165]. Vor jedem Zugriff über Dereferenzierungsoperatoren oder die potentiell fehlerwerfende Zugriffsmethode value() ist das Vorhandensein eines gültigen Zielobjekts zwingend zu überprüfen [SWS_CORE_01172], [SWS_CORE_01173].

Kontext

Die Template-Spezialisierung ara::core::Optional<T &> stellt einen typsicheren Behälter für eine optionale Lvalue-Referenz bereit. Der zugrunde liegende Elementtyp wird durch den Typalias value_type als T & festgelegt [SWS_CORE_01151]. Im Unterschied zur primären Schablone für Werttypen dient diese Spezialisierung als wiederverwendbare, neu bindbare Referenz (Rebindable Reference), die entweder auf ein existierendes Objekt vom Typ T verweist oder einen unbesetzten Zustand repräsentiert. Sie interagiert direkt mit aufrufenden Softwarekomponenten und dem referenzierten Zielobjekt, ohne dynamischen Speicher zu belegen.

Lebenszyklus

Eine Instanz von ara::core::Optional<T &> befindet sich stets in einem von zwei wohlkontrollierten Zuständen: Leer (nicht belegt) oder Belegt (referenziert ein Objekt). Der leere Zustand wird über den Standardkonstruktor [SWS_CORE_01152] oder die Initialisierung mit nullopt_t [SWS_CORE_01153] eingenommen. Die Bindung an eine Referenz erfolgt bei der Konstruktion durch Übergabe eines kompatiblen Werts oder einer Referenz [SWS_CORE_01156] sowie über Konvertierungskonstruktoren [SWS_CORE_01157]. Kopier- und Verschiebekonstruktoren übertragen den Zustand des Quellbehälters [SWS_CORE_01154], [SWS_CORE_01155].

Zur Laufzeit kann der Zustand dynamisch modifiziert werden: Die Zuweisung eines Werts oder einer Referenz bindet das Optional neu an das übergebene Zielobjekt [SWS_CORE_01162], was auch über Zuweisungsoperatoren anderer Optional-Behälter [SWS_CORE_01159], [SWS_CORE_01160], [SWS_CORE_01163] oder die Methode emplace [SWS_CORE_01164] geschieht. Ein Übergang in den leeren Zustand erfolgt über den Aufruf von reset [SWS_CORE_01165] oder durch Zuweisung von nullopt_t [SWS_CORE_01161]. Ferner gestattet swap das atomare Vertauschen zweier Instanzen [SWS_CORE_01166]. Der Standarddestruktor beendet die Lebensdauer der Wrapper-Instanz [SWS_CORE_01158], berührt dabei aber vermutlich nicht das referenzierte Originalobjekt, da eine Referenz semantisch keinen Besitz begründet. Frage Q-3ba25e19c4b098ed (offen)

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)

Zustandsdiagramm: Zustände und Zustandsübergänge einer Instanz von ara::core::Optional<T &>. Quellen: [SWS_CORE_01152], [SWS_CORE_01153], [SWS_CORE_01156], [SWS_CORE_01161], [SWS_CORE_01162], [SWS_CORE_01164], [SWS_CORE_01165].

Nutzungspfad

Ein typischer Anwendungszyklus umfasst die Erzeugung, Validierung und den lesenden oder modifizierenden Zugriff auf das referenzierte Ziel:

  1. Initialisierung: Eine Instanz wird leer erzeugt [SWS_CORE_01152] oder mit der Referenz auf ein bestehendes Objekt belegt [SWS_CORE_01156].
  2. Zustandsprüfung: Vor der Dereferenzierung prüft der Aufrufer das Vorhandensein eines Verweises über den expliziten Konvertierungsoperator operator bool [SWS_CORE_01171] oder die Methode has_value [SWS_CORE_01172].
  3. Zugriff: Bei bestätigtem Verweis erfolgt der Zugriff auf das referenzierte Objekt über die Dereferenzierungsoperatoren operator* [SWS_CORE_01169], [SWS_CORE_01170] oder den Pfeil-Operator operator-> [SWS_CORE_01167], [SWS_CORE_01168]. Alternativ liefert value_or den referenzierten Wert oder einen angegebenen Standardwert zurück [SWS_CORE_01175].
  4. Rücksetzen: Nach Abschluss der Verarbeitung wird der Verweis bei Bedarf über reset explizit entfernt [SWS_CORE_01165].
Nutzungsablauf von Optional<T &>AufruferOptionalZielobjektOptional(ziel)Instanz erzeugthas_value()trueopthas_value() == trueoperator*()Referenz auflösenT &reset()void

Sequenzdiagramm: Typischer Ablauf von Initialisierung, Verifikation und Dereferenzierung einer optionalen Referenz. Quellen: [SWS_CORE_01156], [SWS_CORE_01165], [SWS_CORE_01170], [SWS_CORE_01172].

Fehlerszenarien

Fehler treten primär bei vorzeitigen oder unzulässigen Zugriffsversuchen auf leere Instanzen auf. Wird value() aufgerufen, während das Objekt keinen Wert enthält, wird eine Verletzung des Typs IsoStdBadOption-alAccessViolation ausgelöst [SWS_CORE_01173], [SWS_CORE_01174]. Dementsprechend ist value() im Gegensatz zu den meisten anderen Operationen der Klasse explizit nicht als ausnahmesicher (not exception safe) eingestuft.

Auch die direkten Dereferenzierungen mittels operator* [SWS_CORE_01169], [SWS_CORE_01170] sowie operator-> [SWS_CORE_01167], [SWS_CORE_01168] dokumentieren eine Verletzung der Kategorie IsoStdBadOption-alAccessViolation, falls die Instanz keinen Verweis hält. Obwohl diese Operatoren mit noexcept deklariert sind, verlangt ihre Nutzung zwingend die Einhaltung der Vorbedingung, dass ein gültiger Verweis existiert.

Dieser Leitfaden wurde durch ein KI-System auf Basis der Spezifikationsanforderungen von AUTOSAR Adaptive R25-11 erstellt.

Mitgliederkarte

Klassendiagramm

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()

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Konstruktoren und Destruktor

Optional function 6

≙ [optional]

Überladungen 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 function

≙ [optional]

~Optional () noexcept=default;

Methoden

emplace function

≙ [optional]

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

≙ [optional]

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

≙ [optional]

Überladungen Optional< T & 2
T const * operator-> () const noexcept; SWS_CORE_01167
T * operator-> () noexcept; SWS_CORE_01168
reset function

≙ [optional]

constexpr void reset () noexcept;
swap function

≙ [optional]

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

≙ [optional]

Überladungen value 2
constexpr T & value (); SWS_CORE_01173
constexpr T const & value () const; SWS_CORE_01174
value_or function

≙ [optional]

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

Operatoren

operator bool function

≙ [optional]

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

≙ [optional]

Überladungen * 2
constexpr T const & operator* () const noexcept; SWS_CORE_01169
constexpr T & operator* () noexcept; SWS_CORE_01170
operator= function 5

≙ [optional]

Überladungen = 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

Typaliase

value_type type alias

≙ [optional]

using value_type = T&;

Dokumentation der Methoden

function Optional< T & [SWS_CORE_01167]

T const * operator-> () const noexcept;

As per corresponding usage in [optional]

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 89692a8124d3 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Der Element-Zugriffsoperator operator-> der Template-Klasse ara::core::Optional<T &> dient dem synchronen Zugriff auf Member des referenzierten Objekts [SWS_CORE_01167]. Die Funktion ist im Header #include "ara/core/optional.h" definiert, gehört zum Scope von ara::core::Optional<T &> und erwartet keine Parameter [SWS_CORE_01167]. Als Rückgabewert wird ein Zeiger vom Typ T const * geliefert, der einen direkten Lesezugriff auf das zugrunde liegende Zielobjekt ermöglicht [SWS_CORE_01167]. Damit entspricht der Rückgabetyp einem Zeiger auf konstante Daten, wodurch modifizierende Zugriffe über diesen Operator unterbunden werden.

Hinsichtlich der Fehlerbehandlung ist die Methode als noexcept deklariert und als exception safe eingestuft [SWS_CORE_01167]. Enthält die Instanz jedoch keinen Wert (If *this does not contain a value), dokumentiert die Spezifikation als Verletzung eine IsoStdBadOptionalAccessViolation [SWS_CORE_01167]. Vor der Dereferenzierung muss die anwendende Software folglich sicherstellen, dass die optionale Referenz gültig belegt ist, um Fehlerzustände zur Laufzeit verlässlich zu vermeiden.

Für Nebenläufigkeit und Aufrufkontext nennt die Spezifikation keine gesonderten Schutzmechanismen; vermutlich bietet die const-Operation keine interne Synchronisation gegen konkurrierende Modifikationen [SWS_CORE_01167]. Frage Q-0ebf3ed1284fc0c1 (offen) Das allgemeine Verhalten richtet sich gemäß Spezifikation nach der korrespondierenden Verwendung des C++-Standards für optionale Typen (As per corresponding usage in [optional]) [SWS_CORE_01167].

Dieser Nutzungshinweis wurde automatisiert auf Basis der Spezifikation AUTOSAR R25-11 generiert.

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#453ae4da
Content hash
453ae4da
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

function Optional< T & [SWS_CORE_01168]

T * operator-> () noexcept;

As per corresponding usage in [optional]

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: f85c6d08317d Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Der Überladungsoperator operator-> der Spezialisierung ara::core::Optional<T &> ermöglicht den synchronen Elementzugriff auf die gekapselte Referenz ([SWS_CORE_01168]). Die Funktion wird über die Header-Datei ara/core/optional.h bereitgestellt und erfordert keine Aufrufparameter. Bei Aufruf liefert sie einen Zeiger vom Typ T * auf das referenzierte Zielobjekt zurück, wodurch Member der Instanz direkt adressiert werden können ([SWS_CORE_01168]). Die Semantik entspricht dabei der Verwendung von [optional] im C++-Standard ([SWS_CORE_01168]).

Hinsichtlich der Fehlersicherheit ist der Operator als noexcept deklariert und als ausnahmesicher („exception safe“) eingestuft ([SWS_CORE_01168]). Enthält die Instanz keinen Wert (*this does not contain a value), liegt eine Zugriffsverletzung der Kategorie IsoStdBadOptionalAccessViolation vor ([SWS_CORE_01168]). Interpretation: Da die Signatur mit noexcept deklariert ist, dürfte dieser unzulässige Zustand vermutlich nicht durch das Werfen einer regulären C++-Exception behandelt werden, sondern zu einer standardisierten Fehlerbehandlung oder einem Programmabbruch führen. Frage Q-c3ef91b84a00cae8 (offen)

Als Aufrufbedingung muss der Entwickler vor der Ausführung sicherstellen, dass das Optional-Objekt tatsächlich einen Wert enthält. Ein ungesicherter Zugriff ohne vorherige Prüfung des Belegungsstatus verletzt die Vorbedingung des Operators ([SWS_CORE_01168]).

Dieser Text wurde automatisch erstellt. Fachliche Aussagen sind durch Verweise auf die Spezifikation belegt.

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#62076e1a
Content hash
62076e1a
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

function 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#203f559e
Content hash
203f559e
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

function 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#d49495ac
Content hash
d49495ac
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

function 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#c9cbf44b
Content hash
c9cbf44b
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

function 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#1cfb040f
Content hash
1cfb040f
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

function 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#f57f8ec4
Content hash
f57f8ec4
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

function 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#818d8552
Content hash
818d8552
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

function emplace [SWS_CORE_01164]

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

As per corresponding usage in [optional]

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: eb9f72cc598f Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Template-Elementfunktion emplace der Spezialisierung ara::core::Optional<T&> dient der Zuweisung bzw. dem Setzen einer Referenz in einem optionalen Behälter ([SWS_CORE_01164]). Die Funktion ist über die Header-Datei #include "ara/core/optional.h" definiert ([SWS_CORE_01164]).

Verwendung und Semantik

Der Aufruf erfolgt synchron und nimmt als Parameter eine Weiterleitungsreferenz u vom Typ U&& (standardmäßig U = T) entgegen ([SWS_CORE_01164]). Interpretation: Das Argument u dürfte dabei an die im Optional gehaltene Referenz neu gebunden werden, ohne dass ein neues Objekt konstruiert wird. Frage Q-55c9eca385e9e496 (offen) Als Rückgabewert liefert emplace eine lvalue-Referenz auf die Instanz von Optional selbst (Optional &), was das Verketten von Operationen ermöglicht ([SWS_CORE_01164]). Durch die Deklaration als constexpr kann der Aufruf auch in konstanten Ausdrücken zur Übersetzungszeit ausgewertet werden ([SWS_CORE_01164]).

Fehlerbehandlung und Ausnahmesicherheit

Die Operation ist als noexcept deklariert und besitzt die Klassifikation exception safe ([SWS_CORE_01164]). Spezifische Fehlercodes, DET- oder DEM-Meldungen sind im Spezifikationsauszug nicht vorgesehen; ein Scheitern durch C++-Ausnahmen ist ausgeschlossen ([SWS_CORE_01164]).

Zusammenspiel und Abgrenzung

Im Unterschied zu den primären Template-Varianten von ara::core::Optional<T> für Werttypen, welche das enthaltene Objekt in-place konstruieren, eine Referenz T& zurückgeben und lediglich bedingt ausnahmesicher (conditionally exception safe) bzw. bedingt noexcept sind ([SWS_CORE_01119], [SWS_CORE_01120]), garantiert diese Überladung für Optional<T&> strikte Ausnahmefreiheit ([SWS_CORE_01164]). Andere Container des Moduls wie ara::core::Vector ([SWS_CORE_01366]), ara::core::Map ([SWS_CORE_01458]) oder ara::core::Variant ([SWS_CORE_01661]) bieten ebenfalls emplace-Methoden, besitzen jedoch eigenständige Semantiken und abweichende Sicherheitsstufen.

Dieser Nutzungshinweis wurde automatisch auf Basis der Spezifikation von AUTOSAR Adaptive R25-11 generiert.

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#30e3d434
Content hash
30e3d434
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

function 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#a395f611
Content hash
a395f611
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

function 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#f211fcbd
Content hash
f211fcbd
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

function 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#5244c30f
Content hash
5244c30f
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

function 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#fbc1818d
Content hash
fbc1818d
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

function 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#0ceb335f
Content hash
0ceb335f
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

function 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#a47c9657
Content hash
a47c9657
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

function 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#224804b3
Content hash
224804b3
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

function 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#043f8bfa
Content hash
043f8bfa
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

function 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#963c28f1
Content hash
963c28f1
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

function reset [SWS_CORE_01165]

constexpr void reset () noexcept;

As per corresponding usage in [optional]

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: b70ef11c6c14 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Elementfunktion reset der Spezialisierung ara::core::Optional<T&> dient gemäß [SWS_CORE_01165] dem Zurücksetzen eines optionalen Referenzobjekts. Sie wird über den Header #include "ara/core/optional.h" deklariert, nimmt keine Parameter entgegen und besitzt keinen Rückgabewert (void). Als constexpr-Funktion kann sie auch in Compile-Time-Auswertungen verwendet werden; ihre Ausführung erfolgt synchron. Interpretation: Gemäß dem allgemeinen Verweis auf die Nutzung in [optional] versetzt der Aufruf die Instanz vermutlich in einen Zustand ohne gebundene Referenz (disengaged), sodass das Objekt danach keinen Wert mehr enthält. Frage Q-edf521c7744139d2 (offen)

Hinsichtlich der Fehlerbehandlung ist die Funktion gemäß [SWS_CORE_01165] mit dem Bezeichner noexcept versehen und als ausnahmesicher („exception safe“) klassifiziert. Ein Aufruf wirft somit keine Ausnahmen und meldet keine Fehlercodes; spezifische DET- oder DEM-Meldungen sind im Payload für diese Funktion nicht vorgesehen.

Im Modulkontext unterscheidet sich diese Implementierung von der allgemeinen Template-Klasse ara::core::Optional gemäß [SWS_CORE_01136], deren reset-Methode nicht als constexpr deklariert ist. Andere reset-Funktionen im Modul existieren für ara::core::Bitset, wo reset() gemäß [SWS_CORE_01727] eine Referenz auf das Objekt zurückgibt oder mit Positionsangabe gemäß [SWS_CORE_01728] ein ara::core::Result zurückliefert und bei ungültigem Index IsoStdOutOfRangeViolation auslöst.

Dieser Text wurde durch ein KI-System auf Basis der Spezifikationsdaten generiert.

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#c553061a
Content hash
c553061a
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

function 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#036ffd58
Content hash
036ffd58
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

function 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#a5912457
Content hash
a5912457
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

function 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#ded2d5c1
Content hash
ded2d5c1
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

function value_or [SWS_CORE_01175]

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

As per corresponding usage in [optional]

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 6b4e9a7193a7 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Elementfunktion value_or der Spezialisierung ara::core::Optional<T&> wird über die Header-Datei #include "ara/core/optional.h" bereitgestellt [SWS_CORE_01175]. Als Schablonenfunktion nimmt sie einen Parameter U&& u als Ausweichwert entgegen und gibt synchron einen Ergebniswert vom Typ T zurück. Interpretation: Gemäß der Spezifikationsangabe „As per corresponding usage in [optional]“ dürfte die Funktion den von der Referenz gehaltenen Wert zurückliefern, wenn das Objekt belegt ist, und andernfalls den Fallback-Wert u. Frage Q-c050380198abf06b (offen)

Für die Fehlerbehandlung garantiert die Spezifikation vollständige Ausnahmesicherheit (exception safe) und deklariert die Methode als noexcept [SWS_CORE_01175]. Weder Fehlercodes noch Benachrichtigungen an Fehler- oder Diagnosemonitore sind für diese Operation vorgesehen. Da die Elementfunktion zudem als constexpr sowie const qualifiziert ist, kann sie ohne Modifikation des Objekts auch in konstanten Ausdrücken zur Übersetzungszeit evaluiert werden [SWS_CORE_01175].

Im Kontext des Moduls core steht die Funktion in engem Bezug zu den allgemeinen Überladungen für nicht-referenzielle Typen. Während [SWS_CORE_01175] für ara::core::Optional<T&> als exception safe deklariert ist, stuft die Spezifikation die korrespondierenden Varianten der primären Vorlage ara::core::Optional – sowohl die Const-Lvalue-Überladung [SWS_CORE_01134] als auch die Rvalue-Überladung [SWS_CORE_01135] – jeweils als not exception safe ein.

Dieser Nutzungshinweis wurde von einer KI auf Basis der Spezifikation erstellt.

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#07a50f3f
Content hash
07a50f3f
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

function ~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#5583615b
Content hash
5583615b
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

Dokumentation der Typaliase

type alias 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#ec6b6387
Content hash
ec6b6387
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