फ़ंक्शन Result< T &, E [SWS_CORE_00922] Upstream: RS_AP_00130
const T * operator-> () const noexcept;
Access the referred-to value.
उपयोग
सदस्य फ़ंक्शन const T * operator-> () const noexcept एक ara::core::Result<T &, E>-ऑब्जेक्ट [SWS_CORE_00922] के संदर्भित मान तक समकालिक पढ़ने की पहुँच प्रदान करता है। यह कोई तर्क नहीं लेता है और संदर्भित लक्ष्य ऑब्जेक्ट [SWS_CORE_00922] के लिए एक स्थिर सूचक (const T *) रिटर्न मान के रूप में प्रदान करता है। उपयोग के लिए, हेडर #include "ara/core/result.h" शामिल किया जाना चाहिए [SWS_CORE_00922]।
त्रुटि प्रबंधन
ऑपरेशन को noexcept के रूप में घोषित किया गया है और इसमें exception safe गुणधर्म है [SWS_CORE_00922]। यदि ऑब्जेक्ट में कोई मान नहीं है, तो पूर्व-शर्त का उल्लंघन (Violation) ResultWithNoValue होता है [SWS_CORE_00922]। इसलिए कॉल करने वालों को डीरेफरेंसिंग से पहले यह सुनिश्चित करना होगा कि इंस्टेंस वास्तव में एक मान्य मान रखता है।
समवर्तीता और प्रतिबंध
फ़ंक्शन को thread-safe निर्दिष्ट किया गया है [SWS_CORE_00922]। चूंकि यह एक स्थिर सदस्य फ़ंक्शन है, इसलिए एक ही इंस्टेंस पर समानांतर पठन सुरक्षित है। हालांकि, स्वयं लक्ष्य ऑब्जेक्ट तक पहुंच प्रकार T की थ्रेड-सुरक्षा गारंटियों के अधीन है।
इंटरैक्शन
यह ऑपरेटर गैर-स्थिर ओवरलोड T * operator-> () noexcept [SWS_CORE_00923] का स्थिर समकक्ष बनाता है। जबकि गैर-स्थिर संस्करण एक परिवर्तनीय पॉइंटर T* लौटाता है [SWS_CORE_00923], यह संस्करण संदर्भित इंस्टेंस तक अपरिवर्तनीय पहुँच को लागू करता है।
यह पाठ AUTOSAR विनिर्देश R25-11 के आधार पर एक AI द्वारा जनरेट किया गया था।
| 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#79b3a45b- Content hash
79b3a45b- 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 · जर्मन मूल