DEENESPTFRRUARHIKOZHNL

فئة ara::core::Promise< void, E >

[SWS_CORE_06340] Upstream: RS_AP_00130

template <typename E> class Promise< void, E > final {...};

Specialization of class Promise for void values The implementation shall flag the condition E != *ara::core::ErrorCode as a compile error.

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

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

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

يتيح التوفير غير المتزامن لنتيجة void أو خطأ لكائن Future مرتبط.

يُستخدم التخصيص ara::core::Promise< void, E > كنقطة نهاية مُنتجة غير متزامنة للإشارة إلى اكتمال عملية بدون قيمة إرجاع أو لنقل خطأ ([SWS_CORE_06341]). بعد إنشاء النسخة، يتم استرداد Future المرتبط للمستهلك عبر get_future() لمرة واحدة فقط ([SWS_CORE_06344]). يتم التوفير بشكل آمن من حيث خيوط التنفيذ (thread-safe) عبر set_value() أو SetError() أو SetResult()، مما يجعل الحالة المشتركة موسومة بأنها جاهزة. ونظرًا لأن الفئة تمتلك دلالات نقل بحتة، فإن التعيين المتعدد أو غياب الحالات المشتركة يؤدي إلى انتهاكات محددة.

السياق

تمثل الفئة ara::core::Promise< void, E > تخصيص قالب للعمليات غير المتزامنة بدون قيمة بيانات مفيدة (نوع الإرجاع void). وهي تشكل جانب المُنتج (Producer) لقناة اتصال وتزامن الحسابات أو العمليات غير المتزامنة مع جانب المستهلك (Consumer). ومن خلال حالة داخلية مشتركة (Shared State)، تتيح الإشارة إما إلى الإنجاز الناجح لعملية ما أو إلى حدوث خطأ من النوع E. ويتم توفير كائن المستقبل المقابل في صورة ara::core::Future< void, E > ([SWS_CORE_06344]). وفقًا لمتطلبات AUTOSAR Adaptive Platform، يتطلب التنفيذ أن يكون نوع الخطأ E متوافقًا مع ara::core::ErrorCode؛ يؤدي أي اختلاف إلى حدوث خطأ أثناء التحويل البرمجي (Compilation).

دورة الحياة

يتم إنشاء النسخة عبر المنشئ الافتراضي الخالي من المعاملات [SWS_CORE_06341]، والذي يُنشئ حالة مشتركة جديدة ويتصرف بصورة مماثلة لدالة C++ القياسية std::promise. تُنمذج الفئة ملكية حصرية وتُنفذ دلالات نقل صارمة: تم حذف كل من منشئ النسخ ([SWS_CORE_06350]) ومعامل إسناد النسخ ([SWS_CORE_06351]) (delete).

يمكن نقل حالة موجودة إلى نسخ أخرى عبر منشئ النقل ([SWS_CORE_06342]) أو معامل إسناد النقل ([SWS_CORE_06343]). وعند إسناد النقل، يتم التخلي عن Shared State المحتفظ بها حتى ذلك الحين وتُنقل الحالة كما هو الحال بواسطة Promise(std::move(other)).swap(*this) ([SWS_CORE_06343]). علاوة على ذلك، تتيح الدالة swap ([SWS_CORE_06352]) التبادل المباشر بين حالتين.

يُحرر المُدمّر [SWS_CORE_06349] أي Shared State متبقية. تفسير: يُرجّح أن التخلي المبكر عن Shared State عند تدمير Promise لم يتم استيفاؤه بعد يؤدي إلى حالة يتيمة في Future المرتبط. سؤال Q-e89b32fa3e5994e2 (مفتوح) فيما يتعلق بالتزامن، فإن الإنشاء الافتراضي ([SWS_CORE_06341]) بالإضافة إلى تعيين النتيجة ([SWS_CORE_06345]، [SWS_CORE_06353]، [SWS_CORE_06354]، [SWS_CORE_06355]، [SWS_CORE_06356]) آمنان من حيث خيوط التنفيذ. في المقابل، فإن عمليات النقل وswap واسترداد Future ([SWS_CORE_06344]) والتدمير ليست آمنة من حيث خيوط التنفيذ وتتطلب تنسيقًا خارجيًا في حالة الوصول المشترك.

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

يتضمن الاستخدام النموذجي لـ ara::core::Promise< void, E > إعداد التنفيذ غير المتزامن، وتسليم قناة الاستقبال، والإبلاغ اللاحق عن النتيجة:

  1. التهيئة: يُنشئ المُنتج نسخة من كائن Promise ([SWS_CORE_06341]).
  2. استرداد Future: عبر get_future() يتم إنشاء ara::core::Future< void, E > المرتبط لمرة واحدة فقط ([SWS_CORE_06344]) وتسليمه إلى جانب المستهلك.
  3. تعيين النتيجة: بعد اكتمال العملية غير المتزامنة، يَنقل المُنتج الحالة المشتركة إلى حالة الجاهزية (ready):
    • في حالة النجاح، عبر استدعاء set_value() بدون وسائط ([SWS_CORE_06345]).
    • في حالة الخطأ، عبر تخزين خطأ بواسطة SetError، إما بالنقل ([SWS_CORE_06353]) أو بالنسخ ([SWS_CORE_06354]).
    • بدلًا من ذلك، عبر تمرير Result< void, E > كامل بواسطة SetResult بالنسخ ([SWS_CORE_06355]) أو بالنقل ([SWS_CORE_06356]).
  4. الحل: بمجرد أن تصبح الحالة جاهزة، يمكن للمستهلك استهلاك النتيجة عبر Future؛ ويتم تحرير كائن Promise في نهاية نطاق صلاحيته ([SWS_CORE_06349]).
التسلسل النموذجي للمزامنة باستخدام Promise<void, E>ErzeugerPromiseKonsumentPromise()get_future()Future<void, E>تمرير FutureUse Case: Asynchrone VerarbeitungaltErfolgreicher Abschlussset_value()FehlerfallSetError(error) أو SetResult(res)الحالة المشتركة جاهزة (ready)استرداد الحالة عبر Future~Promise()

مخطط التتابع: المسار النموذجي للمزامنة غير المتزامنة من الإنشاء حتى توفير النتيجة. المصادر: [SWS_CORE_06341]، [SWS_CORE_06344]، [SWS_CORE_06345]، [SWS_CORE_06349]

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

تؤدي انتهاكات الشروط المسبقة إلى حالات خطأ محددة (Violations):

فيما يتعلق بأمان الاستثناءات، تُعد الطريقتان SetError وSetResult آمنتين مشروطاً من حيث الاستثناءات (conditionally exception safe): فهما تضمنان noexcept فقط إذا تم تصنيف النوع E على أنه قابل للإنشاء بالنقل دون إطلاق استثناء (nothrow-move-constructible) أو قابل للإنشاء بالنسخ دون إطلاق استثناء (nothrow-copy-constructible) ([SWS_CORE_06353]، [SWS_CORE_06354]، [SWS_CORE_06355]، [SWS_CORE_06356]).

يستند دليل الفئات هذا إلى مواصفة AUTOSAR Adaptive Platform R25-11 وقد تم إنشاؤه بصورة آلية.

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

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

2

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

5

المعاملات

1

مخطط الفئة

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

G nara__core__Promise__void__E__714 Promise< void, E > + Promise() + operator=() + ~Promise() + SetError() + SetResult() + get_future() + set_value() + swap()

عرض التفاصيل

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

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

Promise دالة 3

Default constructor This function shall behave the same as the corresponding std::promise function. ≙ std::promise

التحميلات الزائدة Promise 3
Promise () noexcept; SWS_CORE_06341
Promise (Promise &&other) noexcept; SWS_CORE_06342
Promise (const Promise &)=delete; SWS_CORE_06350
~Promise دالة

Destructor for Promise objects Abandons any shared state.

~Promise () noexcept;

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

get_future دالة

Return an associated Future with the same shared state as *this The returned Future is set as soon as this Promise receives the result, value, or an error. This fuction must only be called once as it is not allowed to have multiple Futures per Promise.

Future< void, E > get_future () noexcept;
set_value دالة

Set the shared state value and make the shared state ready.

void set_value () noexcept;
SetError دالة 2

Move an error into the shared state and make the shared state ready.

التحميلات الزائدة SetError 2
void SetError (E &&error) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_06353
void SetError (const E &error) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_06354
SetResult دالة 2

Copy a Result into the shared state and make the shared state ready.

التحميلات الزائدة SetResult 2
void SetResult (const Result< void, E > &result) noexcept(std::is_ nothrow_copy_constructible< E >::value); SWS_CORE_06355
void SetResult (Result< void, E > &&result) noexcept(std::is_nothrow_ move_constructible< E >::value); SWS_CORE_06356
swap دالة

Swap the contents of this instance with another one’s. This function shall behave the same as the corresponding std::promise function. ≙ std::promise

void swap (Promise &other) noexcept;

المعاملات

operator= دالة 2

Move assignment Abandons any shared state and then as if Promise(std::move(other)).swap(*this). ≙ std::move

التحميلات الزائدة = 2
Promise & operator= (Promise &&other) noexcept; SWS_CORE_06343
Promise & operator= (const Promise &)=delete; SWS_CORE_06351

توثيق الدوال

دالة SetError [SWS_CORE_06353] Upstream: RS_AP_00130

void SetError (E &&error) noexcept(std::is_nothrow_move_constructible< E >::value);

Move an error into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
errorthe error to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06353
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06353@rel:R25-11#b0196832
Content hash
b0196832
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06353
Status: valid/unmigrated Version: rel:R25-11#2f9d7e66 Versionshistorie & Revisions (1 transition, 8 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_06353@rel:R25-11#2f9d7e66
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c1acd7052026-09-30
  • R19-11rel:R19-11#d02dc4682026-10-14
  • R20-11rel:R20-11#21198bb82026-10-14
  • R21-11rel:R21-11#e83c316a2026-10-14
  • R22-11rel:R22-11#5a5e04422026-10-14
  • R23-11rel:R23-11#918aad8b2026-10-14
  • R24-11rel:R24-11#db070e122026-10-14
  • R25-11rel:R25-11#2f9d7e662026-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

دالة SetError [SWS_CORE_06354] Upstream: RS_AP_00130

void SetError (const E &error) noexcept(std::is_nothrow_copy_ constructible< E >::value);

Copy an error into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
errorthe error to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06354
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06354@rel:R25-11#5a91c0f4
Content hash
5a91c0f4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06354
Status: valid/unmigrated Version: rel:R25-11#c5a41cff Versionshistorie & Revisions (1 transition, 8 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_06354@rel:R25-11#c5a41cff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ba6c26152026-09-30
  • R19-11rel:R19-11#bb2f8ee32026-10-14
  • R20-11rel:R20-11#672901f42026-10-14
  • R21-11rel:R21-11#672901f42026-10-14
  • R22-11rel:R22-11#f2ccaa572026-10-14
  • R23-11rel:R23-11#0bce5bd22026-10-14
  • R24-11rel:R24-11#2de8cbc22026-10-14
  • R25-11rel:R25-11#c5a41cff2026-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

دالة SetResult [SWS_CORE_06355] Upstream: RS_AP_00130

void SetResult (const Result< void, E > &result) noexcept(std::is_ nothrow_copy_constructible< E >::value);

Copy a Result into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
resultthe result to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06355
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06355@rel:R25-11#bcd2ed57
Content hash
bcd2ed57
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06355
Status: valid/unmigrated Version: rel:R25-11#102c007d Versionshistorie & Revisions (1 transition, 7 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_06355@rel:R25-11#102c007d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#037db7362026-09-30
  • R20-11rel:R20-11#cca3bc1b2026-10-14
  • R21-11rel:R21-11#cca3bc1b2026-10-14
  • R22-11rel:R22-11#bbc730c62026-10-14
  • R23-11rel:R23-11#43b78cdb2026-10-14
  • R24-11rel:R24-11#f822e3942026-10-14
  • R25-11rel:R25-11#102c007d2026-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

دالة SetResult [SWS_CORE_06356] Upstream: RS_AP_00130

void SetResult (Result< void, E > &&result) noexcept(std::is_nothrow_ move_constructible< E >::value);

Move a Result into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
resultthe result to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06356
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06356@rel:R25-11#8dc9b150
Content hash
8dc9b150
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06356
Status: valid/unmigrated Version: rel:R25-11#b774f257 Versionshistorie & Revisions (1 transition, 7 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_06356@rel:R25-11#b774f257
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#7d9463062026-09-30
  • R20-11rel:R20-11#a78d4dc72026-10-14
  • R21-11rel:R21-11#58872cf02026-10-14
  • R22-11rel:R22-11#4ac215012026-10-14
  • R23-11rel:R23-11#6ee718ab2026-10-14
  • R24-11rel:R24-11#b39910a12026-10-14
  • R25-11rel:R25-11#b774f2572026-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_06343] Upstream: RS_AP_00130

Promise & operator= (Promise &&other) noexcept;

Move assignment Abandons any shared state and then as if Promise(std::move(other)).swap(*this).

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Promise &*this

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

Record
AUTOSAR/AP/record/SWS_CORE_06343
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06343@rel:R25-11#696202a0
Content hash
696202a0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06343
Status: valid/unmigrated Version: rel:R25-11#5255319a Versionshistorie & Revisions (1 transition, 8 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_06343@rel:R25-11#5255319a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5cab39502026-09-30
  • R19-11rel:R19-11#1bf26ed12026-10-14
  • R20-11rel:R20-11#48b86cf42026-10-14
  • R21-11rel:R21-11#48b86cf42026-10-14
  • R22-11rel:R22-11#f3f4a3782026-10-14
  • R23-11rel:R23-11#f7c7a3162026-10-14
  • R24-11rel:R24-11#75f665232026-10-14
  • R25-11rel:R25-11#5255319a2026-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_06351] Upstream: RS_AP_00130

Promise & operator= (const Promise &)=delete;

Copy assignment operator shall be disabled.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >

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

Record
AUTOSAR/AP/record/SWS_CORE_06351
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06351@rel:R25-11#8a6c6188
Content hash
8a6c6188
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06351
Status: valid/unmigrated Version: rel:R25-11#da528bfc Versionshistorie & Revisions (1 transition, 8 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_06351@rel:R25-11#da528bfc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a520155e2026-09-30
  • R19-11rel:R19-11#5368d78a2026-10-14
  • R20-11rel:R20-11#f52129842026-10-14
  • R21-11rel:R21-11#f52129842026-10-14
  • R22-11rel:R22-11#98fef6192026-10-14
  • R23-11rel:R23-11#42352c6e2026-10-14
  • R24-11rel:R24-11#da528bfc2026-10-14
  • R25-11rel:R25-11#da528bfc2026-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

دالة Promise [SWS_CORE_06341] Upstream: RS_AP_00130

Promise () noexcept;

Default constructor This function shall behave the same as the corresponding std::promise function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06341
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06341@rel:R25-11#71e522e6
Content hash
71e522e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06341
Status: valid/unmigrated Version: rel:R25-11#878bdc11 Versionshistorie & Revisions (1 transition, 8 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_06341@rel:R25-11#878bdc11
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#84c0020a2026-09-30
  • R19-11rel:R19-11#f91d69792026-10-14
  • R20-11rel:R20-11#4be142f22026-10-14
  • R21-11rel:R21-11#4be142f22026-10-14
  • R22-11rel:R22-11#0bcdcb452026-10-14
  • R23-11rel:R23-11#ac0b53742026-10-14
  • R24-11rel:R24-11#49e7ea6a2026-10-14
  • R25-11rel:R25-11#878bdc112026-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

دالة Promise [SWS_CORE_06342] Upstream: RS_AP_00130

Promise (Promise &&other) noexcept;

Move constructor This function shall behave the same as the corresponding std::promise function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

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

Record
AUTOSAR/AP/record/SWS_CORE_06342
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06342@rel:R25-11#5f1d7475
Content hash
5f1d7475
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06342
Status: valid/unmigrated Version: rel:R25-11#20cd8f65 Versionshistorie & Revisions (1 transition, 8 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_06342@rel:R25-11#20cd8f65
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1ed484852026-09-30
  • R19-11rel:R19-11#b97a94832026-10-14
  • R20-11rel:R20-11#0596cb3d2026-10-14
  • R21-11rel:R21-11#0596cb3d2026-10-14
  • R22-11rel:R22-11#a2237bb72026-10-14
  • R23-11rel:R23-11#c68724922026-10-14
  • R24-11rel:R24-11#7b610fd62026-10-14
  • R25-11rel:R25-11#20cd8f652026-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

دالة Promise [SWS_CORE_06350] Upstream: RS_AP_00130

Promise (const Promise &)=delete;

Copy constructor shall be disabled.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >

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

Record
AUTOSAR/AP/record/SWS_CORE_06350
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06350@rel:R25-11#f1144696
Content hash
f1144696
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06350
Status: valid/unmigrated Version: rel:R25-11#7082329f Versionshistorie & Revisions (1 transition, 8 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_06350@rel:R25-11#7082329f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0d3116c52026-09-30
  • R19-11rel:R19-11#2fe4c5172026-10-14
  • R20-11rel:R20-11#7108e8d22026-10-14
  • R21-11rel:R21-11#19c7640a2026-10-14
  • R22-11rel:R22-11#c54e1c692026-10-14
  • R23-11rel:R23-11#0dcb8fcb2026-10-14
  • R24-11rel:R24-11#7082329f2026-10-14
  • R25-11rel:R25-11#7082329f2026-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

دالة get_future [SWS_CORE_06344] Upstream: RS_AP_00130

Future< void, E > get_future () noexcept;

Return an associated Future with the same shared state as *this The returned Future is set as soon as this Promise receives the result, value, or an error. This fuction must only be called once as it is not allowed to have multiple Futures per Promise.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)IsoStdFutureErrc- If the function is called more than once on the same shared FutureAlreadyRe- state. trievedViolation IsoStdFutureErrc- If *this has no shared state. NoStateViolation

Rückgabewert

TypBeschreibung
Future< void, E >a Future with the same shared state as *this

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CORE_06344
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06344@rel:R25-11#6ab247b1
Content hash
6ab247b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06344
Status: valid/unmigrated Version: rel:R25-11#93e02dbc Versionshistorie & Revisions (1 transition, 8 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_06344@rel:R25-11#93e02dbc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5bce60962026-09-30
  • R19-11rel:R19-11#912235632026-10-14
  • R20-11rel:R20-11#da5539322026-10-14
  • R21-11rel:R21-11#da5539322026-10-14
  • R22-11rel:R22-11#7b23ef9e2026-10-14
  • R23-11rel:R23-11#735996a12026-10-14
  • R24-11rel:R24-11#4b281ba02026-10-14
  • R25-11rel:R25-11#93e02dbc2026-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

دالة set_value [SWS_CORE_06345] Upstream: RS_AP_00130

void set_value () noexcept;

Set the shared state value and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06345
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06345@rel:R25-11#3bfb45e9
Content hash
3bfb45e9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06345
Status: valid/unmigrated Version: rel:R25-11#3b3c5766 Versionshistorie & Revisions (1 transition, 8 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_06345@rel:R25-11#3b3c5766
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#134575262026-09-30
  • R19-11rel:R19-11#af0eb6242026-10-14
  • R20-11rel:R20-11#44ec71e02026-10-14
  • R21-11rel:R21-11#44ec71e02026-10-14
  • R22-11rel:R22-11#dee86f272026-10-14
  • R23-11rel:R23-11#f7220ae52026-10-14
  • R24-11rel:R24-11#8ea561a92026-10-14
  • R25-11rel:R25-11#3b3c57662026-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_06352] Upstream: RS_AP_00130

void swap (Promise &other) noexcept;

Swap the contents of this instance with another one’s. This function shall behave the same as the corresponding std::promise function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in/out)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06352
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06352@rel:R25-11#4b973d6b
Content hash
4b973d6b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06352
Status: valid/unmigrated Version: rel:R25-11#41dc8796 Versionshistorie & Revisions (1 transition, 8 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_06352@rel:R25-11#41dc8796
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b6b9b8d62026-09-30
  • R19-11rel:R19-11#4b8965fa2026-10-14
  • R20-11rel:R20-11#a9c4f5f72026-10-14
  • R21-11rel:R21-11#009b8cf12026-10-14
  • R22-11rel:R22-11#c398209e2026-10-14
  • R23-11rel:R23-11#102574fc2026-10-14
  • R24-11rel:R24-11#7f8dd43a2026-10-14
  • R25-11rel:R25-11#41dc87962026-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

دالة ~Promise [SWS_CORE_06349] Upstream: RS_AP_00130

~Promise () noexcept;

Destructor for Promise objects Abandons any shared state.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06349
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06349@rel:R25-11#aa8370a9
Content hash
aa8370a9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06349
Status: valid/unmigrated Version: rel:R25-11#4c093b4e Versionshistorie & Revisions (1 transition, 8 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_06349@rel:R25-11#4c093b4e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e1659fee2026-09-30
  • R19-11rel:R19-11#b5cebea92026-10-14
  • R20-11rel:R20-11#ccc655c02026-10-14
  • R21-11rel:R21-11#ccc655c02026-10-14
  • R22-11rel:R22-11#5aed9c9a2026-10-14
  • R23-11rel:R23-11#346a26f62026-10-14
  • R24-11rel:R24-11#5ed103312026-10-14
  • R25-11rel:R25-11#4c093b4e2026-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