DEENESPTFRRUARHIKOZHNL

क्लास ara::core::Optional< T & >

[SWS_CORE_01150]

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

Specialization of for type T&

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

उपयोगकर्ता गाइडएआई जनित

किसी ऑब्जेक्ट के वैकल्पिक संदर्भ को समाहित करता है और गतिशील मेमोरी आवंटन के बिना सुरक्षित पहुंच सक्षम बनाता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 7a73f15cddcd उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

किसी ऑब्जेक्ट के वैकल्पिक संदर्भ को समाहित करता है और गतिशील मेमोरी आवंटन के बिना सुरक्षित पहुंच सक्षम बनाता है।

विशेषज्ञता ara::core::Optional<T &> तत्व प्रकार T & [SWS_CORE_01151] के साथ वैकल्पिक Lvalue संदर्भों के लिए एक प्रकार-सुरक्षित कंटेनर के रूप में कार्य करती है। यह गतिशील मेमोरी आवंटन के बिना रनटाइम पर संदर्भ को पुन: असाइन करने या रीसेट करने में सक्षम बनाती है [SWS_CORE_01164], [SWS_CORE_01165]। डिरेफ़्रेंसिंग ऑपरेटरों या संभावित रूप से त्रुटि फेंकने वाली एक्सेस विधि value() के माध्यम से किसी भी एक्सेस से पहले, एक मान्य लक्ष्य ऑब्जेक्ट की उपस्थिति की अनिवार्य रूप से जांच की जानी चाहिए [SWS_CORE_01172], [SWS_CORE_01173]।

संदर्भ

टेम्प्लेट विशेषज्ञता ara::core::Optional<T &> एक वैकल्पिक Lvalue संदर्भ के लिए एक प्रकार-सुरक्षित कंटेनर प्रदान करती है। अंतर्निहित तत्व प्रकार प्रकार उपनाम value_type द्वारा T & के रूप में निर्धारित किया जाता है [SWS_CORE_01151]। मान प्रकारों के लिए प्राथमिक टेम्पलेट के विपरीत, यह विशेषज्ञता एक पुन: प्रयोज्य, पुन: बाध्यकारी संदर्भ (Rebindable Reference) के रूप में कार्य करती है जो या तो प्रकार T के मौजूदा ऑब्जेक्ट को संदर्भित करती है या एक खाली स्थिति का प्रतिनिधित्व करती है। यह गतिशील मेमोरी पर कब्जा किए बिना सीधे कॉल करने वाले सॉफ़्टवेयर घटकों और संदर्भित लक्ष्य ऑब्जेक्ट के साथ इंटरैक्ट करता है।

जीवनचक्र

ara::core::Optional<T &> का एक इंस्टेंस हमेशा दो अच्छी तरह से नियंत्रित स्थितियों में से एक में होता है: खाली (अनाबंटित) या कब्जा किया हुआ (किसी ऑब्जेक्ट को संदर्भित करता है)। खाली स्थिति डिफ़ॉल्ट कंस्ट्रक्टर [SWS_CORE_01152] या nullopt_t [SWS_CORE_01153] के साथ आरंभीकरण के माध्यम से ली जाती है। एक संदर्भ के लिए बाइंडिंग निर्माण के समय एक संगत मान या संदर्भ [SWS_CORE_01156] पास करके और साथ ही रूपांतरण कंस्ट्रक्टर [SWS_CORE_01157] के माध्यम से होती है। कॉपी और मूव कंस्ट्रक्टर स्रोत कंटेनर की स्थिति को स्थानांतरित करते हैं [SWS_CORE_01154], [SWS_CORE_01155]।

रनटाइम पर स्थिति को गतिशील रूप से संशोधित किया जा सकता है: किसी मान या संदर्भ का असाइनमेंट Optional को पास किए गए लक्ष्य ऑब्जेक्ट [SWS_CORE_01162] से फिर से बांधता है, जो अन्य Optional कंटेनरों [SWS_CORE_01159], [SWS_CORE_01160], [SWS_CORE_01163] के असाइनमेंट ऑपरेटरों या विधि emplace [SWS_CORE_01164] के माध्यम से भी होता है। खाली स्थिति में संक्रमण reset [SWS_CORE_01165] को कॉल करके या nullopt_t [SWS_CORE_01161] के असाइनमेंट द्वारा होता है। इसके अलावा, swap दो इंस्टेंसों [SWS_CORE_01166] की परमाणु अदला-बदली की अनुमति देता है। डिफ़ॉल्ट डिस्ट्रक्टर रैपर इंस्टेंस [SWS_CORE_01158] के जीवनकाल को समाप्त करता है, लेकिन संभवतः संदर्भित मूल ऑब्जेक्ट को प्रभावित नहीं करता है, क्योंकि संदर्भ शब्दार्थ रूप से स्वामित्व स्थापित नहीं करता है। प्रश्न Q-3ba25e19c4b098ed (खुला)

diag_lifecycle Leer Leer (disengaged) Leer->Leer operator=(nullopt) reset() Belegt Belegt (engaged) Leer->Belegt Optional(u) emplace() operator=(u) Belegt->Leer reset() operator=(nullopt) Belegt->Belegt emplace() operator=(u)

स्थिति आरेख: ara::core::Optional<T &> के एक इंस्टेंस की स्थितियाँ और स्थिति संक्रमण। स्रोत: [SWS_CORE_01152], [SWS_CORE_01153], [SWS_CORE_01156], [SWS_CORE_01161], [SWS_CORE_01162], [SWS_CORE_01164], [SWS_CORE_01165]।

उपयोग पथ

एक विशिष्ट अनुप्रयोग चक्र में निर्माण, सत्यापन और संदर्भित लक्ष्य तक पढ़ने या संशोधित करने वाली पहुंच शामिल है:

  1. आरंभीकरण: एक इंस्टेंस खाली बनाया जाता है [SWS_CORE_01152] या किसी मौजूदा ऑब्जेक्ट के संदर्भ के साथ कब्जा कर लिया जाता है [SWS_CORE_01156]।
  2. स्थिति जांच: डिरेफ़्रेंस करने से पहले, कॉलर स्पष्ट रूपांतरण ऑपरेटर operator bool [SWS_CORE_01171] या विधि has_value [SWS_CORE_01172] के माध्यम से किसी संदर्भ की उपस्थिति की जांच करता है।
  3. पहुंच: संदर्भ की पुष्टि होने पर, संदर्भित ऑब्जेक्ट तक पहुंच डिरेफ़्रेंसिंग ऑपरेटरों operator* [SWS_CORE_01169], [SWS_CORE_01170] या तीर ऑपरेटर operator-> [SWS_CORE_01167], [SWS_CORE_01168] के माध्यम से होती है। वैकल्पिक रूप से, value_or संदर्भित मान या एक निर्दिष्ट डिफ़ॉल्ट मान लौटाता है [SWS_CORE_01175]।
  4. रीसेट करना: प्रसंस्करण पूरा होने के बाद, यदि आवश्यक हो तो reset के माध्यम से संदर्भ को स्पष्ट रूप से हटा दिया जाता है [SWS_CORE_01165]।
Nutzungsablauf von Optional<T &>कॉलरवैकल्पिकZielobjektOptional(ziel)Instanz erzeugthas_value()trueopthas_value() == trueoperator*()संदर्भ रिज़ॉल्व करेंT &reset()void

अनुक्रम आरेख: एक वैकल्पिक संदर्भ के आरंभीकरण, सत्यापन और डिरेफ़्रेंसिंग का विशिष्ट वर्कफ़्लो। स्रोत: [SWS_CORE_01156], [SWS_CORE_01165], [SWS_CORE_01170], [SWS_CORE_01172]।

त्रुटि परिदृश्य

त्रुटियाँ मुख्य रूप से खाली इंस्टेंसों पर समयपूर्व या अस्वीकार्य पहुंच प्रयासों के दौरान होती हैं। यदि ऑब्जेक्ट में कोई मान नहीं होने पर value() को कॉल किया जाता है, तो प्रकार IsoStdBadOption-alAccessViolation का उल्लंघन ट्रिगर होता है [SWS_CORE_01173], [SWS_CORE_01174]। तदनुसार, वर्ग के अधिकांश अन्य ऑपरेशनों के विपरीत value() को स्पष्ट रूप से अपवाद-सुरक्षित नहीं (not exception safe) के रूप में वर्गीकृत किया गया है।

operator* [SWS_CORE_01169], [SWS_CORE_01170] और साथ ही operator-> [SWS_CORE_01167], [SWS_CORE_01168] का उपयोग करके सीधे डिरेफ़्रेंसिंग भी श्रेणी IsoStdBadOption-alAccessViolation के उल्लंघन का दस्तावेजीकरण करते हैं यदि इंस्टेंस कोई संदर्भ नहीं रखता है। यद्यपि ये ऑपरेटर noexcept के साथ घोषित किए गए हैं, उनका उपयोग अनिवार्य रूप से पूर्व शर्त के अनुपालन की मांग करता है कि एक वैध संदर्भ मौजूद है।

यह मार्गदर्शिका AUTOSAR Adaptive R25-11 की विनिर्देश आवश्यकताओं के आधार पर एक AI प्रणाली द्वारा तैयार की गई थी।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

2

टाइप उपनाम

1

क्लास आरेख

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

G nara__core__Optional__T____62 Optional< T & > + Optional() + operator=() + ~Optional() + emplace() + reset() + swap() + has_value() + operator bool() + operator*() + Optional< T &() + value() + value_or()

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

Optional फ़ंक्शन 6

≙ [optional]

ओवरलोड Optional 6
constexpr Optional () noexcept; SWS_CORE_01152
constexpr Optional (nullopt_t) noexcept; SWS_CORE_01153
constexpr Optional (const Optional &other) noexcept=default; SWS_CORE_01154
constexpr Optional (Optional &&other) noexcept=default; SWS_CORE_01155
template <typename U = T> explicit constexpr Optional (U &&u) noexcept; SWS_CORE_01156
template <typename U> explicit constexpr Optional (Optional< U > const &other) noexcept; SWS_CORE_01157
~Optional फ़ंक्शन

≙ [optional]

~Optional () noexcept=default;

मेथड

emplace फ़ंक्शन

≙ [optional]

template <typename U = T> constexpr Optional & emplace (U &&u) noexcept;
has_value फ़ंक्शन

≙ [optional]

constexpr bool has_value () const noexcept;
Optional< T & फ़ंक्शन 2

≙ [optional]

ओवरलोड Optional< T & 2
T const * operator-> () const noexcept; SWS_CORE_01167
T * operator-> () noexcept; SWS_CORE_01168
reset फ़ंक्शन

≙ [optional]

constexpr void reset () noexcept;
swap फ़ंक्शन

≙ [optional]

constexpr void swap (Optional &other) noexcept;
value फ़ंक्शन 2

≙ [optional]

ओवरलोड value 2
constexpr T & value (); SWS_CORE_01173
constexpr T const & value () const; SWS_CORE_01174
value_or फ़ंक्शन

≙ [optional]

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

ऑपरेटर

operator bool फ़ंक्शन

≙ [optional]

explicit constexpr operator bool () const noexcept;
operator* फ़ंक्शन 2

≙ [optional]

ओवरलोड * 2
constexpr T const & operator* () const noexcept; SWS_CORE_01169
constexpr T & operator* () noexcept; SWS_CORE_01170
operator= फ़ंक्शन 5

≙ [optional]

ओवरलोड = 5
constexpr Optional & operator= (const Optional &other) & noexcept=default; SWS_CORE_01159
constexpr Optional & operator= (Optional &&other) & noexcept=default; SWS_CORE_01160
constexpr Optional & operator= (nullopt_t) & noexcept; SWS_CORE_01161
template <typename U = T> constexpr Optional & operator= (U &&u) & noexcept; SWS_CORE_01162
template <typename U = T> Optional & operator= (const Optional< U > &other) & noexcept; SWS_CORE_01163

टाइप उपनाम

value_type टाइप उपनाम

≙ [optional]

using value_type = T&;

मेथड का प्रलेखन

फ़ंक्शन Optional< T & [SWS_CORE_01167]

T const * operator-> () const noexcept;

As per corresponding usage in [optional]

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 89692a8124d3 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

टेम्पलेट क्लास ara::core::Optional<T &> का एलिमेंट एक्सेस ऑपरेटर operator-> संदर्भित ऑब्जेक्ट [SWS_CORE_01167] के सदस्यों तक समकालिक पहुँच के लिए उपयोग किया जाता है। फ़ंक्शन हेडर #include "ara/core/optional.h" में परिभाषित है, ara::core::Optional<T &> के स्कोप से संबंधित है और किसी भी पैरामीटर की अपेक्षा नहीं करता है [SWS_CORE_01167]। रिटर्न मान के रूप में, प्रकार T const * का एक पॉइंटर लौटाया जाता है, जो अंतर्निहित लक्ष्य ऑब्जेक्ट [SWS_CORE_01167] तक सीधे पढ़ने की पहुँच की अनुमति देता है। इस प्रकार, रिटर्न प्रकार स्थिर डेटा के सूचक से मेल खाता है, जो इस ऑपरेटर के माध्यम से संशोधक पहुंच को रोकता है।

त्रुटि प्रबंधन के संबंध में, विधि को noexcept के रूप में घोषित किया गया है और exception safe के रूप में वर्गीकृत किया गया है [SWS_CORE_01167]। हालाँकि, यदि इंस्टेंस में कोई मान नहीं है (If *this does not contain a value), तो विनिर्देश उल्लंघन के रूप में IsoStdBadOptionalAccessViolation का दस्तावेजीकरण करता है [SWS_CORE_01167]। रनटाइम पर त्रुटि स्थितियों से विश्वसनीय रूप से बचने के लिए, डीरेफरेंसिंग से पहले एप्लिकेशन सॉफ़्टवेयर को यह सुनिश्चित करना चाहिए कि वैकल्पिक संदर्भ मान्य रूप से ऑक्यूपाइड है।

समवर्तीता और कॉल संदर्भ के लिए, विनिर्देश किसी विशेष सुरक्षा तंत्र का उल्लेख नहीं करता है; संभवतः const-ऑपरेशन समवर्ती संशोधनों के विरुद्ध कोई आंतरिक सिंक्रनाइज़ेशन प्रदान नहीं करता है [SWS_CORE_01167]। प्रश्न Q-0ebf3ed1284fc0c1 (खुला) विनिर्देश के अनुसार, सामान्य व्यवहार वैकल्पिक प्रकारों के लिए C++ मानक के संगत उपयोग का पालन करता है (As per corresponding usage in [optional]) [SWS_CORE_01167]।

यह उपयोग संबंधी निर्देश AUTOSAR R25-11 विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
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_01167
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01167@rel:R25-11#346abe52
Content hash
346abe52
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
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#453ae4da2026-09-30
  • R24-11rel:R24-11#70a745e42026-10-14
  • R25-11rel:R25-11#619d01d42026-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

फ़ंक्शन Optional< T & [SWS_CORE_01168]

T * operator-> () noexcept;

As per corresponding usage in [optional]

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: f85c6d08317d उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Optional<T &> का ओवरलोडिंग ऑपरेटर operator-> इनकैप्सुलेटेड संदर्भ ([SWS_CORE_01168]) तक समकालिक सदस्य एक्सेस को सक्षम बनाता है। फ़ंक्शन हेडर फ़ाइल ara/core/optional.h के माध्यम से प्रदान किया गया है और इसके लिए किसी कॉल पैरामीटर की आवश्यकता नहीं है। कॉल किए जाने पर, यह संदर्भित लक्ष्य ऑब्जेक्ट पर प्रकार T * का एक पॉइंटर लौटाता है, जिसके माध्यम से इंस्टेंस के सदस्यों को सीधे संबोधित किया जा सकता है ([SWS_CORE_01168])। इस प्रक्रिया में शब्दार्थ C++ मानक ([SWS_CORE_01168]) में [optional] के उपयोग से मेल खाता है।

त्रुटि सुरक्षा के संबंध में, ऑपरेटर को noexcept के रूप में घोषित किया गया है और अपवाद-सुरक्षित (“exception safe”) के रूप में वर्गीकृत किया गया है ([SWS_CORE_01168])। यदि इंस्टेंस में कोई मान नहीं है (*this does not contain a value), तो श्रेणी IsoStdBadOptionalAccessViolation का एक्सेस उल्लंघन होता है ([SWS_CORE_01168])। व्याख्या: चूंकि हस्ताक्षर noexcept के साथ घोषित किया गया है, संभवतः इस अमान्य स्थिति को एक नियमित C++ अपवाद फेंककर नियंत्रित नहीं किया जाना चाहिए, बल्कि इसके परिणामस्वरूप एक मानकीकृत त्रुटि प्रबंधन या प्रोग्राम समाप्ति होनी चाहिए। प्रश्न Q-c3ef91b84a00cae8 (खुला)

कॉल की पूर्वशर्त के रूप में, डेवलपर को निष्पादन से पहले यह सुनिश्चित करना होगा कि Optional ऑब्जेक्ट में वास्तव में कोई मान है। अधिभोग स्थिति की पूर्व जांच के बिना असुरक्षित पहुंच ऑपरेटर की पूर्वशर्त का उल्लंघन करती है ([SWS_CORE_01168])।

यह पाठ स्वचालित रूप से बनाया गया था। तकनीकी विवरण विनिर्देश के संदर्भों द्वारा समर्थित हैं।

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
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_01168
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01168@rel:R25-11#65836c6b
Content hash
65836c6b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01168
Status: valid/unmigrated Version: rel:R25-11#df3c1201 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_01168@rel:R25-11#df3c1201
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#62076e1a2026-09-30
  • R24-11rel:R24-11#3761249b2026-10-14
  • R25-11rel:R25-11#df3c12012026-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

फ़ंक्शन Optional [SWS_CORE_01152]

constexpr Optional () noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01152@rel:R25-11#f8b67148
Content hash
f8b67148
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01152
Status: valid/unmigrated Version: rel:R25-11#bd774096 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_01152@rel:R25-11#bd774096
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#203f559e2026-09-30
  • R24-11rel:R24-11#5f8d3df42026-10-14
  • R25-11rel:R25-11#bd7740962026-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

फ़ंक्शन Optional [SWS_CORE_01153]

constexpr Optional (nullopt_t) noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01153@rel:R25-11#be076b97
Content hash
be076b97
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01153
Status: valid/unmigrated Version: rel:R25-11#a42355d6 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_01153@rel:R25-11#a42355d6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d49495ac2026-09-30
  • R24-11rel:R24-11#4189d3352026-10-14
  • R25-11rel:R25-11#a42355d62026-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

फ़ंक्शन Optional [SWS_CORE_01154]

constexpr Optional (const Optional &other) noexcept=default;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01154@rel:R25-11#2a080a79
Content hash
2a080a79
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01154
Status: valid/unmigrated Version: rel:R25-11#6343a19e 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_01154@rel:R25-11#6343a19e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c9cbf44b2026-09-30
  • R24-11rel:R24-11#67a352912026-10-14
  • R25-11rel:R25-11#6343a19e2026-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

फ़ंक्शन Optional [SWS_CORE_01155]

constexpr Optional (Optional &&other) noexcept=default;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01155
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01155@rel:R25-11#4cdd138f
Content hash
4cdd138f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01155
Status: valid/unmigrated Version: rel:R25-11#63fd67a5 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_01155@rel:R25-11#63fd67a5
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1cfb040f2026-09-30
  • R24-11rel:R24-11#4e8aeb8f2026-10-14
  • R25-11rel:R25-11#63fd67a52026-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

फ़ंक्शन Optional [SWS_CORE_01156]

template <typename U = T> explicit constexpr Optional (U &&u) noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01156
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01156@rel:R25-11#2e29c63b
Content hash
2e29c63b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01156
Status: valid/unmigrated Version: rel:R25-11#20a661bc 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_01156@rel:R25-11#20a661bc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f57f8ec42026-09-30
  • R24-11rel:R24-11#e42ae9492026-10-14
  • R25-11rel:R25-11#20a661bc2026-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

फ़ंक्शन Optional [SWS_CORE_01157]

template <typename U> explicit constexpr Optional (Optional< U > const &other) noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01157
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01157@rel:R25-11#8eb42a6c
Content hash
8eb42a6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01157
Status: valid/unmigrated Version: rel:R25-11#9d72d212 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_01157@rel:R25-11#9d72d212
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#818d85522026-09-30
  • R24-11rel:R24-11#4a2fbbd72026-10-14
  • R25-11rel:R25-11#9d72d2122026-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

फ़ंक्शन emplace [SWS_CORE_01164]

template <typename U = T> constexpr Optional & emplace (U &&u) noexcept;

As per corresponding usage in [optional]

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: eb9f72cc598f उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Optional<T&> का टेम्पलेट मेंबर फ़ंक्शन emplace एक वैकल्पिक कंटेनर में संदर्भ असाइन करने या सेट करने का काम करता है ([SWS_CORE_01164])। फ़ंक्शन हेडर फ़ाइल #include "ara/core/optional.h" के माध्यम से परिभाषित किया गया है ([SWS_CORE_01164])।

उपयोग और सिमेंटिक्स

कॉल सिंक्रोनस रूप से होती है और पैरामीटर के रूप में U&& प्रकार का फ़ॉरवर्डिंग संदर्भ u (डिफ़ॉल्ट रूप से U = T) स्वीकार करती है ([SWS_CORE_01164])। व्याख्या: तर्क u संभवतः Optional में रखे गए संदर्भ से फिर से बाँध दिया जाता है, बिना किसी नए ऑब्जेक्ट का निर्माण किए। प्रश्न Q-55c9eca385e9e496 (खुला) रिटर्न मान के रूप में, emplace स्वयं Optional के इंस्टेंस के लिए एक lvalue संदर्भ प्रदान करता है (Optional &), जो संचालन की चेनिंग को सक्षम करता है ([SWS_CORE_01164])। constexpr के रूप में घोषणा के कारण, कॉल का मूल्यांकन संकलन समय पर कॉन्सटेंट एक्सप्रेशन में भी किया जा सकता है ([SWS_CORE_01164])।

त्रुटि प्रबंधन और अपवाद सुरक्षा

ऑपरेशन को noexcept के रूप में घोषित किया गया है और इसका वर्गीकरण exception safe है ([SWS_CORE_01164])। विनिर्देश उद्धरण में विशिष्ट त्रुटि कोड, DET या DEM संदेश प्रदान नहीं किए गए हैं; C++ अपवादों के कारण विफलता से इंकार किया गया है ([SWS_CORE_01164])।

परस्पर क्रिया और विभेदन

मान प्रकारों के लिए ara::core::Optional<T> के प्राथमिक टेम्पलेट प्रकारों के विपरीत, जो समाहित ऑब्जेक्ट को इन-प्लेस निर्मित करते हैं, एक संदर्भ T& लौटाते हैं और केवल सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) या सशर्त रूप से noexcept होते हैं ([SWS_CORE_01119], [SWS_CORE_01120]), Optional<T&> के लिए यह ओवरलोड सख्त अपवाद-मुक्तता की गारंटी देता है ([SWS_CORE_01164])। मॉड्यूल के अन्य कंटेनर जैसे ara::core::Vector ([SWS_CORE_01366]), ara::core::Map ([SWS_CORE_01458]) या ara::core::Variant ([SWS_CORE_01661]) भी emplace विधियाँ प्रदान करते हैं, लेकिन उनके स्वतंत्र सिमेंटिक्स और भिन्न सुरक्षा स्तर हैं।

यह उपयोग नोट AUTOSAR Adaptive R25-11 के विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01164@rel:R25-11#5da85c1e
Content hash
5da85c1e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01164
Status: valid/unmigrated Version: rel:R25-11#ae44b1d3 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_01164@rel:R25-11#ae44b1d3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#30e3d4342026-09-30
  • R24-11rel:R24-11#62874e892026-10-14
  • R25-11rel:R25-11#ae44b1d32026-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

फ़ंक्शन has_value [SWS_CORE_01172]

constexpr bool has_value () const noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01172
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01172@rel:R25-11#459dda96
Content hash
459dda96
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01172
Status: valid/unmigrated Version: rel:R25-11#401f0d0a 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_01172@rel:R25-11#401f0d0a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a395f6112026-09-30
  • R24-11rel:R24-11#fd763aff2026-10-14
  • R25-11rel:R25-11#401f0d0a2026-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

फ़ंक्शन operator bool [SWS_CORE_01171]

explicit constexpr operator bool () const noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01171
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01171@rel:R25-11#e4f9988d
Content hash
e4f9988d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01171
Status: valid/unmigrated Version: rel:R25-11#35eaa065 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_01171@rel:R25-11#35eaa065
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f211fcbd2026-09-30
  • R24-11rel:R24-11#59297dd12026-10-14
  • R25-11rel:R25-11#35eaa0652026-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

फ़ंक्शन operator* [SWS_CORE_01169]

constexpr T const & operator* () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
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_01169
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01169@rel:R25-11#a4c00943
Content hash
a4c00943
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01169
Status: valid/unmigrated Version: rel:R25-11#7af50405 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_01169@rel:R25-11#7af50405
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5244c30f2026-09-30
  • R24-11rel:R24-11#058fa3292026-10-14
  • R25-11rel:R25-11#7af504052026-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

फ़ंक्शन operator* [SWS_CORE_01170]

constexpr T & operator* () noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
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_01170
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01170@rel:R25-11#976a756d
Content hash
976a756d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01170
Status: valid/unmigrated Version: rel:R25-11#cf473125 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_01170@rel:R25-11#cf473125
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#fbc1818d2026-09-30
  • R24-11rel:R24-11#036016592026-10-14
  • R25-11rel:R25-11#cf4731252026-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

फ़ंक्शन operator= [SWS_CORE_01159]

constexpr Optional & operator= (const Optional &other) & noexcept=default;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01159
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01159@rel:R25-11#26b3d4f7
Content hash
26b3d4f7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01159
Status: valid/unmigrated Version: rel:R25-11#3efb9211 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_01159@rel:R25-11#3efb9211
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0ceb335f2026-09-30
  • R24-11rel:R24-11#7729a6cc2026-10-14
  • R25-11rel:R25-11#3efb92112026-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

फ़ंक्शन operator= [SWS_CORE_01160]

constexpr Optional & operator= (Optional &&other) & noexcept=default;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01160@rel:R25-11#075b11ed
Content hash
075b11ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01160
Status: valid/unmigrated Version: rel:R25-11#df5ae80f 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_01160@rel:R25-11#df5ae80f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a47c96572026-09-30
  • R24-11rel:R24-11#7fccea222026-10-14
  • R25-11rel:R25-11#df5ae80f2026-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

फ़ंक्शन operator= [SWS_CORE_01161]

constexpr Optional & operator= (nullopt_t) & noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01161
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01161@rel:R25-11#dd555567
Content hash
dd555567
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01161
Status: valid/unmigrated Version: rel:R25-11#47d11828 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_01161@rel:R25-11#47d11828
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#224804b32026-09-30
  • R24-11rel:R24-11#07da73332026-10-14
  • R25-11rel:R25-11#47d118282026-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

फ़ंक्शन operator= [SWS_CORE_01162]

template <typename U = T> constexpr Optional & operator= (U &&u) & noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01162@rel:R25-11#90e2982d
Content hash
90e2982d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01162
Status: valid/unmigrated Version: rel:R25-11#48bce027 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_01162@rel:R25-11#48bce027
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#043f8bfa2026-09-30
  • R24-11rel:R24-11#e310521a2026-10-14
  • R25-11rel:R25-11#48bce0272026-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

फ़ंक्शन operator= [SWS_CORE_01163]

template <typename U = T> Optional & operator= (const Optional< U > &other) & noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01163@rel:R25-11#c03eb481
Content hash
c03eb481
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01163
Status: valid/unmigrated Version: rel:R25-11#13eb961a 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_01163@rel:R25-11#13eb961a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#963c28f12026-09-30
  • R24-11rel:R24-11#5bc3f9cf2026-10-14
  • R25-11rel:R25-11#13eb961a2026-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

फ़ंक्शन reset [SWS_CORE_01165]

constexpr void reset () noexcept;

As per corresponding usage in [optional]

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: b70ef11c6c14 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Optional<T&> का सदस्य फ़ंक्शन reset [SWS_CORE_01165] के अनुसार एक वैकल्पिक संदर्भ ऑब्जेक्ट को रीसेट करने का काम करता है। इसे हेडर #include "ara/core/optional.h" के माध्यम से घोषित किया जाता है, यह कोई पैरामीटर नहीं लेता है और इसका कोई वापसी मान नहीं होता है (void)। constexpr-फ़ंक्शन के रूप में, इसका उपयोग कंपाइल-टाइम मूल्यांकनों में भी किया जा सकता है; इसका निष्पादन समकालिक रूप से होता है। Interpretation: [optional] में उपयोग के सामान्य संदर्भ के अनुसार, कॉल संभवतः इंस्टेंस को बिना बाउंड संदर्भ (disengaged) वाली स्थिति में डाल देता है, जिससे ऑब्जेक्ट में बाद में कोई मान नहीं रहता है। प्रश्न Q-edf521c7744139d2 (खुला)

त्रुटि प्रबंधन के संबंध में, फ़ंक्शन [SWS_CORE_01165] के अनुसार पहचानकर्ता noexcept से युक्त है और अपवाद-सुरक्षित (“exception safe”) के रूप में वर्गीकृत है। इसलिए एक कॉल कोई अपवाद नहीं फेंकता है और किसी त्रुटि कोड की रिपोर्ट नहीं करता है; पेलोड में इस फ़ंक्शन के लिए कोई विशिष्ट DET या DEM संदेश प्रदान नहीं किए गए हैं।

मॉड्यूल संदर्भ में, यह कार्यान्वयन [SWS_CORE_01136] के अनुसार सामान्य टेम्प्लेट क्लास ara::core::Optional से भिन्न है, जिसकी reset-विधि को constexpr के रूप में घोषित नहीं किया गया है। मॉड्यूल में अन्य reset-फ़ंक्शन ara::core::Bitset के लिए मौजूद हैं, जहाँ reset() [SWS_CORE_01727] के अनुसार ऑब्जेक्ट का संदर्भ लौटाता है या स्थिति विनिर्देश के साथ [SWS_CORE_01728] के अनुसार ara::core::Result लौटाता है और अमान्य इंडेक्स पर IsoStdOutOfRangeViolation उत्पन्न करता है।

यह पाठ विनिर्देश डेटा के आधार पर एक AI प्रणाली द्वारा तैयार किया गया था।

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01165@rel:R25-11#103a8fca
Content hash
103a8fca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01165
Status: valid/unmigrated Version: rel:R25-11#96b9362b 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_01165@rel:R25-11#96b9362b
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c553061a2026-09-30
  • R24-11rel:R24-11#a55359f52026-10-14
  • R25-11rel:R25-11#96b9362b2026-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

फ़ंक्शन swap [SWS_CORE_01166]

constexpr void swap (Optional &other) noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01166
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01166@rel:R25-11#6f733534
Content hash
6f733534
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01166
Status: valid/unmigrated Version: rel:R25-11#47897cb1 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_01166@rel:R25-11#47897cb1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#036ffd582026-09-30
  • R24-11rel:R24-11#c68cc8362026-10-14
  • R25-11rel:R25-11#47897cb12026-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

फ़ंक्शन value [SWS_CORE_01173]

constexpr T & value ();

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitnot 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_01173
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01173@rel:R25-11#aa19703b
Content hash
aa19703b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01173
Status: valid/unmigrated Version: rel:R25-11#bb97e429 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_01173@rel:R25-11#bb97e429
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a59124572026-09-30
  • R24-11rel:R24-11#c5e7fb242026-10-14
  • R25-11rel:R25-11#bb97e4292026-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

फ़ंक्शन value [SWS_CORE_01174]

constexpr T const & value () const;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitnot 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_01174
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01174@rel:R25-11#80a5ecb3
Content hash
80a5ecb3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01174
Status: valid/unmigrated Version: rel:R25-11#3d7b55ac 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_01174@rel:R25-11#3d7b55ac
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ded2d5c12026-09-30
  • R24-11rel:R24-11#9a78cd172026-10-14
  • R25-11rel:R25-11#3d7b55ac2026-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

फ़ंक्शन value_or [SWS_CORE_01175]

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

As per corresponding usage in [optional]

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 6b4e9a7193a7 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

स्पेशलाइज़ेशन ara::core::Optional<T&> का मेम्बर फ़ंक्शन value_or हेडर फ़ाइल #include "ara/core/optional.h" के माध्यम से उपलब्ध कराया जाता है [SWS_CORE_01175]। एक टेम्पलेट फ़ंक्शन के रूप में, यह वैकल्पिक मान के रूप में एक पैरामीटर U&& u लेता है और समकालिक रूप से T प्रकार का एक परिणामी मान लौटाता है। व्याख्या: विनिर्देश विवरण “As per corresponding usage in [optional]” के अनुसार, जब ऑब्जेक्ट भरा हो तो फ़ंक्शन को संदर्भ द्वारा धारित मान लौटाना चाहिए, और अन्यथा फ़ॉलबैक मान u। प्रश्न Q-c050380198abf06b (खुला)

त्रुटि हैंडलिंग के लिए, विनिर्देश पूर्ण अपवाद सुरक्षा (exception safe) की गारंटी देता है और मेथड को noexcept के रूप में घोषित करता है [SWS_CORE_01175]। इस ऑपरेशन के लिए न तो त्रुटि कोड और न ही त्रुटि या डायग्नोस्टिक मॉनिटर को सूचनाएं प्रदान की गई हैं। चूंकि मेम्बर फ़ंक्शन को constexpr और साथ ही const के रूप में भी योग्य किया गया है, इसलिए इसे ऑब्जेक्ट के संशोधन के बिना कंपाइल-समय पर कॉन्सटेंट एक्सप्रेशन्स में भी मूल्यांकित किया जा सकता है [SWS_CORE_01175]।

मॉड्यूल core के संदर्भ में, यह फ़ंक्शन गैर-संदर्भात्मक प्रकारों के लिए सामान्य ओवरलोड्स से निकटता से संबंधित है। जबकि ara::core::Optional<T&> के लिए [SWS_CORE_01175] को exception safe के रूप में घोषित किया गया है, विनिर्देश प्राथमिक टेम्पलेट ara::core::Optional के संबंधित वेरिएंट्स – const lvalue ओवरलोड [SWS_CORE_01134] और rvalue ओवरलोड [SWS_CORE_01135] दोनों – को क्रमशः not exception safe के रूप में वर्गीकृत करता है।

यह उपयोग निर्देश विनिर्देश के आधार पर एक AI द्वारा तैयार किया गया था।

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01175
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01175@rel:R25-11#857cd187
Content hash
857cd187
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01175
Status: valid/unmigrated Version: rel:R25-11#b15a3240 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_01175@rel:R25-11#b15a3240
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#07a50f3f2026-09-30
  • R24-11rel:R24-11#b275cdd32026-10-14
  • R25-11rel:R25-11#b15a32402026-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

फ़ंक्शन ~Optional [SWS_CORE_01158]

~Optional () noexcept=default;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01158
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01158@rel:R25-11#1c981f98
Content hash
1c981f98
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01158
Status: valid/unmigrated Version: rel:R25-11#9f329d75 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_01158@rel:R25-11#9f329d75
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5583615b2026-09-30
  • R24-11rel:R24-11#8b55e5d62026-10-14
  • R25-11rel:R25-11#9f329d752026-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

टाइप उपनामों का प्रलेखन

टाइप उपनाम value_type [SWS_CORE_01151]

using value_type = T&;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01151@rel:R25-11#60823404
Content hash
60823404
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01151
Status: valid/unmigrated Version: rel:R25-11#53609b21 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_01151@rel:R25-11#53609b21
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ec6b63872026-09-30
  • R24-11rel:R24-11#03a4e1d12026-10-14
  • R25-11rel:R25-11#53609b212026-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