DEENESPTFRRUARHIKOZHNL

klasse ara::core::Optional

[SWS_CORE_01033]

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

Implementation of std::optional<T> type from [optional.syn]

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

User GuideAI-GEGENEREERD

Kapselt een optioneel aanwezige waarde typeveilig in het stackgeheugen in en maakt toestandafhankelijke toegang mogelijk.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: b7fd51442c86 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Kapselt een optioneel aanwezige waarde typeveilig in het stackgeheugen in en maakt toestandafhankelijke toegang mogelijk.

De klasse ara::core::Optional stelt een aan de standaard conforme implementatie van std::optional<T> beschikbaar om waarden van het type value_type typeveilig en zonder allocatie op de stack in te kapselen [SWS_CORE_01102]. Toepassingen controleren de bezettingstoestand via has_value() [SWS_CORE_01129] en benaderen de inhoud via value() of operators. Toegang tot lege instanties dient strikt te worden vermeden, aangezien dit ondanks de noexcept-declaratie de platformschending IsoStdBadOptionalAccessViolation activeert [SWS_CORE_01131].

Context

De klasse ara::core::Optional stelt een aan de standaard conforme implementatie van de container std::optional<T> beschikbaar voor het Adaptive Platform. Deze dient als typeveilige omhulling voor het inkapselen van een optionele waarde van het type value_type [SWS_CORE_01102]. Door het gebruik vervalt de noodzaak van foutgevoelige sentinel-waarden, speciale foutvlaggen of dynamische geheugenallocaties (zoals null-pointers) voor het aanduiden van afwezige data. De opslag van het object vindt direct binnen het stackgeheugen van de instantie plaats, waardoor deterministisch beheer van resources en cache-lokaliteit in de AUTOSAR-runtimeomgeving worden gewaarborgd.

Levenscyclus

Een instantie van ara::core::Optional bevindt zich op elk moment in een van twee discrete toestanden: ongeïnitialiseerd (leeg) of bezet met een waarde van het type T. De lege begintoestand wordt aangenomen via de standaardconstructor [SWS_CORE_01103] of de expliciete initialisatie met nullopt_t [SWS_CORE_01104]. De initialisatie met een concrete waarde vindt plaats via copy- en move-constructors [SWS_CORE_01105], [SWS_CORE_01106], [SWS_CORE_01109], typeconverteerbare constructors [SWS_CORE_01110], [SWS_CORE_01111] of direct in-place via in_place_t [SWS_CORE_01107], [SWS_CORE_01108], waardoor tijdelijke kopieën volledig worden vermeden.

Tijdens normaal bedrijf kan de toestand meermaals wisselen: de methoden emplace construeren een nieuwe waarde direct in het geheugen van het object en verwerpen een eventueel eerder bestaande toestand [SWS_CORE_01119], [SWS_CORE_01120]. Evenzo leiden toekenningsoperators, die via ref-qualifier & strikt aan lvalues gebonden zijn, naar de bezette toestand [SWS_CORE_01114], [SWS_CORE_01115], [SWS_CORE_01116], [SWS_CORE_01117], [SWS_CORE_01118]. Het terugzetten naar de lege toestand geschiedt deterministisch via reset() [SWS_CORE_01136] of door toekenning van nullopt_t [SWS_CORE_01113]. Bovendien kunnen twee instanties via swap efficiënt hun toestanden en data-inhoud uitwisselen [SWS_CORE_01121]. Bij het bereiken van het einde van de levensduur vernietigt de destructor het eventueel aanwezige object; de noexcept-garantie hiervan is daarbij direct gekoppeld aan de vernietigbaarheid van type T [SWS_CORE_01112].

optional_lifecycle Init Leer Leer Init->Leer Optional() / nullopt Belegt Belegt Init->Belegt Optional(Wert) / in_place Leer->Belegt emplace() / operator= Ende Ende Leer->Ende ~Optional() Belegt->Leer reset() / operator=(nullopt) Belegt->Belegt emplace() / operator= Belegt->Ende ~Optional()

Toestandsdiagram: Levenscyclus en toestandsovergangen van een instantie van ara::core::Optional. Bronnen: [SWS_CORE_01103], [SWS_CORE_01104], [SWS_CORE_01107], [SWS_CORE_01113], [SWS_CORE_01119], [SWS_CORE_01136], [SWS_CORE_01112]

Gebruikspad

Het reguliere verloop omvat de verificatie van de bezetting en het aansluitend uitlezen van de waarde. Voor het opvragen van de toestand staan has_value() [SWS_CORE_01129] en de expliciete conversieoperator operator bool [SWS_CORE_01128] ter beschikking.

Indien een waarde aanwezig is, kan deze worden benaderd via de dereferentie-operators operator* ([SWS_CORE_01124], [SWS_CORE_01125], [SWS_CORE_01126], [SWS_CORE_01127]) of operator-> ([SWS_CORE_01122], [SWS_CORE_01123]). Aanvullend maakt de methode value() gekwalificeerde toegang tot lvalues en rvalues mogelijk ([SWS_CORE_01130], [SWS_CORE_01131], [SWS_CORE_01132], [SWS_CORE_01133]). Indien bij het ontbreken van een bezetting een vooraf gedefinieerde vervangende waarde moet worden gebruikt, biedt value_or een directe uitwijkstrategie ([SWS_CORE_01134], [SWS_CORE_01135]). Na voltooiing van de verwerking kan de container desgewenst via reset() worden opgeschoond [SWS_CORE_01136].

Controle van en toegang tot de optionele waardeAnwendungOptionalhas_value()boolalthas_value() == truevalue()const T&has_value() == falsevalue_or(fallback)Treset()void

Sequentiediagram: Verloop van toestandcontrole en waarde-extractie. Bronnen: [SWS_CORE_01128], [SWS_CORE_01129], [SWS_CORE_01131], [SWS_CORE_01134], [SWS_CORE_01136]

Foutscenario's

Van een foutieve toegang is sprake wanneer een lege instantie wordt gederefereerd of de waarde daarvan ongeoorloofd wordt opgevraagd. De toegangsmethoden value(), operator* en operator-> zijn in AUTOSAR Adaptive gedeclareerd als noexcept, maar activeren in lege toestand de schending IsoStdBadOptionalAccessViolation ([SWS_CORE_01122], [SWS_CORE_01123], [SWS_CORE_01124], [SWS_CORE_01125], [SWS_CORE_01126], [SWS_CORE_01127], [SWS_CORE_01130], [SWS_CORE_01131], [SWS_CORE_01132], [SWS_CORE_01133]). Interpretatie: Aangezien de methoden als noexcept zijn gedeclareerd, zal het activeren van de IsoStdBadOptionalAccessViolation vermoedelijk niet als een afvangbare standaardexceptie worden gepropageerd, maar leidt dit waarschijnlijk via het platformspecifieke schendingsmechanisme tot onmiddellijke programma-afbreking. Vraag Q-3c066dae2b93a9ec (open) Aanroepers moeten daarom de bezettingsstatus dwingend valideren alvorens uit te lezen.

Een ander foutscenario betreft de exceptieafhandeling bij de typeconstructie: constructors, toekenningsoperators, swap en emplace bezitten voorwaardelijke noexcept-specificaties die ervan afhangen of de desbetreffende typeoperaties van T zelf als noexcept zijn gedeclareerd ([SWS_CORE_01105], [SWS_CORE_01114], [SWS_CORE_01119], [SWS_CORE_01121]). De fallback-methode value_or is bovendien expliciet als niet-exceptieveilig („not exception safe”) aangemerkt ([SWS_CORE_01134], [SWS_CORE_01135]), zodat fouten die optreden bij het aanmaken van de retourwaarde worden doorgegeven aan de aanroeper.

Deze klassehandleiding is uitsluitend gebaseerd op de eisen uit de specificatie ara::core::Optional uit AUTOSAR Adaptive R25-11.

Ledenkaart

Klassendiagram

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

G nara__core__Optional627 Optional + Optional() + operator=() + ~Optional() + emplace() + reset() + swap() + has_value() + operator bool() + operator*() + operator->() + value() + value_or()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Optional functie 9

≙ [optional]

Overloads Optional 9
constexpr Optional () noexcept; SWS_CORE_01103
constexpr Optional (nullopt_t) noexcept; SWS_CORE_01104
constexpr Optional (const Optional &other) noexcept(std::is_nothrow_ copy_constructible< T >::value); SWS_CORE_01105
constexpr Optional (Optional &&other) noexcept(std::is_nothrow_move_ constructible< T >::value); SWS_CORE_01106
template <typename... Args> explicit constexpr Optional (in_place_t, Args &&...) noexcept(std::is_nothrow_constructible< T, Args... >::value); SWS_CORE_01107
template <typename U, typename... Args> explicit constexpr Optional (in_place_t, std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01108
template <typename U = T> {<cond-explicit-1>} constexpr Optional (U &&) noexcept(std::is_ nothrow_constructible< T, U >::value); SWS_CORE_01109
template <typename U> {<cond-explicit-2>} Optional (const Optional< U > &) noexcept(std::is_ nothrow_constructible< T, const U & >::value); SWS_CORE_01110
template <typename U> {<cond-explicit-3>} Optional (Optional< U > &&) noexcept(std::is_ nothrow_constructible< T, U >::value); SWS_CORE_01111
~Optional functie

except for the following deviations: 1. Function is conditionally noexcept ≙ [optional]

~Optional () noexcept(std::is_nothrow_destructible< T >::value);

Methoden

emplace functie 2

except for the following deviations: 1. Function is conditionally noexcept ≙ [optional]

Overloads emplace 2
template <typename... Args> T & emplace (Args &&...) noexcept(std::is_nothrow_constructible< T, Args &&... >::value); SWS_CORE_01119
template <typename U, typename... Args> T & emplace (std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01120
has_value functie

≙ [optional]

constexpr bool has_value () const noexcept;
reset functie

≙ [optional]

void reset () noexcept;
swap functie

except for the following deviations: 1. Conditions for the conditional exception safety are modified ≙ [optional]

void swap (Optional &) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_assignable< T >::value);
value functie 4

except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition) ≙ [optional]

Overloads value 4
constexpr const T & value () const & noexcept; SWS_CORE_01130
constexpr T & value () & noexcept; SWS_CORE_01131
constexpr T && value () &&noexcept; SWS_CORE_01132
constexpr const T && value () const &&noexcept; SWS_CORE_01133
value_or functie 2

≙ [optional]

Overloads value_or 2
template <typename U> constexpr T value_or (U &&) const &; SWS_CORE_01134
template <typename U> constexpr T value_or (U &&) &&; SWS_CORE_01135

Operatoren

≙ [optional]

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

except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition) ≙ [optional]

Overloads * 4
constexpr const T & operator* () const & noexcept; SWS_CORE_01124
constexpr T & operator* () & noexcept; SWS_CORE_01125
constexpr T && operator* () &&noexcept; SWS_CORE_01126
constexpr const T && operator* () const &&noexcept; SWS_CORE_01127
operator-> functie 2

except for the following deviations: 1. The function is noexcept 2. Function is not constexpr 3. A IsoStdBadOptionalAccessViolation may be raised (see condition) ≙ [optional]

Overloads -> 2
const T * operator-> () const noexcept; SWS_CORE_01122
T * operator-> () noexcept; SWS_CORE_01123
operator= functie 6

≙ [optional]

Overloads = 6
Optional & operator= (nullopt_t) & noexcept; SWS_CORE_01113
Optional & operator= (const Optional &other) &noexcept(std::is_ nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_ assignable< T >::value); SWS_CORE_01114
template <typename U = T> Optional & operator= (U &&u) &noexcept(std::is_nothrow_constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value); SWS_CORE_01116
template <typename U> Optional & operator= (const Optional< U > &) &noexcept(std::is_ nothrow_constructible< T, const U &>::value &&std::is_nothrow_ assignable< T &, const U &>::value); SWS_CORE_01117
template <typename U> Optional & operator= (Optional< U > &&) &noexcept(std::is_nothrow_ constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value); SWS_CORE_01118

Type-aliassen

value_type typealias

≙ [optional]

using value_type = T;

Documentatie van de methoden

functie Optional [SWS_CORE_01103]

constexpr Optional () noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01103@rel:R25-11#e7abc824
Content hash
e7abc824
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01103
Status: valid/unmigrated Version: rel:R25-11#8992786d 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_01103@rel:R25-11#8992786d
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d86867a02026-09-30
  • R24-11rel:R24-11#86df07de2026-10-14
  • R25-11rel:R25-11#8992786d2026-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_01104]

constexpr Optional (nullopt_t) noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01104
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01104@rel:R25-11#7864022b
Content hash
7864022b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01104
Status: valid/unmigrated Version: rel:R25-11#411bd18e 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_01104@rel:R25-11#411bd18e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e84841e92026-09-30
  • R24-11rel:R24-11#43c232942026-10-14
  • R25-11rel:R25-11#411bd18e2026-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_01105]

constexpr Optional (const Optional &other) noexcept(std::is_nothrow_ copy_constructible< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01105@rel:R25-11#2f4606dc
Content hash
2f4606dc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01105
Status: valid/unmigrated Version: rel:R25-11#85a53092 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_01105@rel:R25-11#85a53092
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0af1e1792026-09-30
  • R24-11rel:R24-11#2865a5e92026-10-14
  • R25-11rel:R25-11#85a530922026-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_01106]

constexpr Optional (Optional &&other) noexcept(std::is_nothrow_move_ constructible< T >::value);

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01106
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01106@rel:R25-11#1d68455e
Content hash
1d68455e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01106
Status: valid/unmigrated Version: rel:R25-11#5420cc51 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_01106@rel:R25-11#5420cc51
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a9088f022026-09-30
  • R24-11rel:R24-11#ded734802026-10-14
  • R25-11rel:R25-11#5420cc512026-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_01107]

template <typename... Args> explicit constexpr Optional (in_place_t, Args &&...) noexcept(std::is_nothrow_constructible< T, Args... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01107@rel:R25-11#15c3d7c2
Content hash
15c3d7c2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01107
Status: valid/unmigrated Version: rel:R25-11#0d478adc 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_01107@rel:R25-11#0d478adc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4f8cb42a2026-09-30
  • R24-11rel:R24-11#d6033a2e2026-10-14
  • R25-11rel:R25-11#0d478adc2026-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_01108]

template <typename U, typename... Args> explicit constexpr Optional (in_place_t, std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01108
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01108@rel:R25-11#988a2430
Content hash
988a2430
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01108
Status: valid/unmigrated Version: rel:R25-11#25dbc842 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_01108@rel:R25-11#25dbc842
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7769d6192026-09-30
  • R24-11rel:R24-11#030018c92026-10-14
  • R25-11rel:R25-11#25dbc8422026-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_01109]

template <typename U = T> {<cond-explicit-1>} constexpr Optional (U &&) noexcept(std::is_ nothrow_constructible< T, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

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

Gebruik

De constructorfunctie [SWS_CORE_01109] van de klasse ara::core::Optional wordt beschikbaar gesteld via de header #include "ara/core/optional.h". Als templateconstructor met de signatuur template <typename U = T> constexpr Optional(U&&) dient deze voor de directe initialisatie van een optionele waarde onder doorsturen van het argument van het type U&& naar het ingesloten waardetype T ([SWS_CORE_01102]). De semantiek volgt de bepaling in [optional], maar wijkt af door een expliciete voorwaarde voor de vrijheid van excepties: de functie is dan en slechts dan gespecificeerd als noexcept wanneer aan std::is_nothrow_constructible<T, U>::value is voldaan ([SWS_CORE_01109]).

Foutafhandeling en uitzonderingsveiligheid

Wat betreft uitzonderingsveiligheid is de aanroep geclassificeerd als conditionally exception safe ([SWS_CORE_01109]). Specifieke AUTOSAR-foutcodes en rapportagewegen via DET of DEM bestaan voor deze constructor niet; faalt de constructie van het doeltype T, dan wordt de desbetreffende exceptie van het type doorgegeven.

Interactie en gelijktijdigheid

De functie staat naast de standaardconstructor [SWS_CORE_01103] en de null-constructor [SWS_CORE_01104], die lege instanties aanmaken, evenals de kopieer- en verplaatsconstructors [SWS_CORE_01105] en [SWS_CORE_01106]. Bovendien dient ara::core::Optional als drager voor optionele retourwaarden in de foutafhandeling van ara::core::Result, bijvoorbeeld bij het opvragen van waarden via Ok() ([SWS_CORE_00770]) of fouten via Err() ([SWS_CORE_00772]). Interpretatie: bij gebrek aan expliciete toezeggingen over thread-safety in [SWS_CORE_01109] is de gelijktijdige aanroep van de constructor vermoedelijk alleen veilig wanneer het bronobject U beschermd is tegen gelijktijdige modificaties. Vraag Q-edf541fe968f3afe (open)

Deze gebruiksinstructie is automatisch gegenereerd. Maatgevend is de AUTOSAR-specificatie.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01109
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01109@rel:R25-11#60e2b8bf
Content hash
60e2b8bf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01109
Status: valid/unmigrated Version: rel:R25-11#7558e4db 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_01109@rel:R25-11#7558e4db
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5e482bc62026-09-30
  • R24-11rel:R24-11#8a9b95052026-10-14
  • R25-11rel:R25-11#7558e4db2026-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_01110]

template <typename U> {<cond-explicit-2>} Optional (const Optional< U > &) noexcept(std::is_ nothrow_constructible< T, const U & >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

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

Gebruik

De converterende kopieerconstructor van ara::core::Optional is beschikbaar via het headerbestand #include "ara/core/optional.h" [SWS_CORE_01110]. Deze dient voor het synchroon aanmaken van een Optional<T> uit een bestaande instantie const Optional<U>&. De specificatiemarkering {<cond-explicit-2>} betekent vermoedelijk dat de constructor als explicit is gedeclareerd, mits T niet impliciet uit const U& kan worden gegenereerd. Vraag Q-4a4adc2b59d1fa53 (open)

Foutafhandeling en exception-veiligheid

Voor deze constructor bestaan geen specifieke foutcodes, DET- of DEM-meldingen. De functie is geclassificeerd als voorwaardelijk uitzonderingsveilig (conditionally exception safe) [SWS_CORE_01110]. De noexcept-garantie geldt via noexcept(std::is_nothrow_constructible<T, const U&>::value) uitsluitend wanneer het doeltype T zonder excepties kan worden geconstrueerd uit const U& [SWS_CORE_01110]. Faalt het aanmaken van de doelwaarde, dan propageren excepties ongewijzigd.

Gelijktijdigheid en beperkingen

In tegenstelling tot andere functies zoals Ok() [SWS_CORE_00770] vermeldt de specificatie voor deze constructor geen thread-safety. Deze is vermoedelijk weliswaar re-entrant, maar gelijktijdige lees- of schrijftoegang tot het bronobject Optional<U> vereist externe synchronisatie. Vraag Q-a0534498f685f575 (open)

Samenspel

De constructor vult de overige initialisatiefuncties van ara::core::Optional aan, waaronder standaard-, null- en kopieerconstructors ([SWS_CORE_01103], [SWS_CORE_01104], [SWS_CORE_01105], [SWS_CORE_01106]) evenals de swap-operatie [SWS_CORE_01096]. Bovendien heeft het type een nauwe interactie met ara::core::Result, waarvan de methoden Ok() en Err() waarden of fouten blootstellen als Optional ([SWS_CORE_00770], [SWS_CORE_00772]).

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

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01110
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01110@rel:R25-11#e8a35077
Content hash
e8a35077
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01110
Status: valid/unmigrated Version: rel:R25-11#11b08505 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_01110@rel:R25-11#11b08505
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f7b346cb2026-09-30
  • R24-11rel:R24-11#a18434152026-10-14
  • R25-11rel:R25-11#11b085052026-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_01111]

template <typename U> {<cond-explicit-3>} Optional (Optional< U > &&) noexcept(std::is_ nothrow_constructible< T, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

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

De templatefunctie [SWS_CORE_01111] stelt de converterende move-constructor van de klasse ara::core::Optional uit het headerbestand #include "ara/core/optional.h" beschikbaar. Deze neemt een rvalue-referentie Optional<U>&& aan ter initialisatie van een instantie van Optional<T> en volgt het gedrag van [optional] met de gedocumenteerde afwijking van een voorwaardelijke noexcept-specificatie [SWS_CORE_01111]. De specificatieclausule {<cond-explicit-3>} stuurt bij wijze van interpretatie vermoedelijk of de conversie afhankelijk van eigenschappen van de typen T en U impliciet of expliciet plaatsvindt. Vraag Q-0b21a6eafb9414d8 (open)

Met betrekking tot foutafhandeling en exceptieafhandeling is de constructor geclassificeerd als voorwaardelijk uitzonderingsveilig (conditionally exception safe) [SWS_CORE_01111]. De uitvoering is dan en slechts dan noexcept als aan std::is_nothrow_constructible<T, U>::value is voldaan [SWS_CORE_01111]. Anders kunnen tijdens de constructie van de ingesloten waarde excepties optreden en naar de aanroeper worden gepropageerd.

Binnen ara::core::Optional vormt deze functie een aanvulling op de reguliere move-constructor [SWS_CORE_01106], de copy-constructor [SWS_CORE_01105] en de standaardconstructor [SWS_CORE_01103]. Daarnaast heeft het element een nauwe interactie met ara::core::Result, waarvan de methoden Ok() en Err() ingesloten waarden of fouten retourneren als ara::core::Optional (zoals in [SWS_CORE_00770], [SWS_CORE_00771] en [SWS_CORE_00772]), evenals met de hulpfunctie swap [SWS_CORE_01096].

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatiegegevens.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01111
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01111@rel:R25-11#1b044331
Content hash
1b044331
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01111
Status: valid/unmigrated Version: rel:R25-11#9d33a7e6 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_01111@rel:R25-11#9d33a7e6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#60888d082026-09-30
  • R24-11rel:R24-11#1297b71f2026-10-14
  • R25-11rel:R25-11#9d33a7e62026-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_01119]

template <typename... Args> T & emplace (Args &&...) noexcept(std::is_nothrow_constructible< T, Args &&... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

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

De lidfunctie emplace van de klasse ara::core::Optional dient ertoe om de bevatte waarde van het type T direct in het geheugen van het optionele object te creëren [SWS_CORE_01119]. De aanroep vindt synchroon plaats via het headerbestand ara/core/optional.h. Als parameter accepteert de functie een variabel argumentenpakket Args&&... en stuurt dit door naar de constructor van het type T; er wordt een lvalue-referentie naar de nieuw gecreëerde waarde geretourneerd (T&) [SWS_CORE_01119].

Wat betreft uitzonderingsafhandeling is de functie geclassificeerd als voorwaardelijk uitzonderingsveilig (conditionally exception safe) en heeft deze een voorwaardelijke noexcept-specificatie gebaseerd op std::is_nothrow_constructible<T, Args&&...>::value [SWS_CORE_01119]. Als de constructie van T een uitzondering genereert, geldt de uitzonderingsveiligheid van het onderliggende type; een noexcept-garantie geldt uitsluitend wanneer de constructie gegarandeerd geen uitzonderingen werpt. Specifieke foutcodes, DEM-gebeurtenissen of DET-meldingen zijn in de specificatie niet voorzien [SWS_CORE_01119].

Wat betreft concurrency zwijgt de specificatie; interpretatie: gelijktijdige schrijftoegang van meerdere threads tot dezelfde instantie van ara::core::Optional is zonder externe synchronisatie vermoedelijk niet thread-safe. Vraag Q-c11efb3f95001493 (open) Bovendien wordt een eerder aanwezige waarde bij herinitialisatie vermoedelijk vernietigd.

In het samenspel binnen ara::core::Optional bestaan alternatieve overloads: voor initialisatielijsten is een variant met std::initializer_list beschikbaar [SWS_CORE_01120], terwijl voor referentietypen ara::core::Optional<T&> een specifieke overload is gedefinieerd [SWS_CORE_01164]. Vergelijkbare emplace-mechanismen voor in-place-constructie bestaan in de module core ook voor containers zoals ara::core::Vector [SWS_CORE_01366], ara::core::Map [SWS_CORE_01458] en ara::core::Variant [SWS_CORE_01661], [SWS_CORE_01662], [SWS_CORE_01663], [SWS_CORE_01664].

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

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01119
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01119@rel:R25-11#89867c7a
Content hash
89867c7a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01119
Status: valid/unmigrated Version: rel:R25-11#a1151217 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_01119@rel:R25-11#a1151217
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#957655d82026-09-30
  • R24-11rel:R24-11#fb1be5602026-10-14
  • R25-11rel:R25-11#a11512172026-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_01120]

template <typename U, typename... Args> T & emplace (std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

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

De lidfunctie emplace uit [SWS_CORE_01120] dient ertoe om de bevatte waarde van een object van het type ara::core::Optional direct ter plaatse (in-place) te initialiseren. Deze accepteert een std::initializer_list<U> en optionele argumenten Args&&... en retourneert een referentie T& naar de nieuw gecreëerde waarde.

Wat betreft foutafhandeling en uitzonderingsveiligheid is de functie gespecificeerd als voorwaardelijk uitzonderingsveilig (conditionally exception safe). De noexcept-voorwaarde hangt conform [SWS_CORE_01120] er exact van af of het doeltype T met gebruikmaking van de std::initializer_list<U>& en de doorstuurargumenten uitzonderingsvrij kan worden geconstrueerd (std::is_nothrow_constructible). Dit vormt een expliciete afwijking van het gedrag in standaard-[optional].

Binnen het geheel van de kerncomponenten vult deze overload de generieke in-place-constructie zonder initialisatielijst uit [SWS_CORE_01119] aan. Voor referentiespecialisaties bestaat bovendien de toekenning via [SWS_CORE_01164]. Interpretatie: zoals gebruikelijk bij de standaard-tegenhanger in [optional], wordt bij aanwezigheid van een eerdere waarde deze vermoedelijk vóór de nieuwe constructie vernietigd. Vraag Q-b8a9274e43f0a0a9 (open)

Deze gebruiksinstructie is automatisch gegenereerd en is gebaseerd op de bepalingen van de specificatie.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01120
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01120@rel:R25-11#dd1cf1d7
Content hash
dd1cf1d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01120
Status: valid/unmigrated Version: rel:R25-11#19e525e9 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_01120@rel:R25-11#19e525e9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a140351c2026-09-30
  • R24-11rel:R24-11#d59521372026-10-14
  • R25-11rel:R25-11#19e525e92026-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_01129]

constexpr bool has_value () const noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01129
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01129@rel:R25-11#19a62ba0
Content hash
19a62ba0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01129
Status: valid/unmigrated Version: rel:R25-11#7383a7bc 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_01129@rel:R25-11#7383a7bc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9f849c3e2026-09-30
  • R24-11rel:R24-11#796326bb2026-10-14
  • R25-11rel:R25-11#7383a7bc2026-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_01128]

explicit constexpr operator bool () const noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01128
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01128@rel:R25-11#99b76f48
Content hash
99b76f48
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01128
Status: valid/unmigrated Version: rel:R25-11#cf39bd07 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_01128@rel:R25-11#cf39bd07
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#109a619b2026-09-30
  • R24-11rel:R24-11#b5a26c7d2026-10-14
  • R25-11rel:R25-11#cf39bd072026-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_01124]

constexpr const T & operator* () const & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01124
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01124@rel:R25-11#963fdb81
Content hash
963fdb81
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01124
Status: valid/unmigrated Version: rel:R25-11#6c6d6246 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_01124@rel:R25-11#6c6d6246
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#72e800a62026-09-30
  • R24-11rel:R24-11#6ba741822026-10-14
  • R25-11rel:R25-11#6c6d62462026-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_01125]

constexpr T & operator* () & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01125
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01125@rel:R25-11#574b08af
Content hash
574b08af
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01125
Status: valid/unmigrated Version: rel:R25-11#bbff2175 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_01125@rel:R25-11#bbff2175
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#50b8d1332026-09-30
  • R24-11rel:R24-11#da1307272026-10-14
  • R25-11rel:R25-11#bbff21752026-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_01126]

constexpr T && operator* () &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01126
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01126@rel:R25-11#16ae9a7c
Content hash
16ae9a7c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01126
Status: valid/unmigrated Version: rel:R25-11#eb9c6afb 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_01126@rel:R25-11#eb9c6afb
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e95005072026-09-30
  • R24-11rel:R24-11#6c670b852026-10-14
  • R25-11rel:R25-11#eb9c6afb2026-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_01127]

constexpr const T && operator* () const &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01127
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01127@rel:R25-11#e74c4f9b
Content hash
e74c4f9b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01127
Status: valid/unmigrated Version: rel:R25-11#0c38bfb2 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_01127@rel:R25-11#0c38bfb2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#930319d52026-09-30
  • R24-11rel:R24-11#d6b67a322026-10-14
  • R25-11rel:R25-11#0c38bfb22026-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_01122]

const T * operator-> () const noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. Function is not constexpr 3. A IsoStdBadOptionalAccessViolation may be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01122@rel:R25-11#df05b3d6
Content hash
df05b3d6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01122
Status: valid/unmigrated Version: rel:R25-11#a0430001 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_01122@rel:R25-11#a0430001
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#dede9c812026-09-30
  • R24-11rel:R24-11#33bcccf02026-10-14
  • R25-11rel:R25-11#a04300012026-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_01123]

T * operator-> () noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. Function is not constexpr 3. A IsoStdBadOptionalAccessViolation may be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01123@rel:R25-11#0f65f752
Content hash
0f65f752
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01123
Status: valid/unmigrated Version: rel:R25-11#e18dd6ba 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_01123@rel:R25-11#e18dd6ba
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c2d8053b2026-09-30
  • R24-11rel:R24-11#1d6944b82026-10-14
  • R25-11rel:R25-11#e18dd6ba2026-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_01113]

Optional & operator= (nullopt_t) & noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01113
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01113@rel:R25-11#2c3b222f
Content hash
2c3b222f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01113
Status: valid/unmigrated Version: rel:R25-11#18fcf54f 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_01113@rel:R25-11#18fcf54f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f26400562026-09-30
  • R24-11rel:R24-11#f4403dc22026-10-14
  • R25-11rel:R25-11#18fcf54f2026-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_01114]

Optional & operator= (const Optional &other) &noexcept(std::is_ nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_ assignable< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01114
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01114@rel:R25-11#ba61c506
Content hash
ba61c506
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01114
Status: valid/unmigrated Version: rel:R25-11#6ca0c9a7 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_01114@rel:R25-11#6ca0c9a7
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#53d125022026-09-30
  • R24-11rel:R24-11#d36bd1ce2026-10-14
  • R25-11rel:R25-11#6ca0c9a72026-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_01115]

Optional & operator= (Optional &&other) &noexcept(std::is_nothrow_ move_assignable< T >::value &&std::is_nothrow_move_constructible< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01115@rel:R25-11#368d19a6
Content hash
368d19a6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01115
Status: valid/unmigrated Version: rel:R25-11#16e267f2 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_01115@rel:R25-11#16e267f2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f4c255c12026-09-30
  • R24-11rel:R24-11#6bfd4afd2026-10-14
  • R25-11rel:R25-11#16e267f22026-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_01116]

template <typename U = T> Optional & operator= (U &&u) &noexcept(std::is_nothrow_constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01116
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01116@rel:R25-11#4f271795
Content hash
4f271795
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01116
Status: valid/unmigrated Version: rel:R25-11#3e4d73de 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_01116@rel:R25-11#3e4d73de
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#be342f912026-09-30
  • R24-11rel:R24-11#3fce07582026-10-14
  • R25-11rel:R25-11#3e4d73de2026-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_01117]

template <typename U> Optional & operator= (const Optional< U > &) &noexcept(std::is_ nothrow_constructible< T, const U &>::value &&std::is_nothrow_ assignable< T &, const U &>::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01117
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01117@rel:R25-11#fd255409
Content hash
fd255409
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01117
Status: valid/unmigrated Version: rel:R25-11#d5d06ba9 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_01117@rel:R25-11#d5d06ba9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#68ae4d392026-09-30
  • R24-11rel:R24-11#a7a5f0f32026-10-14
  • R25-11rel:R25-11#d5d06ba92026-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_01118]

template <typename U> Optional & operator= (Optional< U > &&) &noexcept(std::is_nothrow_ constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01118
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01118@rel:R25-11#736207be
Content hash
736207be
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01118
Status: valid/unmigrated Version: rel:R25-11#083436fb 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_01118@rel:R25-11#083436fb
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#615224ed2026-09-30
  • R24-11rel:R24-11#bc5224af2026-10-14
  • R25-11rel:R25-11#083436fb2026-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_01136]

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: e8663f9a82ee Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De memberfunctie reset van de klasse ara::core::Optional wordt beschikbaar gesteld via de header #include "ara/core/optional.h" en dient voor het resetten van een instantie [SWS_CORE_01136]. De functie heeft de signatuur void reset () noexcept;, accepteert geen parameters en levert geen retourwaarde op [SWS_CORE_01136]. Het gedrag volgt het corresponderende gebruik in [optional] [SWS_CORE_01136]; Interpretatie: Op basis van deze referentie vernietigt de aanroep vermoedelijk een eventueel aanwezige toestandswaarde en brengt deze de instantie over naar een onbezette toestand. Vraag Q-c819444ae1a7df1f (open)

Wat betreft foutafhandeling en uitzonderingsbehandeling is reset gedeclareerd als uitzonderingsveilig (exception safe) en met de identifier noexcept [SWS_CORE_01136]. Er worden noch uitzonderingen gegenereerd, noch foutcodes geretourneerd [SWS_CORE_01136].

In het samenspel met andere componenten van de Core-bibliotheek zijn de volgende verwijzingen relevant:

  • Voor optionele referenties ara::core::Optional<T&> staat een als constexpr gespecificeerde overload van reset ter beschikking, die eveneens noexcept en uitzonderingsveilig is [SWS_CORE_01165].
  • In tegenstelling tot Optional biedt het type ara::core::Bitset in de header ara/core/bitset.h eveneens reset-functies aan: een parameterloze variant die refereert aan de gemodificeerde bitset [SWS_CORE_01727], alsmede een positiegebonden overload met een Result-retourwaarde en controle op IsoStdOutOfRangeViolation [SWS_CORE_01728].

Deze tekst is automatisch gegenereerd. Alle gegevens zijn gebaseerd op de specificatieomvang van AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01136
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01136@rel:R25-11#f703045b
Content hash
f703045b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01136
Status: valid/unmigrated Version: rel:R25-11#6d9fb635 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_01136@rel:R25-11#6d9fb635
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bde8a7be2026-09-30
  • R24-11rel:R24-11#4d4a35c12026-10-14
  • R25-11rel:R25-11#6d9fb6352026-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_01121]

void swap (Optional &) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_assignable< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Conditions for the conditional exception safety are modified

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01121
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01121@rel:R25-11#8cd50549
Content hash
8cd50549
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01121
Status: valid/unmigrated Version: rel:R25-11#ec32d4dd 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_01121@rel:R25-11#ec32d4dd
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f13812c02026-09-30
  • R24-11rel:R24-11#6c6900ce2026-10-14
  • R25-11rel:R25-11#ec32d4dd2026-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_01130]

constexpr const T & value () const & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01130
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01130@rel:R25-11#896e1f34
Content hash
896e1f34
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01130
Status: valid/unmigrated Version: rel:R25-11#f3e37107 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_01130@rel:R25-11#f3e37107
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d33dc7152026-09-30
  • R24-11rel:R24-11#dd5d01932026-10-14
  • R25-11rel:R25-11#f3e371072026-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_01131]

constexpr T & value () & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01131@rel:R25-11#322569fb
Content hash
322569fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01131
Status: valid/unmigrated Version: rel:R25-11#bd11e736 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_01131@rel:R25-11#bd11e736
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#68af222c2026-09-30
  • R24-11rel:R24-11#3d037a0d2026-10-14
  • R25-11rel:R25-11#bd11e7362026-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_01132]

constexpr T && value () &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01132@rel:R25-11#eccb6e08
Content hash
eccb6e08
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01132
Status: valid/unmigrated Version: rel:R25-11#24f00cb3 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_01132@rel:R25-11#24f00cb3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#414433c42026-09-30
  • R24-11rel:R24-11#2e6187fb2026-10-14
  • R25-11rel:R25-11#24f00cb32026-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_01133]

constexpr const T && value () const &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01133
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01133@rel:R25-11#29726bc1
Content hash
29726bc1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01133
Status: valid/unmigrated Version: rel:R25-11#7b7d6eb7 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_01133@rel:R25-11#7b7d6eb7
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#54a5ac7f2026-09-30
  • R24-11rel:R24-11#f020185a2026-10-14
  • R25-11rel:R25-11#7b7d6eb72026-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_01134]

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

As per corresponding usage in [optional]

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

Gebruik

De template-memberfunctie value_or van de klasse ara::core::Optional conform [SWS_CORE_01134] dient voor het synchroon ophalen van de aanwezige waarde of een beschikbaar gestelde terugvalwaarde. Ze wordt ingevoegd via de header #include "ara/core/optional.h" en is met de signatuur template <typename U> constexpr T value_or (U &&) const &; gedeclareerd als constante lvalue-referentiemethode. Het gedrag volgt de overeenkomstige definitie van std::optional („As per corresponding usage in [optional]”), waardoor bij ingestelde inhoud de waarde T en anders de meegegeven standaardwaarde wordt geretourneerd.

Foutafhandeling en exception-veiligheid

Met betrekking tot foutafhandeling is de functie conform [SWS_CORE_01134] expliciet gespecificeerd als niet uitzonderingsveilig („not exception safe”). Foutcodes, DET- of DEM-meldingen zijn voor deze aanroep niet voorzien. Bij conversie- of kopieeroperaties opgeworpen excepties kunnen zodoende naar buiten propageren.

Samenspel

Binnen ara::core::Optional bestaan complementaire overloads van value_or:

  • [SWS_CORE_01135] stelt de rvalue-overload template <typename U> constexpr T value_or (U &&) &&; beschikbaar, die eveneens als niet uitzonderingsveilig („not exception safe”) is gedeclareerd en voor tijdelijke objecten geoptimaliseerd verplaatsen mogelijk maakt.
  • [SWS_CORE_01175] specificeert de overload voor de specialisatie ara::core::Optional<T&> met de signatuur template <typename U> constexpr T value_or (U &&u) const noexcept;, die in tegenstelling tot [SWS_CORE_01134] als uitzonderingsveilig („exception safe”) is aangemerkt.

Deze gebruiksinstructie is geautomatiseerd gegenereerd en is uitsluitend gebaseerd op de specificatiegegevens van AUTOSAR Release R25-11.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitnot exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01134
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01134@rel:R25-11#ddd67583
Content hash
ddd67583
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01134
Status: valid/unmigrated Version: rel:R25-11#7c04631e 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_01134@rel:R25-11#7c04631e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#60f23a902026-09-30
  • R24-11rel:R24-11#75fa1c852026-10-14
  • R25-11rel:R25-11#7c04631e2026-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_01135]

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

As per corresponding usage in [optional]

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

Gebruik

De rvalue-gekwalificeerde lidfunctie value_or van de templateklasse ara::core::Optional wordt beschikbaar gesteld via het headerbestand ara/core/optional.h [SWS_CORE_01135]. Overeenkomstig de verwijzing naar [optional] dient deze om de bevatte waarde synchroon op te vragen of een meegegeven vervangende waarde terug te leveren. Omdat deze aanroep gebonden is aan rvalue-referenties, wordt de bevatte waarde vermoedelijk via move-semantiek overgedragen, mits er een waarde aanwezig is; anders wordt het meegegeven argument geëvalueerd en geconverteerd. Vraag Q-e20f155d58dd0d72 (open)

Interactie en overbelastingen

De functie vult de const-lvalue-overbelasting [SWS_CORE_01134] aan, die hetzelfde fallback-mechanisme aanbiedt voor langlevende resp. niet-tijdelijke instanties. Voor specialisaties op referenties ara::core::Optional<T &> bestaat in afwijking hiervan een als noexcept gedeclareerde signatuur [SWS_CORE_01175], terwijl de algemene overbelasting is bedoeld voor rvalues van waardetypen.

Foutafhandeling en exception-veiligheid

De methode is expliciet gedeclareerd als not exception safe [SWS_CORE_01135]. Specifieke foutcodes, DET- of DEM-meldingen bestaan niet. Interpretatie: Potentiële uitzonderingen zijn vermoedelijk primair afkomstig van move-constructors of conversie-operatoren van de betrokken typen T en U, voor zover er bij de creatie van de retourwaarde fouten optreden. Vraag (open)

Deze tekst is gegenereerd door een AI en is uitsluitend gebaseerd op de specificaties van release R25-11.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitnot exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01135
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01135@rel:R25-11#3d020351
Content hash
3d020351
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01135
Status: valid/unmigrated Version: rel:R25-11#b12481cc 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_01135@rel:R25-11#b12481cc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4e564dbd2026-09-30
  • R24-11rel:R24-11#e796ceb42026-10-14
  • R25-11rel:R25-11#b12481cc2026-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_01112]

~Optional () noexcept(std::is_nothrow_destructible< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01112@rel:R25-11#4c6b0195
Content hash
4c6b0195
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01112
Status: valid/unmigrated Version: rel:R25-11#28cb7e57 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_01112@rel:R25-11#28cb7e57
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d0e776bc2026-09-30
  • R24-11rel:R24-11#56a370392026-10-14
  • R25-11rel:R25-11#28cb7e572026-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_01102]

using value_type = T;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01102
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01102@rel:R25-11#1cdc78ff
Content hash
1cdc78ff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01102
Status: valid/unmigrated Version: rel:R25-11#6430c943 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_01102@rel:R25-11#6430c943
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0d70273d2026-09-30
  • R24-11rel:R24-11#75d4d87e2026-10-14
  • R25-11rel:R25-11#6430c9432026-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