DEENESPTFRRUARHIKOZHNL

classe 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

Guia do utilizadorGERADO POR IA

Permite a disponibilização assíncrona de um resultado void ou erro a um objeto Future associado.
GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 5c77833bef95 Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Permite a disponibilização assíncrona de um resultado void ou erro a um objeto Future associado.

A especialização ara::core::Promise< void, E > serve como ponto terminal produtor assíncrono para sinalizar a conclusão de uma operação sem valor de retorno ou para transmitir um erro ([SWS_CORE_06341]). Após a instanciação, o Future correspondente é obtido exatamente uma vez para o consumidor através de get_future() ([SWS_CORE_06344]). A disponibilização ocorre de forma thread-safe através de set_value(), SetError() ou SetResult(), marcando o estado partilhado como pronto. Como a classe possui semântica exclusiva de movimento, definições múltiplas ou estados partilhados ausentes levam a violações especificadas.

Contexto

A classe ara::core::Promise< void, E > representa uma especialização de modelo para fluxos assíncronos sem valor de dados úteis (tipo de retorno void). Constitui o lado produtor (producer) de um canal de comunicação e sincroniza cálculos ou operações assíncronas com o lado consumidor (consumer). Através de um estado interno partilhado (shared state), permite sinalizar quer a conclusão bem-sucedida de uma operação, quer a ocorrência de um erro do tipo E. O objeto recetor correspondente é disponibilizado sob a forma de ara::core::Future< void, E > ([SWS_CORE_06344]). De acordo com os requisitos da AUTOSAR Adaptive Platform, a implementação exige que o tipo de erro E seja compatível com ara::core::ErrorCode; qualquer discrepância resulta num erro de compilação.

Ciclo de vida

A criação de uma instância ocorre através do construtor predefinido sem parâmetros [SWS_CORE_06341], o qual cria um novo estado partilhado e se comporta de forma análoga à função padrão do C++ std::promise. A classe modela uma posse exclusiva e implementa semântica estrita de movimento: tanto o construtor de cópia ([SWS_CORE_06350]) como o operador de atribuição por cópia ([SWS_CORE_06351]) foram eliminados (delete).

Um estado existente pode ser transferido para outras instâncias através do construtor de movimento ([SWS_CORE_06342]) ou do operador de atribuição por movimento ([SWS_CORE_06343]). Na atribuição por movimento, um estado partilhado detido até então é abandonado e o estado é transferido como por Promise(std::move(other)).swap(*this) ([SWS_CORE_06343]). Além disso, a função swap ([SWS_CORE_06352]) permite a troca direta de dois estados.

O destrutor [SWS_CORE_06349] liberta qualquer estado partilhado que ainda esteja a ser mantido. Interpretação: o abandono prematuro do estado partilhado aquando da destruição de uma Promise ainda não satisfeita deverá levar a um estado órfão no Future associado. Pergunta Q-e89b32fa3e5994e2 (aberta) No que respeita à concorrência, a criação predefinida ([SWS_CORE_06341]), bem como a definição do resultado ([SWS_CORE_06345], [SWS_CORE_06353], [SWS_CORE_06354], [SWS_CORE_06355], [SWS_CORE_06356]) são thread-safe. Em contrapartida, as operações de movimento, swap, a obtenção do Future ([SWS_CORE_06344]) e a destruição não são thread-safe e requerem coordenação externa no acesso partilhado.

Caminho de utilização

A utilização típica de ara::core::Promise< void, E > compreende a preparação da execução assíncrona, a passagem do canal de receção e a subsequente notificação do resultado:

  1. Inicialização: o produtor instancia o objeto Promise ([SWS_CORE_06341]).
  2. Obter o Future: através de get_future(), o ara::core::Future< void, E > associado é criado exatamente uma vez ([SWS_CORE_06344]) e transmitido ao lado consumidor.
  3. Definir o resultado: após a conclusão da operação assíncrona, o produtor coloca o estado partilhado no estado pronto (ready):
  4. Resolução: assim que o estado estiver pronto, o consumidor pode consumir o resultado por meio do future; o objeto promise é liberado ao final de seu escopo ([SWS_CORE_06349]).
Fluxo típico de sincronização com Promise<void, E>ErzeugerPromiseKonsumentPromise()get_future()Future<void, E>Passar FutureUse Case: Asynchrone VerarbeitungaltErfolgreicher Abschlussset_value()FehlerfallSetError(error) ou SetResult(res)Estado compartilhado está pronto (ready)Consultar status via Future~Promise()

Diagrama de sequência: fluxo típico da sincronização assíncrona desde a criação até a disponibilização do resultado. Fontes: [SWS_CORE_06341], [SWS_CORE_06344], [SWS_CORE_06345], [SWS_CORE_06349]

Cenários de erro

Violações das pré-condições levam a situações de erro definidas (violações):

Com relação à segurança contra exceções, os métodos SetError e SetResult são condicionalmente seguros contra exceções (conditionally exception safe): eles garantem noexcept apenas se o tipo E for classificado como construtível por movimentação sem lançamento de exceções (nothrow-move-constructible) ou construtível por cópia sem lançamento de exceções (nothrow-copy-constructible) ([SWS_CORE_06353], [SWS_CORE_06354], [SWS_CORE_06355], [SWS_CORE_06356]).

Este guia de classe baseia-se na especificação AUTOSAR Adaptive Platform R25-11 e foi gerado automaticamente.

Mapa de membros

Construtores e destrutor

2

Operadores

1

Diagrama de classes

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()

Vista de detalhes

Selecione uma entrada no índice.

Construtores e destrutor

Promise função 3

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

Sobrecargas Promise 3
Promise () noexcept; SWS_CORE_06341
Promise (Promise &&other) noexcept; SWS_CORE_06342
Promise (const Promise &)=delete; SWS_CORE_06350
~Promise função

Destructor for Promise objects Abandons any shared state.

~Promise () noexcept;

Métodos

get_future função

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 função

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

void set_value () noexcept;
SetError função 2

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

Sobrecargas 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 função 2

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

Sobrecargas 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 função

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;

Operadores

operator= função 2

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

Sobrecargas = 2
Promise & operator= (Promise &&other) noexcept; SWS_CORE_06343
Promise & operator= (const Promise &)=delete; SWS_CORE_06351

Documentação dos métodos

função 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#14c5454b
Content hash
14c5454b
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

função 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#c345fc2b
Content hash
c345fc2b
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

função 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#ba4f48c8
Content hash
ba4f48c8
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

função 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#a56a0a4b
Content hash
a56a0a4b
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

função 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#1b0d27b2
Content hash
1b0d27b2
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

função 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#d2fadd8f
Content hash
d2fadd8f
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

função 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#7eb4b68d
Content hash
7eb4b68d
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

função 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#8e7e4b78
Content hash
8e7e4b78
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

função 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#c144e941
Content hash
c144e941
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

função 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#d36aba46
Content hash
d36aba46
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

função 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#55d82e79
Content hash
55d82e79
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

função 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#da8a05ff
Content hash
da8a05ff
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

função ~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#546c14cc
Content hash
546c14cc
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