function Result< T &, E [SWS_CORE_00922] Upstream: RS_AP_00130
const T * operator-> () const noexcept;
Access the referred-to value.
use
The member function const T * operator-> () const noexcept enables synchronous read access to the referenced value of a ara::core::Result<T &, E> object [SWS_CORE_00922]. It takes no arguments and provides a const pointer (const T *) to the referenced target object as its return value [SWS_CORE_00922]. For usage, header #include "ara/core/result.h" must be included [SWS_CORE_00922].
Error handling
The operation is declared as noexcept and possesses the property exception safe [SWS_CORE_00922]. If the object contains no value, a precondition violation (violation) ResultWithNoValue occurs [SWS_CORE_00922]. Callers must therefore ensure before dereferencing that the instance indeed holds a valid value.
Concurrency and Limitations
The function is specified as thread-safe [SWS_CORE_00922]. Since it is a const member function, concurrent read access to the same instance is safe. However, access to the target object itself is subject to the thread safety guarantees of type T.
Interaction
The operator constitutes the const counterpart to the non-const overload T * operator-> () noexcept [SWS_CORE_00923]. While the non-const variant returns a modifiable pointer T* [SWS_CORE_00923], this version enforces immutable access to the referenced instance.
This text was generated by an AI based on the AUTOSAR specification R25-11.
| Header-Datei | #include "ara/core/result.h" |
|---|---|
| Scope | class ara::core::Result< T &, E > |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
| Verletzungen (Violations) | ResultWithNoValue- If *this does not contain a value. Violation |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| const T * | a const pointer to the referred-to value |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CORE_00922- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_00922@rel:R25-11#1000585b- Content hash
1000585b- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00922
Status: valid/unmigrated
Version: rel:R25-11#9f451f5a
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_00922@rel:R25-11#9f451f5a
Recorded Revisions (3):
- R25-11
rel:R25-11#1000585b2026-09-30 - R24-11
rel:R24-11#9f451f5a2026-10-14 - R25-11
rel:R25-11#9f451f5a2026-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 · German original