functie Optional< T & [SWS_CORE_01167]
T const * operator-> () const noexcept;
As per corresponding usage in [optional]
De elementtoegangsoperator operator-> van de templateklasse ara::core::Optional<T &> dient voor synchrone toegang tot members van het gereferentieerde object [SWS_CORE_01167]. De functie is gedefinieerd in header #include "ara/core/optional.h", behoort tot de scope van ara::core::Optional<T &> en verwacht geen parameters [SWS_CORE_01167]. Als retourwaarde wordt een pointer van het type T const * geretourneerd, die directe leestoegang tot het onderliggende doelobject biedt [SWS_CORE_01167]. Daarmee komt het retourtype overeen met een pointer naar constante data, waardoor modifiërende toegang via deze operator wordt verhinderd.
Wat betreft foutafhandeling is de methode gedeclareerd als noexcept en geclassificeerd als exception safe [SWS_CORE_01167]. Bevat de instantie echter geen waarde (If *this does not contain a value), dan documenteert de specificatie als schending een IsoStdBadOptionalAccessViolation [SWS_CORE_01167]. Vóór dereferentie moet de toepassingssoftware er derhalve voor zorgen dat de optionele referentie geldig is ingesteld, om fouttoestanden tijdens runtime betrouwbaar te voorkomen.
Voor concurrency en aanroepcontext noemt de specificatie geen afzonderlijke beveiligingsmechanismen; vermoedelijk biedt de const-operatie geen interne synchronisatie tegen concurrerende modificaties [SWS_CORE_01167]. Vraag Q-0ebf3ed1284fc0c1 (open) Het algemene gedrag richt zich volgens de specificatie naar het corresponderende gebruik van de C++-standaard voor optionele typen (As per corresponding usage in [optional]) [SWS_CORE_01167].
Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie AUTOSAR R25-11.
| Header-Datei | #include "ara/core/optional.h" |
|---|---|
| Scope | class ara::core::Optional< T & > |
| Exception-Sicherheit | 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_01167- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_01167@rel:R25-11#2727cbb0- Content hash
2727cbb0- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01167
Status: valid/unmigrated
Version: rel:R25-11#619d01d4
Versionshistorie & Revisions (1 transition, 3 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_CORE_01167@rel:R25-11#619d01d4
Recorded Revisions (3):
- R25-11
rel:R25-11#453ae4da2026-09-30 - R24-11
rel:R24-11#70a745e42026-10-14 - R25-11
rel:R25-11#619d01d42026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · Duits origineel