DEENESPTFRRUARHIKOZHNL

فئة ara::core::Optional

[SWS_CORE_01033]

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

Implementation of std::optional<T> type from [optional.syn]

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

دليل المستخدممولَّد بالذكاء الاصطناعي

يغلف قيمة موجودة اختياريًا بطريقة آمنة الأنواع في ذاكرة المكدس ويتيح الوصول المعتمد على الحالة.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: b7fd51442c86 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يغلف قيمة موجودة اختياريًا بطريقة آمنة الأنواع في ذاكرة المكدس ويتيح الوصول المعتمد على الحالة.

توفر الفئة ara::core::Optional تطبيقًا متوافقًا مع المعايير لـ std::optional<T> لتغليف قيم من النوع value_type بشكل آمن الأنواع وبدون تخصيص ديناميكي في المكدس [SWS_CORE_01102]. تتحقق التطبيقات من حالة الشغل عبر has_value() [SWS_CORE_01129] وتصل إلى المحتوى عبر value() أو العوامل. ويجب تجنب الوصول إلى مثيلات فارغة تمامًا، لأنه على الرغم من التصريح بـ noexcept، فإنه يطلق انتهاك المنصة IsoStdBadOptionalAccessViolation [SWS_CORE_01131].

السياق

توفر الفئة ara::core::Optional تطبيقًا متوافقًا مع المعايير للحاوية std::optional<T> لصالح Adaptive Platform. وتعمل كغلاف آمن الأنواع لتغليف قيمة اختيارية من النوع value_type [SWS_CORE_01102]. ويلغي استخدامها الحاجة إلى القيم الحارسة المعرضة للأخطاء أو أعلام الأخطاء الخاصة أو تخصيصات الذاكرة الديناميكية (مثل المؤشرات الفارغة) للإشارة إلى غياب البيانات. ويتم تخزين الكائن مباشرة داخل ذاكرة المكدس الخاصة بالمثيل، مما يضمن إدارة حتمية للموارد ومحلية الذاكرة المؤقتة (cache locality) في بيئة تشغيل AUTOSAR.

دورة الحياة

يوجد مثيل ara::core::Optional في أي وقت في إحدى حالتين منفصلتين: غير مهيأ (فارغ) أو مشغول بقيمة من النوع T. ويجري اتخاذ الحالة الأولية الفارغة عبر المنشئ الافتراضي [SWS_CORE_01103] أو التهيئة الصريحة بـ nullopt_t [SWS_CORE_01104]. أما التهيئة بقيمة محددة فتتم إما عبر منشئات النسخ والنقل [SWS_CORE_01105]، [SWS_CORE_01106]، [SWS_CORE_01109]، أو المنشئات المحولة للأنواع [SWS_CORE_01110]، [SWS_CORE_01111]، أو مباشرة في المكان (in-place) عبر in_place_t [SWS_CORE_01107]، [SWS_CORE_01108]، مما يتجنب النسخ المؤقت تمامًا.

أثناء التشغيل، يمكن أن تتغير الحالة عدة مرات: تنشئ الدوال emplace قيمة جديدة مباشرة في ذاكرة الكائن وتتجاهل أي حالة سابقة قد تكون موجودة [SWS_CORE_01119]، [SWS_CORE_01120]. وبالمثل، تؤدي عوامل الإسناد المقيدة بصرامة بـ Lvalues عبر مؤهلات المرجع & إلى الانتقال إلى الحالة المشغولة [SWS_CORE_01114]، [SWS_CORE_01115]، [SWS_CORE_01116]، [SWS_CORE_01117]، [SWS_CORE_01118]. وتتم إعادة التعيين إلى الحالة الفارغة بصورة حتمية عبر reset() [SWS_CORE_01136] أو عبر إسناد nullopt_t [SWS_CORE_01113]. بالإضافة إلى ذلك، يمكن لمثيلين تبادل حالتيهما ومحتويات بياناتهما بكفاءة عبر swap [SWS_CORE_01121]. وعند الوصول إلى نهاية العمر، يدمر الهادم الكائن الذي قد يكون متضمنًا؛ ويكون ضمان noexcept الخاص به مقترنًا مباشرة بقابلية تدمير النوع T [SWS_CORE_01112].

optional_lifecycle Init Leer Leer Init->Leer Optional() / nullopt Belegt Belegt Init->Belegt Optional(Wert) / in_place Leer->Belegt emplace() / operator= Ende Ende Leer->Ende ~Optional() Belegt->Leer reset() / operator=(nullopt) Belegt->Belegt emplace() / operator= Belegt->Ende ~Optional()

مخطط الحالة: دورة الحياة وانتقالات الحالة لمثيل من ara::core::Optional. المصادر: [SWS_CORE_01103]، [SWS_CORE_01104]، [SWS_CORE_01107]، [SWS_CORE_01113]، [SWS_CORE_01119]، [SWS_CORE_01136]، [SWS_CORE_01112]

مسار الاستخدام

يتضمن المسار المعتاد التحقق من وجود القيمة ثم قراءتها لاحقًا. وللاستعلام عن الحالة، يتوفر has_value() [SWS_CORE_01129] وعامل التحويل الصريح operator bool [SWS_CORE_01128].

إذا توفرت قيمة، يمكن الوصول إليها عبر عوامل إلغاء الإسناد operator* ([SWS_CORE_01124]، [SWS_CORE_01125]، [SWS_CORE_01126]، [SWS_CORE_01127]) أو operator-> ([SWS_CORE_01122]، [SWS_CORE_01123]). بالإضافة إلى ذلك، تتيح الدالة value() وصولاً مؤهلاً إلى Lvalues وRvalues ([SWS_CORE_01130]، [SWS_CORE_01131]، [SWS_CORE_01132]، [SWS_CORE_01133]). وإذا تعين استخدام قيمة بديلة محددة مسبقًا في حال عدم وجود قيمة، يوفر value_or استراتيجية احتياطية مباشرة ([SWS_CORE_01134]، [SWS_CORE_01135]). وبعد اكتمال المعالجة، يمكن مسح الحاوية عند الحاجة عبر reset() [SWS_CORE_01136].

التحقق من القيمة الاختيارية والوصول إليهاالتطبيقOptionalhas_value()boolalthas_value() == truevalue()const T&has_value() == falsevalue_or(fallback)Treset()void

مخطط تسلسلي: مسار التحقق من الحالة واستخراج القيمة. المصادر: [SWS_CORE_01128]، [SWS_CORE_01129]، [SWS_CORE_01131]، [SWS_CORE_01134]، [SWS_CORE_01136]

سيناريوهات الأخطاء

يحدث الوصول الخاطئ عند إلغاء إسناد مثيل فارغ أو طلب قيمته بشكل غير مسموح به. صُرح عن دوال الوصول value() وoperator* وoperator-> في AUTOSAR Adaptive بأنها noexcept، لكنها تطلق في الحالة الفارغة الانتهاك IsoStdBadOptionalAccessViolation ([SWS_CORE_01122]، [SWS_CORE_01123]، [SWS_CORE_01124]، [SWS_CORE_01125]، [SWS_CORE_01126]، [SWS_CORE_01127]، [SWS_CORE_01130]، [SWS_CORE_01131]، [SWS_CORE_01132]، [SWS_CORE_01133]). تفسير: نظرًا لأن الدوال مصرح عنها بـ noexcept، يُرجح أن إطلاق IsoStdBadOptionalAccessViolation لا يُمرر كاستثناء قياسي يمكن التقاطه، بل يؤدي على الأرجح عبر آلية الانتهاك الخاصة بالمنصة إلى إنهاء البرنامج فورًا. سؤال Q-3c066dae2b93a9ec (مفتوح) لذلك يجب على المستدعين التحقق إلزاميًا من حالة الشغل قبل القراءة.

يتعلق سيناريو خطأ آخر بمعالجة الاستثناءات أثناء إنشاء الأنواع: تمتلك المنشئات وعوامل الإسناد وswap وemplace مواصفات noexcept مشروطة تعتمد على ما إذا كانت عمليات النوع المقابلة لـ T نفسها مصرحًا عنها بـ noexcept ([SWS_CORE_01105]، [SWS_CORE_01114]، [SWS_CORE_01119]، [SWS_CORE_01121]). كما أن الطريقة الاحتياطية value_or محددة صراحة بأنها غير آمنة من حيث الاستثناءات («not exception safe») ([SWS_CORE_01134]، [SWS_CORE_01135])، بحيث تُمرر الأخطاء التي تحدث أثناء إنشاء القيمة المرجعة إلى المستدعي.

يستند دليل الفئة هذا حصريًا إلى متطلبات مواصفة ara::core::Optional من AUTOSAR Adaptive R25-11.

خريطة الأعضاء

المُنشئات والمُتلف

2

الدوال الأعضاء

6

أسماء الأنواع البديلة

1

مخطط الفئة

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

G nara__core__Optional627 Optional + Optional() + operator=() + ~Optional() + emplace() + reset() + swap() + has_value() + operator bool() + operator*() + operator->() + value() + value_or()

عرض التفاصيل

اختر عنصرًا من المخطط.

المُنشئات والمُتلف

Optional دالة 9

≙ [optional]

التحميلات الزائدة Optional 9
constexpr Optional () noexcept; SWS_CORE_01103
constexpr Optional (nullopt_t) noexcept; SWS_CORE_01104
constexpr Optional (const Optional &other) noexcept(std::is_nothrow_ copy_constructible< T >::value); SWS_CORE_01105
constexpr Optional (Optional &&other) noexcept(std::is_nothrow_move_ constructible< T >::value); SWS_CORE_01106
template <typename... Args> explicit constexpr Optional (in_place_t, Args &&...) noexcept(std::is_nothrow_constructible< T, Args... >::value); SWS_CORE_01107
template <typename U, typename... Args> explicit constexpr Optional (in_place_t, std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01108
template <typename U = T> {<cond-explicit-1>} constexpr Optional (U &&) noexcept(std::is_ nothrow_constructible< T, U >::value); SWS_CORE_01109
template <typename U> {<cond-explicit-2>} Optional (const Optional< U > &) noexcept(std::is_ nothrow_constructible< T, const U & >::value); SWS_CORE_01110
template <typename U> {<cond-explicit-3>} Optional (Optional< U > &&) noexcept(std::is_ nothrow_constructible< T, U >::value); SWS_CORE_01111
~Optional دالة

except for the following deviations: 1. Function is conditionally noexcept ≙ [optional]

~Optional () noexcept(std::is_nothrow_destructible< T >::value);

الدوال الأعضاء

emplace دالة 2

except for the following deviations: 1. Function is conditionally noexcept ≙ [optional]

التحميلات الزائدة emplace 2
template <typename... Args> T & emplace (Args &&...) noexcept(std::is_nothrow_constructible< T, Args &&... >::value); SWS_CORE_01119
template <typename U, typename... Args> T & emplace (std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01120
has_value دالة

≙ [optional]

constexpr bool has_value () const noexcept;
reset دالة

≙ [optional]

void reset () noexcept;
swap دالة

except for the following deviations: 1. Conditions for the conditional exception safety are modified ≙ [optional]

void swap (Optional &) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_assignable< T >::value);
value دالة 4

except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition) ≙ [optional]

التحميلات الزائدة value 4
constexpr const T & value () const & noexcept; SWS_CORE_01130
constexpr T & value () & noexcept; SWS_CORE_01131
constexpr T && value () &&noexcept; SWS_CORE_01132
constexpr const T && value () const &&noexcept; SWS_CORE_01133
value_or دالة 2

≙ [optional]

التحميلات الزائدة value_or 2
template <typename U> constexpr T value_or (U &&) const &; SWS_CORE_01134
template <typename U> constexpr T value_or (U &&) &&; SWS_CORE_01135

المعاملات

operator bool دالة

≙ [optional]

explicit constexpr operator bool () const noexcept;
operator* دالة 4

except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition) ≙ [optional]

التحميلات الزائدة * 4
constexpr const T & operator* () const & noexcept; SWS_CORE_01124
constexpr T & operator* () & noexcept; SWS_CORE_01125
constexpr T && operator* () &&noexcept; SWS_CORE_01126
constexpr const T && operator* () const &&noexcept; SWS_CORE_01127
operator-> دالة 2

except for the following deviations: 1. The function is noexcept 2. Function is not constexpr 3. A IsoStdBadOptionalAccessViolation may be raised (see condition) ≙ [optional]

التحميلات الزائدة -> 2
const T * operator-> () const noexcept; SWS_CORE_01122
T * operator-> () noexcept; SWS_CORE_01123
operator= دالة 6

≙ [optional]

التحميلات الزائدة = 6
Optional & operator= (nullopt_t) & noexcept; SWS_CORE_01113
Optional & operator= (const Optional &other) &noexcept(std::is_ nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_ assignable< T >::value); SWS_CORE_01114
template <typename U = T> Optional & operator= (U &&u) &noexcept(std::is_nothrow_constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value); SWS_CORE_01116
template <typename U> Optional & operator= (const Optional< U > &) &noexcept(std::is_ nothrow_constructible< T, const U &>::value &&std::is_nothrow_ assignable< T &, const U &>::value); SWS_CORE_01117
template <typename U> Optional & operator= (Optional< U > &&) &noexcept(std::is_nothrow_ constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value); SWS_CORE_01118

أسماء الأنواع البديلة

value_type اسم نوع بديل

≙ [optional]

using value_type = T;

توثيق الدوال

دالة Optional [SWS_CORE_01103]

constexpr Optional () noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01103@rel:R25-11#cbbec352
Content hash
cbbec352
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01103
Status: valid/unmigrated Version: rel:R25-11#8992786d 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_01103@rel:R25-11#8992786d
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d86867a02026-09-30
  • R24-11rel:R24-11#86df07de2026-10-14
  • R25-11rel:R25-11#8992786d2026-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_01104]

constexpr Optional (nullopt_t) noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01104
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01104@rel:R25-11#eaaabfd1
Content hash
eaaabfd1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01104
Status: valid/unmigrated Version: rel:R25-11#411bd18e 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_01104@rel:R25-11#411bd18e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e84841e92026-09-30
  • R24-11rel:R24-11#43c232942026-10-14
  • R25-11rel:R25-11#411bd18e2026-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_01105]

constexpr Optional (const Optional &other) noexcept(std::is_nothrow_ copy_constructible< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01105@rel:R25-11#7b9ae177
Content hash
7b9ae177
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01105
Status: valid/unmigrated Version: rel:R25-11#85a53092 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_01105@rel:R25-11#85a53092
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0af1e1792026-09-30
  • R24-11rel:R24-11#2865a5e92026-10-14
  • R25-11rel:R25-11#85a530922026-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_01106]

constexpr Optional (Optional &&other) noexcept(std::is_nothrow_move_ constructible< T >::value);

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01106
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01106@rel:R25-11#b63051ed
Content hash
b63051ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01106
Status: valid/unmigrated Version: rel:R25-11#5420cc51 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_01106@rel:R25-11#5420cc51
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a9088f022026-09-30
  • R24-11rel:R24-11#ded734802026-10-14
  • R25-11rel:R25-11#5420cc512026-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_01107]

template <typename... Args> explicit constexpr Optional (in_place_t, Args &&...) noexcept(std::is_nothrow_constructible< T, Args... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01107@rel:R25-11#967fe2f2
Content hash
967fe2f2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01107
Status: valid/unmigrated Version: rel:R25-11#0d478adc 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_01107@rel:R25-11#0d478adc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4f8cb42a2026-09-30
  • R24-11rel:R24-11#d6033a2e2026-10-14
  • R25-11rel:R25-11#0d478adc2026-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_01108]

template <typename U, typename... Args> explicit constexpr Optional (in_place_t, std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01108
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01108@rel:R25-11#e693a3ad
Content hash
e693a3ad
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01108
Status: valid/unmigrated Version: rel:R25-11#25dbc842 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_01108@rel:R25-11#25dbc842
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7769d6192026-09-30
  • R24-11rel:R24-11#030018c92026-10-14
  • R25-11rel:R25-11#25dbc8422026-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_01109]

template <typename U = T> {<cond-explicit-1>} constexpr Optional (U &&) noexcept(std::is_ nothrow_constructible< T, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: a319ba530534 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تتوفر دالة المنشئ [SWS_CORE_01109] للفئة ara::core::Optional عبر الترويسة #include "ara/core/optional.h". وبصفتها منشئ قالب بالتوقيع template <typename U = T> constexpr Optional(U&&)، فإنها تخدم التهيئة المباشرة لقيمة اختيارية مع إعادة توجيه الوسيط من النوع U&& إلى نوع القيمة المتضمنة T ([SWS_CORE_01102]). تتبع الدلالات التحديد الوارد في [optional]، لكنها تنحرف عبر شرط صريح للخلو من الاستثناءات: يتم تحديد الدالة كـ noexcept إذا وفقط إذا تحقق std::is_nothrow_constructible<T, U>::value ([SWS_CORE_01109]).

معالجة الأخطاء وأمان الاستثناءات

فيما يتعلق بأمان الاستثناءات، تم تصنيف الاستدعاء على أنه conditionally exception safe ([SWS_CORE_01109]). لا توجد رموز خطأ AUTOSAR محددة أو مسارات إبلاغ عبر DET أو DEM لهذا المنشئ؛ وإذا فشل إنشاء النوع المستهدف T، فسيتم تمرير الاستثناء المقابل للنوع.

التفاعل والتزامن

تقف الدالة إلى جانب المنشئ الافتراضي [SWS_CORE_01103] والمنشئ الفارغ (Null) [SWS_CORE_01104]، اللذين ينشئان مثيلات فارغة، بالإضافة إلى منشئي النسخ والنقل [SWS_CORE_01105] و [SWS_CORE_01106]. علاوة على ذلك، يعمل ara::core::Optional كحامل لقيم الإرجاع الاختيارية في معالجة أخطاء ara::core::Result، على سبيل المثال عند استرداد القيم عبر Ok() ([SWS_CORE_00770]) أو الأخطاء عبر Err() ([SWS_CORE_00772]). التفسير: في ظل غياب تعهدات صريحة بالأمان الخيطي في [SWS_CORE_01109]، من المرجح ألا يكون الاستدعاء المتزامن للمنشئ آمنًا إلا إذا كان الكائن المصدر U محميًا من التعديلات المتزامنة. سؤال Q-edf541fe968f3afe (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا. وتعد مواصفة AUTOSAR هي المرجع المعتمد.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01109
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01109@rel:R25-11#3feaa345
Content hash
3feaa345
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01109
Status: valid/unmigrated Version: rel:R25-11#7558e4db 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_01109@rel:R25-11#7558e4db
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5e482bc62026-09-30
  • R24-11rel:R24-11#8a9b95052026-10-14
  • R25-11rel:R25-11#7558e4db2026-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_01110]

template <typename U> {<cond-explicit-2>} Optional (const Optional< U > &) noexcept(std::is_ nothrow_constructible< T, const U & >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: dd45cef6ee33 المصدر أسئلة مفتوحة (2)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

يتوفر منشئ النسخ المحول لـ ara::core::Optional عبر ملف الترويسة #include "ara/core/optional.h" [SWS_CORE_01110]. وهو يخدم الإنشاء المتزامن لـ Optional<T> من مثيل موجود const Optional<U>&. ومن المرجح أن تعني علامة المواصفة {<cond-explicit-2>} أن المنشئ مصرح عنه كـ explicit، ما لم يكن من الممكن إنشاء T ضمنيًا من const U&. سؤال Q-4a4adc2b59d1fa53 (مفتوح)

معالجة الأخطاء والأمان من الاستثناءات

لا توجد رموز خطأ محددة، أو رسائل DET أو DEM لهذا المنشئ. تم تصنيف الدالة على أنها آمنة من الاستثناءات مشروطًا (conditionally exception safe) [SWS_CORE_01110]. ويسري ضمان noexcept عبر noexcept(std::is_nothrow_constructible<T, const U&>::value) حصريًا إذا كان النوع المستهدف T قابلاً للإنشاء بدون استثناءات من const U& [SWS_CORE_01110]. وإذا فشل إنشاء القيمة المستهدفة، فسيتم نشر الاستثناءات دون تغيير.

التزامن والقيود

على عكس الدوال الأخرى مثل Ok() [SWS_CORE_00770]، لا تحدد المواصفة أي أمان خيطي لهذا المنشئ. ورغم أنه من المحتمل أن يكون قابلاً لإعادة الدخول (reentrant)، فإن وصول القراءة أو الكتابة المتزامن إلى الكائن المصدر Optional<U> يتطلب مزامنة خارجية. سؤال Q-a0534498f685f575 (مفتوح)

تفاعل

يكمل المنشئ دوال التهيئة الأخرى لـ ara::core::Optional، بما في ذلك المنشئات الافتراضية، ومنشئات القيمة الخالية (Null)، ومنشئات النسخ ([SWS_CORE_01103]، [SWS_CORE_01104]، [SWS_CORE_01105]، [SWS_CORE_01106])، بالإضافة إلى عملية التبديل [SWS_CORE_01096]. بالإضافة إلى ذلك، يتفاعل النوع بشكل وثيق مع ara::core::Result، التي تكشف دوالها Ok() و Err() عن القيم أو الأخطاء كـ Optional ([SWS_CORE_00770]، [SWS_CORE_00772]).

تم إنشاء هذا النص بواسطة ذكاء اصطناعي بناءً على مواصفة AUTOSAR R25-11.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01110
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01110@rel:R25-11#8bb03944
Content hash
8bb03944
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01110
Status: valid/unmigrated Version: rel:R25-11#11b08505 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_01110@rel:R25-11#11b08505
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f7b346cb2026-09-30
  • R24-11rel:R24-11#a18434152026-10-14
  • R25-11rel:R25-11#11b085052026-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_01111]

template <typename U> {<cond-explicit-3>} Optional (Optional< U > &&) noexcept(std::is_ nothrow_constructible< T, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 5e86b0752dce المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

توفر دالة القالب [SWS_CORE_01111] منشئ النقل المحول للفئة ara::core::Optional من ملف الترويسة #include "ara/core/optional.h". حيث تستقبل مرجع Rvalue Optional<U>&& لتهيئة مثيل من Optional<T> وتتبع سلوك [optional] مع الانحراف الموثق لمواصفة noexcept المشروطة [SWS_CORE_01111]. وكتفسير، من المرجح أن يتحكم بند المواصفة {<cond-explicit-3>} فيما إذا كان التحويل يتم ضمنيًا أو صراحةً اعتمادًا على خصائص النوعين T و U. سؤال Q-0b21a6eafb9414d8 (مفتوح)

فيما يتعلق بمعالجة الأخطاء والتعامل مع الاستثناءات، تم تصنيف المنشئ على أنه آمن من الاستثناءات مشروطًا (conditionally exception safe) [SWS_CORE_01111]. ويكون التنفيذ noexcept إذا وفقط إذا تحقق std::is_nothrow_constructible<T, U>::value [SWS_CORE_01111]. وإلا، فقد تحدث استثناءات أثناء إنشاء القيمة المتضمنة وتُنشر إلى المستدعي.

داخل ara::core::Optional، تكمل هذه الدالة منشئ النقل العادي [SWS_CORE_01106]، ومنشئ النسخ [SWS_CORE_01105]، وكذلك المنشئ الافتراضي [SWS_CORE_01103]. علاوة على ذلك، يتفاعل العنصر بشكل وثيق مع ara::core::Result، التي تُرجع دوالها Ok() و Err() القيم أو الأخطاء المتضمنة كـ ara::core::Optional (كما في [SWS_CORE_00770] و [SWS_CORE_00771] و [SWS_CORE_00772])، وكذلك مع الدالة المساعدة swap [SWS_CORE_01096].

تم إنشاء ملاحظة الاستخدام هذه بشكل آلي استناداً إلى بيانات المواصفات.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01111
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01111@rel:R25-11#e3174bb9
Content hash
e3174bb9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01111
Status: valid/unmigrated Version: rel:R25-11#9d33a7e6 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_01111@rel:R25-11#9d33a7e6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#60888d082026-09-30
  • R24-11rel:R24-11#1297b71f2026-10-14
  • R25-11rel:R25-11#9d33a7e62026-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_01119]

template <typename... Args> T & emplace (Args &&...) noexcept(std::is_nothrow_constructible< T, Args &&... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 4b99ff09898e المصدر أسئلة مفتوحة (2)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم الدالة العضو emplace للفئة ara::core::Optional لإنشاء القيمة المضمنة من النوع T مباشرة في ذاكرة الكائن الاختياري [SWS_CORE_01119]. يتم الاستدعاء بشكل متزامن عبر ملف الرأس ara/core/optional.h. تقبل الدالة كمعامل حزمة وسائط متغيرة Args&&... وتمررها إلى دالة بناء النوع T؛ ويتم إرجاع مرجع قيمة يسارية (lvalue reference) إلى القيمة المنشأة حديثًا (T&) [SWS_CORE_01119].

فيما يتعلق بمعالجة الاستثناءات، تُصنف الدالة على أنها آمنة مشروطة من الاستثناءات (conditionally exception safe) وتمتلك تحديد noexcept مشروطًا بناءً على std::is_nothrow_constructible<T, Args&&...>::value [SWS_CORE_01119]. إذا أدى بناء T إلى طرح استثناء، فسيتم تطبيق أمان الاستثناءات للنوع الأساسي؛ ولا ينطبق ضمان noexcept إلا إذا كان البناء مضمونًا بأنه لا يطرح أي استثناءات. لا تنص المواصفة على رموز خطأ محددة أو أحداث DEM أو رسائل DET [SWS_CORE_01119].

المواصفة لا تذكر شيئًا بخصوص التزامن؛ تفسير: من المحتمل ألا يكون الوصول المتزامن للكتابة من مؤشرات ترابط متعددة إلى نفس مثيل ara::core::Optional آمنًا بالنسبة لمؤشرات الترابط دون مزامنة خارجية. سؤال Q-c11efb3f95001493 (مفتوح) علاوة على ذلك، من المرجح أن يتم إتلاف أي قيمة موجودة مسبقًا عند إعادة التهيئة.

ضمن إطار العمل التفاعلي لـ ara::core::Optional، توجد تحميلات زائدة بديلة: بالنسبة لقوائم التهيئة، يتوفر متغير مع std::initializer_list [SWS_CORE_01120]، بينما تم تعريف تحميل زائد مخصص لأنواع المراجع ara::core::Optional<T&> [SWS_CORE_01164]. توجد آليات وضع موضعي (Emplace) مماثلة للبناء في الموضع الأصلي في الوحدة core أيضًا للحاويات مثل ara::core::Vector [SWS_CORE_01366]، وara::core::Map [SWS_CORE_01458]، وara::core::Variant [SWS_CORE_01661]، [SWS_CORE_01662]، [SWS_CORE_01663]، [SWS_CORE_01664].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي بناءً على مواصفة AUTOSAR R25-11.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01119
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01119@rel:R25-11#c3641e0b
Content hash
c3641e0b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01119
Status: valid/unmigrated Version: rel:R25-11#a1151217 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_01119@rel:R25-11#a1151217
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#957655d82026-09-30
  • R24-11rel:R24-11#fb1be5602026-10-14
  • R25-11rel:R25-11#a11512172026-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_01120]

template <typename U, typename... Args> T & emplace (std::initializer_list< U >, Args &&...) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: a5f272ff8d2c المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم الدالة العضو emplace من [SWS_CORE_01120] لتهيئة القيمة المضمنة لكائن من النوع ara::core::Optional مباشرة في موضعها الأصلي (in-place). تقبل std::initializer_list<U> بالإضافة إلى وسائط اختيارية Args&&... وتُرجع مرجعًا T& إلى القيمة المنشأة حديثًا.

فيما يتعلق بمعالجة الأخطاء والأمان من الاستثناءات، تم تحديد الدالة على أنها آمنة مشروطة من الاستثناءات (conditionally exception safe). يعتمد شرط noexcept وفقًا لـ [SWS_CORE_01120] بدقة على ما إذا كان يمكن بناء النوع الهدف T دون استثناءات باستخدام std::initializer_list<U>& ووسائط إعادة التوجيه (std::is_nothrow_constructible). يمثل هذا انحرافًا صريحًا عن السلوك في معيار [optional].

ضمن مجموعة المكونات الأساسية، يكمل هذا التحميل الزائد البناء الموضعي العام بدون قائمة تهيئة من [SWS_CORE_01119]. وتخصيصات المراجع يتوفر لها بالإضافة إلى ذلك التعيين عبر [SWS_CORE_01164]. تفسير: كما هو معتاد مع النظير القياسي في [optional]، في حال وجود قيمة سابقة، فمن المرجح أن يتم إتلافها قبل البناء الجديد. سؤال Q-b8a9274e43f0a0a9 (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا وتستند إلى متطلبات المواصفة.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01120
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01120@rel:R25-11#c209dd20
Content hash
c209dd20
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01120
Status: valid/unmigrated Version: rel:R25-11#19e525e9 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_01120@rel:R25-11#19e525e9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a140351c2026-09-30
  • R24-11rel:R24-11#d59521372026-10-14
  • R25-11rel:R25-11#19e525e92026-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_01129]

constexpr bool has_value () const noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01129
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01129@rel:R25-11#805c2cdd
Content hash
805c2cdd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01129
Status: valid/unmigrated Version: rel:R25-11#7383a7bc 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_01129@rel:R25-11#7383a7bc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9f849c3e2026-09-30
  • R24-11rel:R24-11#796326bb2026-10-14
  • R25-11rel:R25-11#7383a7bc2026-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_01128]

explicit constexpr operator bool () const noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01128
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01128@rel:R25-11#b7141c99
Content hash
b7141c99
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01128
Status: valid/unmigrated Version: rel:R25-11#cf39bd07 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_01128@rel:R25-11#cf39bd07
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#109a619b2026-09-30
  • R24-11rel:R24-11#b5a26c7d2026-10-14
  • R25-11rel:R25-11#cf39bd072026-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_01124]

constexpr const T & operator* () const & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01124
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01124@rel:R25-11#23529783
Content hash
23529783
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01124
Status: valid/unmigrated Version: rel:R25-11#6c6d6246 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_01124@rel:R25-11#6c6d6246
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#72e800a62026-09-30
  • R24-11rel:R24-11#6ba741822026-10-14
  • R25-11rel:R25-11#6c6d62462026-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_01125]

constexpr T & operator* () & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01125
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01125@rel:R25-11#8e9d3746
Content hash
8e9d3746
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01125
Status: valid/unmigrated Version: rel:R25-11#bbff2175 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_01125@rel:R25-11#bbff2175
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#50b8d1332026-09-30
  • R24-11rel:R24-11#da1307272026-10-14
  • R25-11rel:R25-11#bbff21752026-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_01126]

constexpr T && operator* () &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01126
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01126@rel:R25-11#37d343f4
Content hash
37d343f4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01126
Status: valid/unmigrated Version: rel:R25-11#eb9c6afb 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_01126@rel:R25-11#eb9c6afb
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e95005072026-09-30
  • R24-11rel:R24-11#6c670b852026-10-14
  • R25-11rel:R25-11#eb9c6afb2026-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_01127]

constexpr const T && operator* () const &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01127
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01127@rel:R25-11#6edc9d3a
Content hash
6edc9d3a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01127
Status: valid/unmigrated Version: rel:R25-11#0c38bfb2 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_01127@rel:R25-11#0c38bfb2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#930319d52026-09-30
  • R24-11rel:R24-11#d6b67a322026-10-14
  • R25-11rel:R25-11#0c38bfb22026-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_01122]

const T * operator-> () const noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. Function is not constexpr 3. A IsoStdBadOptionalAccessViolation may be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01122@rel:R25-11#e205e515
Content hash
e205e515
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01122
Status: valid/unmigrated Version: rel:R25-11#a0430001 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_01122@rel:R25-11#a0430001
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#dede9c812026-09-30
  • R24-11rel:R24-11#33bcccf02026-10-14
  • R25-11rel:R25-11#a04300012026-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_01123]

T * operator-> () noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. Function is not constexpr 3. A IsoStdBadOptionalAccessViolation may be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01123@rel:R25-11#29e61d8b
Content hash
29e61d8b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01123
Status: valid/unmigrated Version: rel:R25-11#e18dd6ba 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_01123@rel:R25-11#e18dd6ba
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c2d8053b2026-09-30
  • R24-11rel:R24-11#1d6944b82026-10-14
  • R25-11rel:R25-11#e18dd6ba2026-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_01113]

Optional & operator= (nullopt_t) & noexcept;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01113
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01113@rel:R25-11#cd2dc0db
Content hash
cd2dc0db
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01113
Status: valid/unmigrated Version: rel:R25-11#18fcf54f 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_01113@rel:R25-11#18fcf54f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f26400562026-09-30
  • R24-11rel:R24-11#f4403dc22026-10-14
  • R25-11rel:R25-11#18fcf54f2026-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_01114]

Optional & operator= (const Optional &other) &noexcept(std::is_ nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_ assignable< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01114
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01114@rel:R25-11#b75e52eb
Content hash
b75e52eb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01114
Status: valid/unmigrated Version: rel:R25-11#6ca0c9a7 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_01114@rel:R25-11#6ca0c9a7
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#53d125022026-09-30
  • R24-11rel:R24-11#d36bd1ce2026-10-14
  • R25-11rel:R25-11#6ca0c9a72026-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_01115]

Optional & operator= (Optional &&other) &noexcept(std::is_nothrow_ move_assignable< T >::value &&std::is_nothrow_move_constructible< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01115@rel:R25-11#1e558c4a
Content hash
1e558c4a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01115
Status: valid/unmigrated Version: rel:R25-11#16e267f2 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_01115@rel:R25-11#16e267f2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f4c255c12026-09-30
  • R24-11rel:R24-11#6bfd4afd2026-10-14
  • R25-11rel:R25-11#16e267f22026-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_01116]

template <typename U = T> Optional & operator= (U &&u) &noexcept(std::is_nothrow_constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01116
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01116@rel:R25-11#34a2f5d6
Content hash
34a2f5d6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01116
Status: valid/unmigrated Version: rel:R25-11#3e4d73de 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_01116@rel:R25-11#3e4d73de
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#be342f912026-09-30
  • R24-11rel:R24-11#3fce07582026-10-14
  • R25-11rel:R25-11#3e4d73de2026-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_01117]

template <typename U> Optional & operator= (const Optional< U > &) &noexcept(std::is_ nothrow_constructible< T, const U &>::value &&std::is_nothrow_ assignable< T &, const U &>::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01117
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01117@rel:R25-11#b5ac5aaf
Content hash
b5ac5aaf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01117
Status: valid/unmigrated Version: rel:R25-11#d5d06ba9 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_01117@rel:R25-11#d5d06ba9
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#68ae4d392026-09-30
  • R24-11rel:R24-11#a7a5f0f32026-10-14
  • R25-11rel:R25-11#d5d06ba92026-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_01118]

template <typename U> Optional & operator= (Optional< U > &&) &noexcept(std::is_nothrow_ constructible< T, U >::value &&std::is_nothrow_assignable< T &, U >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept 2. Function is declared with the ref-qualifier &

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01118
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01118@rel:R25-11#b70d2501
Content hash
b70d2501
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01118
Status: valid/unmigrated Version: rel:R25-11#083436fb 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_01118@rel:R25-11#083436fb
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#615224ed2026-09-30
  • R24-11rel:R24-11#bc5224af2026-10-14
  • R25-11rel:R25-11#083436fb2026-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_01136]

void reset () noexcept;

As per corresponding usage in [optional]

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: e8663f9a82ee المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يتم توفير دالة العضو reset للفئة ara::core::Optional عبر ملف الرأس #include "ara/core/optional.h" وتُستخدم لإعادة تعيين مثيل [SWS_CORE_01136]. تمتلك الدالة التوقيع void reset () noexcept;، ولا تأخذ معلمات ولا تُرجع أي قيمة [SWS_CORE_01136]. يتبع سلوكها الاستخدام المقابل في [optional] [SWS_CORE_01136]؛ تفسير: بناءً على هذا المرجع، يُفترض أن يؤدي الاستدعاء إلى تدمير أي قيمة حالة قد تكون موجودة ونقل المثيل إلى حالة غير مشغولة. سؤال Q-c819444ae1a7df1f (مفتوح)

فيما يتعلق بمعالجة الأخطاء ومعالجة الاستثناءات، تم الإعلان عن reset على أنها آمنة من الاستثناءات (exception safe) وكذلك بالمعرّف noexcept [SWS_CORE_01136]. ولا يتم إطلاق أي استثناءات ولا إرجاع أكواد أخطاء [SWS_CORE_01136].

في سياق التفاعل مع المكونات الأخرى لمكتبة Core، تكون الإشارات التالية ذات صلة:

  • بالنسبة للمراجع الاختيارية ara::core::Optional<T&>، يتوفر تحميل زائد محدد كـ constexpr لـ reset، وهو أيضًا noexcept وآمن من الاستثناءات [SWS_CORE_01165].
  • على عكس Optional، يقدم النوع ara::core::Bitset في ملف الرأس ara/core/bitset.h أيضًا دوال reset: متغير بدون معلمات يشير إلى الـ bitset المعدل [SWS_CORE_01727]، بالإضافة إلى تحميل زائد مستند إلى الموضع مع إرجاع Result وفحص لـ IsoStdOutOfRangeViolation [SWS_CORE_01728].

تم إنشاء هذا النص تلقائيًا. وتستند جميع المعلومات إلى نطاق مواصفة AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01136
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01136@rel:R25-11#7d848a0d
Content hash
7d848a0d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01136
Status: valid/unmigrated Version: rel:R25-11#6d9fb635 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_01136@rel:R25-11#6d9fb635
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bde8a7be2026-09-30
  • R24-11rel:R24-11#4d4a35c12026-10-14
  • R25-11rel:R25-11#6d9fb6352026-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_01121]

void swap (Optional &) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_assignable< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Conditions for the conditional exception safety are modified

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01121
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01121@rel:R25-11#df9fed7e
Content hash
df9fed7e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01121
Status: valid/unmigrated Version: rel:R25-11#ec32d4dd 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_01121@rel:R25-11#ec32d4dd
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f13812c02026-09-30
  • R24-11rel:R24-11#6c6900ce2026-10-14
  • R25-11rel:R25-11#ec32d4dd2026-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_01130]

constexpr const T & value () const & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01130
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01130@rel:R25-11#78a67159
Content hash
78a67159
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01130
Status: valid/unmigrated Version: rel:R25-11#f3e37107 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_01130@rel:R25-11#f3e37107
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d33dc7152026-09-30
  • R24-11rel:R24-11#dd5d01932026-10-14
  • R25-11rel:R25-11#f3e371072026-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_01131]

constexpr T & value () & noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01131@rel:R25-11#e7df11ec
Content hash
e7df11ec
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01131
Status: valid/unmigrated Version: rel:R25-11#bd11e736 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_01131@rel:R25-11#bd11e736
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#68af222c2026-09-30
  • R24-11rel:R24-11#3d037a0d2026-10-14
  • R25-11rel:R25-11#bd11e7362026-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_01132]

constexpr T && value () &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01132@rel:R25-11#0d12b9c2
Content hash
0d12b9c2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01132
Status: valid/unmigrated Version: rel:R25-11#24f00cb3 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_01132@rel:R25-11#24f00cb3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#414433c42026-09-30
  • R24-11rel:R24-11#2e6187fb2026-10-14
  • R25-11rel:R25-11#24f00cb32026-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_01133]

constexpr const T && value () const &&noexcept;

As per corresponding usage in [optional] except for the following deviations: 1. The function is noexcept 2. A IsoStdBadOptionalAccessViolation may conditionally be raised (see condition)

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
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_01133
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01133@rel:R25-11#b87bac3a
Content hash
b87bac3a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01133
Status: valid/unmigrated Version: rel:R25-11#7b7d6eb7 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_01133@rel:R25-11#7b7d6eb7
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#54a5ac7f2026-09-30
  • R24-11rel:R24-11#f020185a2026-10-14
  • R25-11rel:R25-11#7b7d6eb72026-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_01134]

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

As per corresponding usage in [optional]

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 4420db92e204 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تُستخدم دالة العضو القالبية value_or للفئة ara::core::Optional وفقًا لـ [SWS_CORE_01134] للاسترداد المتزامن للقيمة المحتواة أو لقيمة بديلة تم توفيرها. يتم تضمينها عبر ملف الرأس #include "ara/core/optional.h" والإعلان عنها مع التوقيع template <typename U> constexpr T value_or (U &&) const &; كطريقة مرجع lvalue ثابتة. ويتبع السلوك التعريف المقابل لـ std::optional («As per corresponding usage in [optional]»)، حيث يتم إرجاع القيمة T إذا كان المحتوى معينًا، وإلا يتم إرجاع القيمة الافتراضية الممررة.

معالجة الأخطاء والأمان من الاستثناءات

فيما يتعلق بمعالجة الأخطاء، تم تحديد الدالة وفقًا لـ [SWS_CORE_01134] صراحةً على أنها غير آمنة من الاستثناءات («not exception safe»). لم يتم تحديد أكواد أخطاء أو رسائل DET أو DEM لهذا الاستدعاء. وبالتالي يمكن للاستثناءات التي يتم إطلاقها أثناء عمليات التحويل أو النسخ أن تنتشر إلى الخارج.

تفاعل

توجد داخل ara::core::Optional تحميلات زائدة تكميلية لـ value_or:

  • يوفر [SWS_CORE_01135] التحميل الزائد لـ rvalue template <typename U> constexpr T value_or (U &&) &&;، والذي تم الإعلان عنه أيضًا على أنه غير آمن من الاستثناءات («not exception safe») ويتيح النقل المحسن للكائنات المؤقتة.
  • يحدد [SWS_CORE_01175] التحميل الزائد للتخصيص ara::core::Optional<T&> مع التوقيع template <typename U> constexpr T value_or (U &&u) const noexcept;، والذي تم تمييزه بخلاف [SWS_CORE_01134] على أنه آمن من الاستثناءات («exception safe»).

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا وهي تستند حصريًا إلى بيانات مواصفة AUTOSAR الإصدار R25-11.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitnot exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01134
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01134@rel:R25-11#c7e673e5
Content hash
c7e673e5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01134
Status: valid/unmigrated Version: rel:R25-11#7c04631e 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_01134@rel:R25-11#7c04631e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#60f23a902026-09-30
  • R24-11rel:R24-11#75fa1c852026-10-14
  • R25-11rel:R25-11#7c04631e2026-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_01135]

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

As per corresponding usage in [optional]

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 1f9eb2809808 المصدر أسئلة مفتوحة (2)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

يتم توفير دالة العضو value_or المؤهلة كـ Rvalue لفئة القالب ara::core::Optional عبر ملف الترويسة ara/core/optional.h [SWS_CORE_01135]. ووفقًا للإحالة إلى [optional]، فإنها تُستخدم للاستعلام المتزامن عن القيمة المتضمنة أو إرجاع قيمة بديلة مُمرَّرة. وبما أن هذا الاستدعاء مرتبط بمراجع Rvalue، فمن المحتمل أن تُنقل القيمة المتضمنة عبر دلالات النقل إذا كانت القيمة موجودة؛ وإلا فسيتم تقييم الوسيط المُمرَّر وتحويله. سؤال Q-e20f155d58dd0d72 (مفتوح)

التفاعل والتحميلات الزائدة

تُكمل الدالة التحميل الزائد [SWS_CORE_01134] لـ Const-Lvalue، والذي يقدّم آلية الرجوع البديلة نفسها للمثيلات طويلة الأجل أو غير المؤقتة. بالنسبة للتخصيصات للمراجع ara::core::Optional<T &>، يوجد بشكل مغاير توقيع مُعلن عنه كـ noexcept [SWS_CORE_01175]، في حين أن التحميل الزائد العام مخصص لقيم Rvalue لأنواع القيم.

معالجة الأخطاء والأمان من الاستثناءات

أُعلن عن الطريقة صراحةً بأنها not exception safe [SWS_CORE_01135]. لا توجد رموز خطأ محددة أو رسائل DET أو DEM. تفسير: يُرجَّح أن تنشأ الاستثناءات المحتملة أساسًا من منشئات النقل أو مشغلات التحويل للأنواع المعنية T وU، في حال حدوث أخطاء أثناء إنشاء القيمة المرجعة. سؤال (مفتوح)

أُنشئ هذا النص بواسطة ذكاء اصطناعي ويستند حصريًا إلى مواصفات الإصدار R25-11.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitnot exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01135
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01135@rel:R25-11#3d45bdeb
Content hash
3d45bdeb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01135
Status: valid/unmigrated Version: rel:R25-11#b12481cc 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_01135@rel:R25-11#b12481cc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4e564dbd2026-09-30
  • R24-11rel:R24-11#e796ceb42026-10-14
  • R25-11rel:R25-11#b12481cc2026-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_01112]

~Optional () noexcept(std::is_nothrow_destructible< T >::value);

As per corresponding usage in [optional] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional
Exception-Sicherheitconditionally exception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01112@rel:R25-11#175c95fc
Content hash
175c95fc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01112
Status: valid/unmigrated Version: rel:R25-11#28cb7e57 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_01112@rel:R25-11#28cb7e57
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d0e776bc2026-09-30
  • R24-11rel:R24-11#56a370392026-10-14
  • R25-11rel:R25-11#28cb7e572026-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_01102]

using value_type = T;

As per corresponding usage in [optional]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_01102
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01102@rel:R25-11#cb9f7bac
Content hash
cb9f7bac
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01102
Status: valid/unmigrated Version: rel:R25-11#6430c943 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_01102@rel:R25-11#6430c943
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0d70273d2026-09-30
  • R24-11rel:R24-11#75d4d87e2026-10-14
  • R25-11rel:R25-11#6430c9432026-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