fonction Result< T &, E [SWS_CORE_00922] Upstream: RS_AP_00130
const T * operator-> () const noexcept;
Access the referred-to value.
Utilisation
La fonction membre const T * operator-> () const noexcept permet l'accès en lecture synchrone à la valeur référencée d'un objet ara::core::Result<T &, E> [SWS_CORE_00922]. Elle ne prend aucun argument et fournit comme valeur de retour un pointeur constant (const T *) vers l'objet cible référencé [SWS_CORE_00922]. Pour l'utilisation, l'en-tête #include "ara/core/result.h" doit être inclus [SWS_CORE_00922].
Gestion des erreurs
L'opération est déclarée comme noexcept et possède la propriété exception safe [SWS_CORE_00922]. Si l'objet ne contient aucune valeur, il s'agit d'une violation de précondition (Violation) ResultWithNoValue [SWS_CORE_00922]. Les appelants doivent donc s'assurer avant le déréférencement que l'instance contient effectivement une valeur valide.
Concurrence et restrictions
La fonction est spécifiée comme thread-safe [SWS_CORE_00922]. S'agissant d'une fonction membre constante, l'accès parallèle en lecture à la même instance est sûr. L'accès à l'objet cible lui-même est toutefois soumis aux garanties de sécurité des threads du type T.
Interaction
L'opérateur constitue le pendant constant de la surcharge non constante T * operator-> () noexcept [SWS_CORE_00923]. Alors que la variante non constante renvoie un pointeur modifiable T* [SWS_CORE_00923], cette version impose l'accès immuable à l'instance référencée.
Ce texte a été généré par une IA sur la base de la spécification AUTOSAR 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#86622bf0- Content hash
86622bf0- 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 · Original allemand