DEENESPTFRRUARHIKOZHNL

clase ara::core::Result< void, E >

[SWS_CORE_00801] Upstream: RS_AP_00130

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

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

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

Guía del usuarioGENERADO POR IA

Señala la finalización correcta de una operación sin valor o transporta un código de error producido.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 8bbf74b21d56 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Señala la finalización correcta de una operación sin valor o transporta un código de error producido.

La clase ara::core::Result<void, E> especializa el patrón Result para operaciones sin valor de retorno y representa o bien una finalización correcta o bien un error ([SWS_CORE_00811]). Tras la ejecución, quien realiza la llamada comprueba el estado de éxito mediante HasValue() ([SWS_CORE_00851]) o operator bool() y, en caso de error, accede a la causa del error contenida. Como condición de contorno vinculante, el tipo de error E debe corresponder al tipo ara::core::ErrorCode, ya que los tipos divergentes se rechazan ya en tiempo de compilación.

Contexto

La clase de plantilla ara::core::Result<void, E> representa una especialización parcial del patrón Result para operaciones que en caso de éxito no transmiten ningún valor de retorno (void), sino que señalan exclusivamente el éxito o el fallo de una acción. Según la definición de tipo, el tipo de valor value_type se fija siempre como void ([SWS_CORE_00811]), mientras que error_type representa el tipo de error parametrizado E ([SWS_CORE_00812]). Para el tipo E rige la directriz funcional de que cualquier discrepancia respecto a ara::core::ErrorCode debe ser rechazada por la implementación como error de compilación.

En AUTOSAR Adaptive Platform, ara::core::Result<void, E> actúa como tipo de retorno estandarizado para procedimientos propensos a errores y comandos de control entre componentes invocadores e interfaces ejecutoras. En lugar del clásico tratamiento de excepciones de C++, la clase ofrece una transmisión de errores explícita y económica en recursos, que permite tanto la consulta directa de estado como encadenamientos funcionales en la ruta de llamada.

Ciclo de vida

Una instancia de ara::core::Result<void, E> se encuentra a lo largo de toda su vida útil en exactamente uno de dos estados discretos: el estado de valor (éxito) o el estado de error. La inicialización con un valor void se realiza a través del constructor por defecto Result() ([SWS_CORE_00821]) o del método de fábrica estático FromValue() ([SWS_CORE_00831]). Para la creación en estado de error están disponibles constructores explícitos para lvalues y rvalues del tipo de error E ([SWS_CORE_00823], [SWS_CORE_00824]). Complementariamente, las funciones de fábrica FromError() permiten la construcción a partir de lvalues de error ([SWS_CORE_00834]), rvalues ([SWS_CORE_00835]) o mediante construcción in-place directa a partir de paquetes de parámetros ([SWS_CORE_00836]).

Las instancias preexistentes se pueden situar posteriormente en el estado de valor mediante EmplaceValue() ([SWS_CORE_00843]) o asignarse directamente con un nuevo error mediante EmplaceError() ([SWS_CORE_00844]). Los constructores de copia y de movimiento ([SWS_CORE_00825], [SWS_CORE_00826]), así como los correspondientes operadores de asignación ([SWS_CORE_00841], [SWS_CORE_00842]), transfieren el estado entre instancias; Swap() intercambia los contenidos de dos objetos ([SWS_CORE_00845]).

El destructor ~Result() finaliza el ciclo de vida ([SWS_CORE_00827]) y es trivial si se cumple std::is_trivially_destructible<E>::value. En cuanto a la concurrencia, las operaciones de solo lectura son thread-safe, mientras que las operaciones que modifican el estado, como EmplaceValue(), EmplaceError(), asignaciones o Swap(), no son thread-safe.

lifecycle Init WertZustand Wert-Zustand (void / Erfolg) Init->WertZustand Result(), FromValue() FehlerZustand Fehler-Zustand (E / Misserfolg) Init->FehlerZustand Result(e), FromError() WertZustand->FehlerZustand EmplaceError() FehlerZustand->WertZustand EmplaceValue()

Diagrama de estados: ciclo de vida y transiciones de estado entre el estado de valor y el estado de error. Fuentes: [SWS_CORE_00821], [SWS_CORE_00831], [SWS_CORE_00823], [SWS_CORE_00834], [SWS_CORE_00843], [SWS_CORE_00844]

Ruta de uso

El flujo regular comienza con la recepción de una instancia de ara::core::Result<void, E> procedente de una llamada a función. Quien realiza la llamada evalúa el resultado mediante HasValue() ([SWS_CORE_00851]) o la conversión operator bool() ([SWS_CORE_00852]). Si la ejecución ha tenido éxito, se puede encadenar funcionalmente una operación subsiguiente mediante Bind() ([SWS_CORE_00870]): Bind() ejecuta el invocable (callable) transferido solo si la instancia contiene un valor, y devuelve su resultado transformado. Si en su lugar hay un error presente, se omite la función invocada y el contenido de error se asume en el nuevo resultado.

Para la homogeneización en código genérico, la especialización proporciona interfaces que formalmente se corresponden con la clase Result general: Value() ([SWS_CORE_00855]), operator*() ([SWS_CORE_00853]) y ValueOr() ([SWS_CORE_00861]) no devuelven ningún valor y actúan como métodos no-op. Análogamente, Resolve() ([SWS_CORE_00867]) ejecuta un invocable transferido solo si existe un error, y permanece inactivo en caso de éxito.

Ruta de uso típica para la comprobación de operaciones y el procesamiento posteriorInvocadorDienstResult<void, E>Execute()FromValue() / FromError()Result<void, E>HasValue()boolaltHasValue() == true (Erfolg)Bind(f)HasValue() == false (Fehler)Error() / Err()Fehlerwert E / Optional<E>

Diagrama de secuencia: secuencia típica de llamada, comprobación de estado y tratamiento de error o encadenamiento. Fuentes: [SWS_CORE_00851], [SWS_CORE_00857], [SWS_CORE_00868], [SWS_CORE_00870]

Escenarios de error

Si la instancia se encuentra en estado de error, el error contenido se puede consultar como referencia a través de las sobrecargas de Error() ([SWS_CORE_00857], [SWS_CORE_00858], [SWS_CORE_00876]). En este caso rige una precondición estricta: la llamada a Error() en una instancia que no contiene ningún error representa una ResultWithNoErrorViolation. A la inversa, la llamada a Value() ([SWS_CORE_00855]) o operator*() ([SWS_CORE_00853]) en una instancia en estado de error desencadena una ResultWithNoValueViolation.

Para evitar infracciones de precondición, se ofrecen métodos de consulta alternativos: Err() suministra el error empaquetado en un ara::core::Optional<E>, el cual permanece vacío en caso de éxito ([SWS_CORE_00868], [SWS_CORE_00869]). Con ErrorOr() se puede indicar un error por defecto que se devuelve si no se contiene ningún error ([SWS_CORE_00863], [SWS_CORE_00864]). Para comprobaciones respecto a determinados valores de error, CheckError() coteja el error interno con un valor de comparación ([SWS_CORE_00865]).

Si se prefiere un tratamiento de errores basado en excepciones, ValueOrThrow() ([SWS_CORE_00866]) lanza en caso de error la excepción asignada al error; si hay un valor presente, la llamada retorna normalmente. Si las excepciones de C++ están deshabilitadas en la cadena de herramientas (toolchain), ValueOrThrow() no participa en la resolución de sobrecargas ([SWS_CORE_00866]).

Esta guía se basa en la especificación ara::core::Result<void, E> en el Release R25-11 y ha sido generada automáticamente.

Mapa de miembros

Diagrama de clases

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

G nara__core__Result__void__E__788 Result< void, E > + Result() + operator=() + ~Result() + Bind() + CheckError() + EmplaceError() + EmplaceValue() + Err() + Error() + ErrorOr() + HasValue() + Resolve() + Swap() + Value() + ValueOr() + ValueOrThrow() … 4 weitere

Vista de detalle

Selecciona una entrada en el índice.

Constructores y destructor

Result función 5

Construct a new Result with a void value

Sobrecargas Result 5
Result () noexcept; SWS_CORE_00821
explicit Result (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00823
explicit Result (E &&e) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00824
Result (const Result &other) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00825
Result (Result &&other) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00826
~Result función

Destructor This destructor is trivial if std::is_trivially_destructible<E>::value is true ≙ std::is_trivially_destructible

~Result () noexcept;

Métodos

Bind función

Call the given Callable, and return a new Result with the result of the call. The Callable is expected to be compatible to one of these two interfaces: • Result<XXX, E> f(); • XXX f(); meaning that the Callable either returns a Result<XXX, E> or a XXX directly, where XXX can be any type that is suitable for use by class Result. The return type of this function is decltype(f()) for a template argument F that returns a Result type, and it is Result<decltype(f()), E> for a template argument F that does not return a Result type. If this instance does not contain a value, a new Result<XXX, E> is still created and returned, with the original error contents of this instance being copied into the new instance

template <typename F> auto Bind (F &&f) const -> <see below>;
CheckError función

Return whether this instance contains the given error. This call compares the argument error, static_cast’d to E, with the return value from Error()

template <typename G> bool CheckError (G &&error) const noexcept;
EmplaceError función

Put a new error into this instance, constructed in-place from the given arguments.

template <typename... Args> void EmplaceError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value);
EmplaceValue función

Put a new value into this instance, constructed in-place from the given arguments.

template <typename... Args> void EmplaceValue (Args &&... args) noexcept;
Err función 2

Return the contained error as an ara::core::Optional.

Sobrecargas Err 2
Optional< E > Err () const &noexcept(std::is_nothrow_constructible< Optional< E >, const E &>::value); SWS_CORE_00868
Optional< E > Err () &&noexcept(std::is_nothrow_constructible< Optional< E >, E && >::value); SWS_CORE_00869
Error función 3

Access the contained error.

Sobrecargas Error 3
const E & Error () const & noexcept; SWS_CORE_00857
E && Error () &&noexcept; SWS_CORE_00858
E & Error () & noexcept; SWS_CORE_00876
ErrorOr función 2

Return the contained error or the given default error. If *this contains an error, it is returned. Otherwise, the specified default error is returned, static_cast’d to E

Sobrecargas ErrorOr 2
template <typename G> E ErrorOr (G &&defaultError) const &noexcept(std::is_nothrow_copy_ constructible< E >::value &&std::is_nothrow_constructible< E, G &&>::value); SWS_CORE_00863
template <typename G> E ErrorOr (G &&defaultError) &&noexcept(std::is_nothrow_move_ constructible< E >::value &&std::is_nothrow_constructible< E, G && >::value); SWS_CORE_00864
FromError función 3

Build a new ara::core::Result from the specified error (given as lvalue)

Sobrecargas FromError 3
static Result FromError (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00834
static Result FromError (E &&e) noexcept(std::is_nothrow_move_ constructible< E >::value); SWS_CORE_00835
template <typename... Args> static Result FromError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value); SWS_CORE_00836
FromValue función

Build a new Result with void as value

static Result FromValue () noexcept;
HasValue función

Check whether *this contains a value.

bool HasValue () const noexcept;
Resolve función

Do nothing or call a function. If *this contains a value, this function does nothing. Otherwise, the specified callable is invoked. The Callable is expected to be compatible to this interface: void f(const E&); This function only exists for helping with generic programming.

template <typename F> void Resolve (F &&f) const;
Swap función

Exchange the contents of this instance with those of other

void Swap (Result &other) noexcept(std::is_nothrow_move_constructible< E >::value &&std::is_nothrow_move_assignable< E >::value);
Value función

This function only exists for helping with generic programming

void Value () const noexcept;
ValueOr función

Do nothing. This function only exists for helping with generic programming.

template <typename U> void ValueOr (U &&defaultValue) const noexcept;
ValueOrThrow función

Return the contained value or throw an exception.

void ValueOrThrow () const noexcept(false);

Operadores

operator bool función

Check whether *this contains a value

explicit operator bool () const noexcept;
operator* función

Access the contained value.

void operator* () const noexcept;
operator= función 2

Copy-assign another ara::core::Result to this instance

Sobrecargas = 2
Result & operator= (const Result &other) noexcept(std::is_nothrow_ copy_constructible< E >::value &&std::is_nothrow_copy_assignable< E >::value); SWS_CORE_00841

Alias de tipo

error_type alias de tipo

Type alias for the type E of errors

using error_type = E;
value_type alias de tipo

Type alias for the type T of values, always void for this specialization

using value_type = void;

Documentación de los métodos

función Bind [SWS_CORE_00870] Upstream: RS_AP_00130

template <typename F> auto Bind (F &&f) const -> <see below>;

Call the given Callable, and return a new Result with the result of the call. The Callable is expected to be compatible to one of these two interfaces: • Result<XXX, E> f(); • XXX f(); meaning that the Callable either returns a Result<XXX, E> or a XXX directly, where XXX can be any type that is suitable for use by class Result. The return type of this function is decltype(f()) for a template argument F that returns a Result type, and it is Result<decltype(f()), E> for a template argument F that does not return a Result type. If this instance does not contain a value, a new Result<XXX, E> is still created and returned, with the original error contents of this instance being copied into the new instance

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: c3e549b2f1ca Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Uso y contexto de llamada

La función miembro Bind de la especialización ara::core::Result<void, E> de ara/core/result.h ejecuta un cálculo posterior sobre una instancia exitosa sin valor de resultado [SWS_CORE_00870]. Si hay un valor presente, se invoca el callable pasado f de forma síncrona y sin parámetros. El callable debe cumplir la interfaz Result<XXX, E> f() o bien XXX f(), debiendo ser XXX un tipo admisible para Result [SWS_CORE_00870]. Si el callable devuelve un Result, el tipo de retorno corresponde a decltype(f()); si devuelve directamente XXX, el resultado se empaqueta como Result<decltype(f()), E> [SWS_CORE_00870].

Tratamiento de errores y concurrencia

Si la instancia no contiene ningún valor, se devuelve un nuevo Result<XXX, E> en el que se copia el error original [SWS_CORE_00870]. Interpretación: en este caso es de prever que no se ejecute el callable f. En cuanto a la seguridad de ejecución, la función se considera not exception safe [SWS_CORE_00870]. La seguridad para subprocesos es condicional (conditional) y depende por completo de la seguridad para subprocesos del callable pasado f [SWS_CORE_00870]. Pregunta Q-6288a7106d2730c3 (abierta)

Interacción con requisitos relacionados

A diferencia de las funciones Result<T, E> primarias de [SWS_CORE_00768] y [SWS_CORE_00941], en las que el callable recibe el valor de la instancia mediante f(const T&), la presente sobrecarga [SWS_CORE_00870] vincula operaciones a resultados void y, por lo tanto, espera un callable sin parámetros.

Esta nota de uso se ha generado automáticamente sobre la base de la versión de especificación AUTOSAR R25-11.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitnot exception safe
Thread-Sicherheitconditional, depends on thread safety of f

Template-Parameter

ParameterBeschreibung
Fthe type of the Callable f

Parameter (in)

ParameterBeschreibung
fthe Callable

Rückgabewert

TypBeschreibung
<see below>a new Result instance of the possibly transformed type

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

Record
AUTOSAR/AP/record/SWS_CORE_00870
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00870@rel:R25-11#4f20b078
Content hash
4f20b078
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00870
Status: valid/unmigrated Version: rel:R25-11#e97c3561 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_00870@rel:R25-11#e97c3561
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#609a669f2026-09-30
  • R20-11rel:R20-11#54a19d8c2026-10-14
  • R21-11rel:R21-11#54a19d8c2026-10-14
  • R22-11rel:R22-11#82ad4f452026-10-14
  • R23-11rel:R23-11#0661a5ee2026-10-14
  • R24-11rel:R24-11#1de461af2026-10-14
  • R25-11rel:R25-11#e97c35612026-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

función EmplaceError [SWS_CORE_00844] Upstream: RS_AP_00130

template <typename... Args> void EmplaceError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value);

Put a new error into this instance, constructed in-place from the given arguments.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 95d51174d109 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro EmplaceError de la especialización ara::core::Result<void, E> construye de forma síncrona un nuevo valor de error directamente in-place dentro de la instancia existente a partir de los argumentos pasados args [SWS_CORE_00844]. La función de plantilla proporcionada a través del archivo de encabezado ara/core/result.h no posee valor de retorno e inicializa el objeto de error del tipo E inmediatamente in situ [SWS_CORE_00844].

En cuanto al tratamiento de errores y la seguridad frente a excepciones, la operación está clasificada como condicionalmente segura frente a excepciones (conditionally exception safe) [SWS_CORE_00844]. Mediante el especificador noexcept(std::is_nothrow_constructible<E, Args...>::value) se garantiza la ausencia de excepciones, siempre que el tipo E pueda construirse con los tipos Args... sin excepciones [SWS_CORE_00844].

En relación con la concurrencia y las condiciones de contorno, la función miembro se define como no segura para subprocesos (not thread-safe) [SWS_CORE_00844]. Si varios subprocesos acceden concurrentemente a la misma instancia de Result, presumiblemente se requiera un mecanismo de sincronización externo para evitar cambios de estado no coordinados. Pregunta Q-ffcb8ced860f6080 (abierta)

En el contexto global del módulo core, [SWS_CORE_00844] se corresponde directamente con las demás variantes de la misma función: para la plantilla primaria ara::core::Result se especifica el comportamiento idéntico en [SWS_CORE_00744], mientras que para tipos de referencia ara::core::Result<T&, E> el requisito [SWS_CORE_00916] establece la misma signatura y semántica.

Esta nota de uso fue generada por una IA a partir de la especificación AUTOSAR R25-11.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Template-Parameter

ParameterBeschreibung
Args...the types of arguments given to this function

Parameter (in)

ParameterBeschreibung
argsthe arguments used for constructing the error

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00844
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00844@rel:R25-11#7abb31d0
Content hash
7abb31d0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00844
Status: valid/unmigrated Version: rel:R25-11#88f4eda1 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_00844@rel:R25-11#88f4eda1
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bf2f5b962026-09-30
  • R19-11rel:R19-11#4c83aff42026-10-14
  • R20-11rel:R20-11#458451b42026-10-14
  • R21-11rel:R21-11#a69891002026-10-14
  • R22-11rel:R22-11#139e999d2026-10-14
  • R23-11rel:R23-11#5bb406fd2026-10-14
  • R24-11rel:R24-11#88f4eda12026-10-14
  • R25-11rel:R25-11#88f4eda12026-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

función EmplaceValue [SWS_CORE_00843] Upstream: RS_AP_00130

template <typename... Args> void EmplaceValue (Args &&...               args) noexcept;

Put a new value into this instance, constructed in-place from the given arguments.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 615b498206aa Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Uso y contexto de llamada

La función miembro de plantilla EmplaceValue pertenece al módulo core y se define mediante el archivo de encabezado #include "ara/core/result.h" para la especialización ara::core::Result<void, E> [SWS_CORE_00843]. Su propósito es la creación directa o el establecimiento de un nuevo valor en la instancia existente a partir de los argumentos pasados args [SWS_CORE_00843]. La ejecución se realiza de forma síncrona y no proporciona ningún valor de retorno (void) [SWS_CORE_00843]. Dado que el tipo de valor de la especialización es void, la llamada pasa la instancia a un estado de éxito; como interpretación, la recepción de args probablemente sirva principalmente para la compatibilidad genérica de la signatura con la clase de plantilla primaria. Pregunta Q-b53ca5908f2517fb (abierta)

Tratamiento de errores y seguridad frente a excepciones

La función está declarada como noexcept y cuenta con la especificación exception safe [SWS_CORE_00843]. No devuelve códigos de error ni lanza excepciones. Si el objeto Result se encontraba previamente en un estado de error, este se sobrescribe al insertar el valor.

Concurrencia y restricciones

La operación está designada como no segura para subprocesos (not thread-safe) [SWS_CORE_00843]. En caso de accesos de lectura o escritura potencialmente concurrentes a la misma instancia de ara::core::Result, es estrictamente necesaria una sincronización externa por parte del invocador.

Interacción con especificaciones afines

En comparación con la implementación general de EmplaceValue para ara::core::Result<T, E> en [SWS_CORE_00743], que solo es condicionalmente segura frente a excepciones y cuya propiedad noexcept depende de std::is_nothrow_constructible<T, Args...>::value, la especialización void ofrece, según [SWS_CORE_00843], una garantía de noexcept y de seguridad frente a excepciones sin restricciones.

Esta nota de uso se generó automáticamente a partir de la especificación AUTOSAR para R25-11.

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

Template-Parameter

ParameterBeschreibung
Args...the types of arguments given to this function

Parameter (in)

ParameterBeschreibung
argsthe arguments used for constructing the value

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00843
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00843@rel:R25-11#8ba1138e
Content hash
8ba1138e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00843
Status: valid/unmigrated Version: rel:R25-11#96a7737d 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_00843@rel:R25-11#96a7737d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#129ba0572026-09-30
  • R19-11rel:R19-11#b323d52c2026-10-14
  • R20-11rel:R20-11#93b34c042026-10-14
  • R21-11rel:R21-11#89a72b1b2026-10-14
  • R22-11rel:R22-11#a8be1c612026-10-14
  • R23-11rel:R23-11#34d2947b2026-10-14
  • R24-11rel:R24-11#ab2f88f32026-10-14
  • R25-11rel:R25-11#96a7737d2026-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

función Err [SWS_CORE_00868] Upstream: RS_AP_00130

Optional< E > Err () const &noexcept(std::is_nothrow_constructible< Optional< E >, const E &>::value);

Return the contained error as an ara::core::Optional.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: c47cf49ad139 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro Err() const & de la especialización de clase ara::core::Result<void, E> permite consultar de forma síncrona un estado de error posiblemente contenido ([SWS_CORE_00868]). Se declara mediante el archivo de cabecera ara/core/result.h y no requiere parámetros de entrada al llamarse ([SWS_CORE_00868]). Como valor de retorno, la función proporciona un ara::core::Optional<E>, que contiene el valor de error concreto si el objeto representa un error ([SWS_CORE_00868]).

En relación con la concurrencia y las condiciones de contorno, la operación está especificada explícitamente como thread-safe ([SWS_CORE_00868]). En cuanto a la seguridad ante excepciones, el método se considera condicionalmente seguro ante excepciones (conditionally exception safe) ([SWS_CORE_00868]). La garantía noexcept entra en vigor exactamente cuando se cumple std::is_nothrow_constructible<Optional<E>, const E&>::value ([SWS_CORE_00868]).

En el conjunto de interfaces, la sobrecarga rvalue Err() && ([SWS_CORE_00869]) complementa esta función dentro de ara::core::Result<void, E>. También se dispone de pares comparables de sobrecargas lvalue y rvalue para la plantilla primaria ara::core::Result<T, E> ([SWS_CORE_00772], [SWS_CORE_00773]), así como para la especialización de referencia ara::core::Result<T&, E> ([SWS_CORE_00931], [SWS_CORE_00932]).

Este texto ha sido generado por una IA a partir de la especificación de AUTOSAR.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Optional< E >an ara::core::Optional with the error, if present

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

Record
AUTOSAR/AP/record/SWS_CORE_00868
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00868@rel:R25-11#e944680b
Content hash
e944680b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00868
Status: valid/unmigrated Version: rel:R25-11#af27147a 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_00868@rel:R25-11#af27147a
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#144570032026-09-30
  • R20-11rel:R20-11#1575a8882026-10-14
  • R21-11rel:R21-11#1575a8882026-10-14
  • R22-11rel:R22-11#f054b0a72026-10-14
  • R23-11rel:R23-11#85d1a0ea2026-10-14
  • R24-11rel:R24-11#0001f71c2026-10-14
  • R25-11rel:R25-11#af27147a2026-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

función Err [SWS_CORE_00869] Upstream: RS_AP_00130

Optional< E > Err () &&noexcept(std::is_nothrow_constructible< Optional< E >, E && >::value);

Return the contained error as an ara::core::Optional.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 5bc8fa1204ae Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro Err() && de la especialización ara::core::Result< void, E > extrae un error eventualmente presente y lo devuelve como ara::core::Optional< E > [SWS_CORE_00869]. Se incluye mediante el archivo de cabecera ara/core/result.h [SWS_CORE_00869].

En cuanto al uso y la semántica, se aplican las siguientes propiedades:

  • Contexto de llamada y parámetros: La función no toma parámetros y, como método calificado como rvalue, se vincula exclusivamente a instancias rvalue de ara::core::Result< void, E > [SWS_CORE_00869]. Interpretación: debido a la semántica de rvalue (&&), es probable que el objeto de error se mueva al Optional devuelto durante la llamada. Pregunta Q-b5a0098f77686ca6 (abierta)
  • Valor de retorno: El ara::core::Optional< E > resultante contiene el valor de error, siempre que dicho error esté presente en el objeto [SWS_CORE_00869].
  • Seguridad ante excepciones y concurrencia: La operación está clasificada como condicionalmente segura ante excepciones (conditionally exception safe) y no lanza excepciones si se cumple std::is_nothrow_constructible< Optional< E >, E && >::value [SWS_CORE_00869]. Además, la función está especificada como segura para subprocesos (thread-safe) [SWS_CORE_00869].

En la interacción de las interfaces, esta variante rvalue complementa la sobrecarga lvalue correspondiente Err() const & de la misma especialización [SWS_CORE_00868]. Existen pares análogos de métodos lvalue y rvalue para la plantilla primaria ara::core::Result [SWS_CORE_00772], [SWS_CORE_00773], así como para la especialización de referencia ara::core::Result< T &, E > [SWS_CORE_00931], [SWS_CORE_00932].

Este texto ha sido elaborado mediante una IA y se fundamenta en el estado de especificación de AUTOSAR R25-11.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
Optional< E >an ara::core::Optional with the error, if present

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

Record
AUTOSAR/AP/record/SWS_CORE_00869
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00869@rel:R25-11#6e7bfd13
Content hash
6e7bfd13
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00869
Status: valid/unmigrated Version: rel:R25-11#b4c022c9 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_00869@rel:R25-11#b4c022c9
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1a48a8702026-09-30
  • R20-11rel:R20-11#2d7a35ca2026-10-14
  • R21-11rel:R21-11#cf11993e2026-10-14
  • R22-11rel:R22-11#b9330f822026-10-14
  • R23-11rel:R23-11#d9d839322026-10-14
  • R24-11rel:R24-11#520c6e5d2026-10-14
  • R25-11rel:R25-11#b4c022c92026-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

función Error [SWS_CORE_00857] Upstream: RS_AP_00130

const E & Error () const & noexcept;

Access the contained error.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ResultWithNoEr- If *this does not contain an error. rorViolation

Rückgabewert

TypBeschreibung
const E &a const reference to the contained error

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

Record
AUTOSAR/AP/record/SWS_CORE_00857
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00857@rel:R25-11#65bf6662
Content hash
65bf6662
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00857
Status: valid/unmigrated Version: rel:R25-11#387fd43b 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_00857@rel:R25-11#387fd43b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0eaf7ea52026-09-30
  • R19-11rel:R19-11#b57e9caa2026-10-14
  • R20-11rel:R20-11#4844eb4b2026-10-14
  • R21-11rel:R21-11#4844eb4b2026-10-14
  • R22-11rel:R22-11#0b0dee212026-10-14
  • R23-11rel:R23-11#36f4e40e2026-10-14
  • R24-11rel:R24-11#387fd43b2026-10-14
  • R25-11rel:R25-11#387fd43b2026-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

función Error [SWS_CORE_00858] Upstream: RS_AP_00130

E && Error () &&noexcept;

Access the contained error.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ResultWithNoEr- If *this does not contain an error. rorViolation

Rückgabewert

TypBeschreibung
E &&an rvalue reference to the contained error

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

Record
AUTOSAR/AP/record/SWS_CORE_00858
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00858@rel:R25-11#2e2e91fb
Content hash
2e2e91fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00858
Status: valid/unmigrated Version: rel:R25-11#98daaaa9 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_00858@rel:R25-11#98daaaa9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#450345282026-09-30
  • R19-11rel:R19-11#d25659962026-10-14
  • R20-11rel:R20-11#2c3cfda32026-10-14
  • R21-11rel:R21-11#bfc21da42026-10-14
  • R22-11rel:R22-11#85b4e2f12026-10-14
  • R23-11rel:R23-11#dd2260e22026-10-14
  • R24-11rel:R24-11#98daaaa92026-10-14
  • R25-11rel:R25-11#98daaaa92026-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

función Error [SWS_CORE_00876] Upstream: RS_AP_00130

E & Error () & noexcept;

Access the contained error.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ResultWithNoEr- If *this does not contain an error. rorViolation

Rückgabewert

TypBeschreibung
E&a reference to the contained error

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

Record
AUTOSAR/AP/record/SWS_CORE_00876
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00876@rel:R25-11#e4b9cf94
Content hash
e4b9cf94
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00876
Status: valid/unmigrated Version: rel:R25-11#048abd13 Versionshistorie & Revisions (1 transition, 4 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_00876@rel:R25-11#048abd13
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#5dfbc7c52026-09-30
  • R23-11rel:R23-11#f6e4dde02026-10-14
  • R24-11rel:R24-11#048abd132026-10-14
  • R25-11rel:R25-11#048abd132026-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

función ErrorOr [SWS_CORE_00863] Upstream: RS_AP_00130

template <typename G> E ErrorOr (G &&defaultError) const &noexcept(std::is_nothrow_copy_ constructible< E >::value &&std::is_nothrow_constructible< E, G &&>::value);

Return the contained error or the given default error. If *this contains an error, it is returned. Otherwise, the specified default error is returned, static_cast’d to E

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 478ce836109b Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro de plantilla ErrorOr de la especialización ara::core::Result<void, E> sirve para obtener de forma síncrona el error contenido o un error predeterminado alternativo según [SWS_CORE_00863]. Si la instancia ya contiene un valor de error de tipo E, este se devuelve sin cambios; de lo contrario, el parámetro transferido defaultError se convierte mediante static_cast al tipo de error E y se devuelve [SWS_CORE_00863].

En cuanto al tratamiento de errores y la concurrencia, se aplican las siguientes propiedades:

  • Seguridad ante excepciones: La llamada es condicionalmente segura ante excepciones (conditionally exception safe) y está declarada como noexcept, siempre que tanto la construcción de copia de E como la construcción de E a partir del tipo de referencia universal G&& no lancen excepciones (std::is_nothrow_copy_constructible<E>::value && std::is_nothrow_constructible<E, G&&>::value) [SWS_CORE_00863].
  • Seguridad para subprocesos: La operación está especificada como segura para subprocesos (thread-safe) [SWS_CORE_00863]. Dado que se trata de una sobrecarga de referencia lvalue constante (const &), los accesos de lectura simultáneos a la misma instancia deberían ser seguros. Pregunta Q-f95402c2e79ef590 (abierta)
  • Cabecera: La función se proporciona a través del archivo de cabecera #include "ara/core/result.h" [SWS_CORE_00863].

En la interacción dentro de ara::core::Result, [SWS_CORE_00863] constituye la contrapartida lvalue constante de la sobrecarga rvalue [SWS_CORE_00864] para resultados void, en la cual el error se transfiere a través de std::move. Existen sobrecargas equivalentes para la plantilla de clase primaria Result<T, E> a través de [SWS_CORE_00763] y [SWS_CORE_00764], así como para tipos de referencia Result<T &, E> a través de [SWS_CORE_00935] y [SWS_CORE_00936].

Este texto ha sido generado por una IA sobre la base de la especificación AUTOSAR R25-11.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe

Template-Parameter

ParameterBeschreibung
Gthe type of defaultError

Parameter (in)

ParameterBeschreibung
defaultErrorthe error to use if *this does not contain an error

Rückgabewert

TypBeschreibung
Ethe error

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

Record
AUTOSAR/AP/record/SWS_CORE_00863
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00863@rel:R25-11#bee09d6c
Content hash
bee09d6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00863
Status: valid/unmigrated Version: rel:R25-11#cf2c41ab 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_00863@rel:R25-11#cf2c41ab
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c418147a2026-09-30
  • R19-11rel:R19-11#89eb2b042026-10-14
  • R20-11rel:R20-11#83a977a92026-10-14
  • R21-11rel:R21-11#83a977a92026-10-14
  • R22-11rel:R22-11#c4caa8152026-10-14
  • R23-11rel:R23-11#8f9486662026-10-14
  • R24-11rel:R24-11#aea7d19f2026-10-14
  • R25-11rel:R25-11#cf2c41ab2026-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

función ErrorOr [SWS_CORE_00864] Upstream: RS_AP_00130

template <typename G> E ErrorOr (G &&defaultError) &&noexcept(std::is_nothrow_move_ constructible< E >::value &&std::is_nothrow_constructible< E, G && >::value);

Return the contained error or the given default error. If *this contains an error, it is std:: move’d into the return value. Otherwise, the specified default error is returned, static_cast’d to E

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 4d76cf06b254 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Uso y semántica

La función miembro ErrorOr de la especialización ara::core::Result<void, E> sirve para leer de forma síncrona un error de una instancia rvalue ([SWS_CORE_00864]). Si se llama al método y el objeto Result contiene un error, este se mueve mediante std::move al valor de retorno de tipo E. Si, por el contrario, existe un resultado exitoso, el argumento pasado defaultError se convierte mediante static_cast a E y se devuelve ([SWS_CORE_00864]).

Tratamiento de errores y seguridad frente a excepciones

La función no genera por sí misma mensajes de error clásicos de AUTOSAR como DET o DEM. En cuanto al tratamiento de excepciones, ErrorOr es condicionalmente segura ante excepciones (conditionally exception safe). Está protegida mediante una expresión noexcept, siempre que tanto el tipo de error E pueda moverse sin excepciones (std::is_nothrow_move_constructible<E>::value) como E pueda construirse libre de excepciones a partir del tipo de referencia universal G&& del error predeterminado ([SWS_CORE_00864]).

Concurrencia e interacción

El método está especificado como thread-safe ([SWS_CORE_00864]). Debido al calificador de referencia rvalue &&, la llamada requiere que el objeto Result se transfiera como rvalue.

En el módulo core, esta variante rvalue se combina con otras manifestaciones:

  • Para ara::core::Result<void, E> existe como contrapartida lvalue la sobrecarga const & [SWS_CORE_00863], que copia el error en lugar de moverlo.
  • Para resultados de valor y de referencia, las especializaciones ara::core::Result<T, E> ([SWS_CORE_00763], [SWS_CORE_00764]) así como ara::core::Result<T&, E> ([SWS_CORE_00935], [SWS_CORE_00936]) ofrecen la misma estructura de firma dual para la semántica de copia y movimiento.

Esta nota de uso se generó automáticamente a partir de los requisitos de especificación de AUTOSAR Adaptive R25-11.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe

Template-Parameter

ParameterBeschreibung
Gthe type of defaultError

Parameter (in)

ParameterBeschreibung
defaultErrorthe error to use if *this does not contain an error

Rückgabewert

TypBeschreibung
Ethe error

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

Record
AUTOSAR/AP/record/SWS_CORE_00864
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00864@rel:R25-11#85ef27fb
Content hash
85ef27fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00864
Status: valid/unmigrated Version: rel:R25-11#3a5225ab 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_00864@rel:R25-11#3a5225ab
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#c80a389f2026-09-30
  • R20-11rel:R20-11#7a0784612026-10-14
  • R21-11rel:R21-11#2ded9bb32026-10-14
  • R22-11rel:R22-11#68608ae42026-10-14
  • R23-11rel:R23-11#cf289b372026-10-14
  • R24-11rel:R24-11#6f41fd292026-10-14
  • R25-11rel:R25-11#3a5225ab2026-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

función FromError [SWS_CORE_00834] Upstream: RS_AP_00130

static Result FromError (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value);

Build a new ara::core::Result from the specified error (given as lvalue)

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: faa781b78220 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

usar

La función estática FromError forma parte de la especialización de plantilla ara::core::Result<void, E> y se incluye a través del archivo de cabecera ara/core/result.h [SWS_CORE_00834]. Sirve como método factoría síncrono para construir un nuevo Result a partir de un objeto de error ya existente [SWS_CORE_00834].

  • Parámetro: El parámetro de entrada e recibe el error como referencia lvalue constante (const E &) [SWS_CORE_00834].
  • Valor de retorno: Devuelve una instancia de Result que contiene el error proporcionado e [SWS_CORE_00834].

Tratamiento de fallos y seguridad frente a excepciones

La especificación no define códigos de error específicos ni contempla notificaciones a DET o DEM [SWS_CORE_00834]. La función es condicionalmente segura frente a excepciones (conditionally exception safe): se garantiza exactamente como noexcept si el tipo de error E se puede copiar sin lanzar excepciones (std::is_nothrow_copy_constructible<E>::value) [SWS_CORE_00834].

concurrencia

La llamada está catalogada como thread-safe [SWS_CORE_00834]. Interpretación: es probable que la seguridad frente a hilos afecte al proceso interno de creación del objeto, pero presupone que otros hilos no modifiquen el objeto de origen referenciado e durante la operación de copia. Pregunta Q-639cbb5cf8a64a0c (abierta)

Interacción

Dentro de la especialización ara::core::Result<void, E>, sobrecargas para referencias rvalue (E&&) [SWS_CORE_00835], así como para la construcción in-situ mediante parameter pack [SWS_CORE_00836], complementan esta función; ambas están declaradas de manera divergente como not thread-safe. Además, existen sobrecargas correspondientes para el tipo incompletamente especializado ara::core::Result ([SWS_CORE_00734], [SWS_CORE_00735], [SWS_CORE_00736]) y especializaciones de referencia ([SWS_CORE_00905], [SWS_CORE_00906], [SWS_CORE_00907]).

Este texto fue elaborado por una IA. Las especificaciones de AUTOSAR son determinantes.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
ethe error to put into the ara::core::Result

Rückgabewert

TypBeschreibung
Resulta ara::core::Result that contains the error e

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

Record
AUTOSAR/AP/record/SWS_CORE_00834
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00834@rel:R25-11#70fc97d9
Content hash
70fc97d9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00834
Status: valid/unmigrated Version: rel:R25-11#3daf7e83 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_00834@rel:R25-11#3daf7e83
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2713965d2026-09-30
  • R19-11rel:R19-11#988752d82026-10-14
  • R20-11rel:R20-11#a2ee7dff2026-10-14
  • R21-11rel:R21-11#f962d2622026-10-14
  • R22-11rel:R22-11#144f1dcf2026-10-14
  • R23-11rel:R23-11#80f1e27d2026-10-14
  • R24-11rel:R24-11#b400d0032026-10-14
  • R25-11rel:R25-11#3daf7e832026-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

función FromError [SWS_CORE_00835] Upstream: RS_AP_00130

static Result FromError (E &&e) noexcept(std::is_nothrow_move_ constructible< E >::value);

Build a new ara::core::Result from the specified error (given as rvalue)

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 0aceeedf36f2 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

usar

La función estática FromError crea de forma síncrona una nueva instancia de ara::core::Result<void, E> a partir de un objeto de error pasado como rvalue e [SWS_CORE_00835]. La función está definida en la cabecera ara/core/result.h y devuelve un ara::core::Result que contiene el valor de error [SWS_CORE_00835].

Tratamiento de errores y concurrencia

La operación ofrece seguridad condicional frente a excepciones (conditionally exception safe): garantiza la ausencia de excepciones mediante noexcept, siempre que el tipo de error E disponga de un constructor de movimiento que no lance excepciones (std::is_nothrow_move_constructible<E>::value) [SWS_CORE_00835]. La función está clasificada como no segura frente a hilos (not thread-safe) [SWS_CORE_00835]. Interpretación: es probable que esto signifique que el objeto rvalue a mover debe protegerse frente a accesos paralelos desde otros hilos. Pregunta Q-be29e8c3a7412b7a (abierta)

Interacción

Dentro de la especialización ara::core::Result<void, E>, esta sobrecarga representa la contraparte por movimiento frente a la función de copia por lvalue [SWS_CORE_00834] y a la construcción in-situ mediante parameter packs [SWS_CORE_00836]. En el módulo core también existen sobrecargas por rvalue comparables para tipos por valor [SWS_CORE_00735] y referencias [SWS_CORE_00906], complementadas por las respectivas variantes por lvalue ([SWS_CORE_00734], [SWS_CORE_00905]) e in-situ ([SWS_CORE_00736], [SWS_CORE_00907]).

Este texto ha sido creado por una IA.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
ethe error to put into the ara::core::Result

Rückgabewert

TypBeschreibung
Resulta ara::core::Result that contains the error e

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

Record
AUTOSAR/AP/record/SWS_CORE_00835
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00835@rel:R25-11#b88626c9
Content hash
b88626c9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00835
Status: valid/unmigrated Version: rel:R25-11#145c5d21 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_00835@rel:R25-11#145c5d21
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#67ee0fc22026-09-30
  • R19-11rel:R19-11#764a522a2026-10-14
  • R20-11rel:R20-11#105b1f662026-10-14
  • R21-11rel:R21-11#105b1f662026-10-14
  • R22-11rel:R22-11#9e1a1db32026-10-14
  • R23-11rel:R23-11#018e31822026-10-14
  • R24-11rel:R24-11#355a98222026-10-14
  • R25-11rel:R25-11#145c5d212026-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

función FromError [SWS_CORE_00836] Upstream: RS_AP_00130

template <typename... Args> static Result FromError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value);

Build a new Result from an error that is constructed in-place from the given arguments. This function shall not participate in overload resolution unless: std::is_constructible<E, Args&&...>::value is true, and • the first type of the expanded parameter pack is not E, and • the first type of the expanded parameter pack is not a specialization of Result

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 8b596041d3f0 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función de plantilla estática FromError conforme a [SWS_CORE_00836] sirve para crear, dentro de la especialización ara::core::Result<void, E>, un objeto Result que contiene un error, cuya instancia de error del tipo E se construye directamente in-situ («in-place») a partir de los argumentos suministrados args. La función solo participa en la resolución de sobrecargas si std::is_constructible<E, Args&&...>::value es verdadero, el primer tipo del parameter pack desempaquetado no corresponde a E y tampoco es una especialización de Result [SWS_CORE_00836].

En cuanto a la seguridad frente a excepciones, la función está especificada como condicionalmente segura frente a excepciones («conditionally exception safe»): está declarada con noexcept(std::is_nothrow_constructible<E, Args...>::value) [SWS_CORE_00836]. En lo relativo a la concurrencia, la invocación se considera no segura frente a hilos («not thread-safe») [SWS_CORE_00836].

En interacción con otras funciones de la clase, este método complementa las sobrecargas para la creación a partir de objetos de error lvalue ([SWS_CORE_00834]) o rvalue ([SWS_CORE_00835]) ya existentes. Interpretación: es probable que las restricciones SFINAE respecto a E y Result aseguren que, al pasar errores o instancias de Result ya creados, se seleccionen preferentemente los respectivos operadores de copia o de movimiento y se eviten ambigüedades. Pregunta Q-2796f954bcaececa (abierta) Existen funciones factoría in-situ análogas para el tipo genérico Result ([SWS_CORE_00736]), así como para tipos de referencia en Result<T&, E> ([SWS_CORE_00907]).

Esta nota de uso fue generada por una IA sobre la base de la especificación AUTOSAR R25-11.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Template-Parameter

ParameterBeschreibung
Args...the types of arguments given to this function

Parameter (in)

ParameterBeschreibung
argsthe parameter pack used for constructing the error

Rückgabewert

TypBeschreibung
Resulta Result that contains an error

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

Record
AUTOSAR/AP/record/SWS_CORE_00836
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00836@rel:R25-11#8e96be31
Content hash
8e96be31
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00836
Status: valid/unmigrated Version: rel:R25-11#469f77ff 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_00836@rel:R25-11#469f77ff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#54c605942026-09-30
  • R19-11rel:R19-11#e8878fac2026-10-14
  • R20-11rel:R20-11#80c2b8ec2026-10-14
  • R21-11rel:R21-11#361c696d2026-10-14
  • R22-11rel:R22-11#57b6bd492026-10-14
  • R23-11rel:R23-11#99f912092026-10-14
  • R24-11rel:R24-11#dc85e51e2026-10-14
  • R25-11rel:R25-11#469f77ff2026-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

función FromValue [SWS_CORE_00831] Upstream: RS_AP_00130

static Result FromValue () noexcept;

Build a new Result with void as value

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: cadd61352253 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

usar

La función miembro estática FromValue() sirve para crear un objeto ara::core::Result exitoso para la especialización de plantilla ara::core::Result<void, E> [SWS_CORE_00831]. Dado que el tipo de resultado void no transporta datos útiles, la función no acepta parámetros de entrada. La llamada se realiza de forma síncrona y devuelve un Result que representa un valor void [SWS_CORE_00831]. La declaración se realiza en el encabezado ara/core/result.h [SWS_CORE_00831].

Tratamiento de errores y seguridad frente a excepciones

La función cuenta con la especificación noexcept y está clasificada como totalmente segura frente a excepciones (exception safe) [SWS_CORE_00831]. Dado que FromValue() representa por definición una operación exitosa, no genera estados de error ni devuelve códigos de error. No se han definido mensajes de error específicos a través de DET o DEM para esta llamada.

concurrencia

Según la especificación, la función está clasificada como segura para subprocesos (thread-safe) [SWS_CORE_00831]. Puede llamarse en paralelo desde múltiples subprocesos sin medidas de sincronización adicionales.

Interacción

La signatura sin parámetros está prevista exclusivamente para Result<void, E> [SWS_CORE_00831]. Se distingue de las sobrecargas generadoras de valor:

Esta nota de uso fue generada automáticamente a partir de la especificación de AUTOSAR.

Guía del implementador pendiente (complejidad I1)

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

Rückgabewert

TypBeschreibung
Resulta Result that contains a void value

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

Record
AUTOSAR/AP/record/SWS_CORE_00831
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00831@rel:R25-11#bc18268b
Content hash
bc18268b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00831
Status: valid/unmigrated Version: rel:R25-11#5cb92b73 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_00831@rel:R25-11#5cb92b73
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#689d2bfa2026-09-30
  • R19-11rel:R19-11#5a0410bc2026-10-14
  • R20-11rel:R20-11#723058f02026-10-14
  • R21-11rel:R21-11#723058f02026-10-14
  • R22-11rel:R22-11#e288be5e2026-10-14
  • R23-11rel:R23-11#da3844d72026-10-14
  • R24-11rel:R24-11#43b26bc52026-10-14
  • R25-11rel:R25-11#5cb92b732026-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

función HasValue [SWS_CORE_00851] Upstream: RS_AP_00130

bool HasValue () const noexcept;

Check whether *this contains a value.

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

Rückgabewert

TypBeschreibung
booltrue if *this contains a value, false otherwise

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

Record
AUTOSAR/AP/record/SWS_CORE_00851
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00851@rel:R25-11#b290b4fa
Content hash
b290b4fa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00851
Status: valid/unmigrated Version: rel:R25-11#3fbe93cd 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_00851@rel:R25-11#3fbe93cd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b31a90de2026-09-30
  • R19-11rel:R19-11#c3eea99c2026-10-14
  • R20-11rel:R20-11#0d72fc562026-10-14
  • R21-11rel:R21-11#d1f577762026-10-14
  • R22-11rel:R22-11#dfceca0a2026-10-14
  • R23-11rel:R23-11#c8bbd1082026-10-14
  • R24-11rel:R24-11#3fbe93cd2026-10-14
  • R25-11rel:R25-11#3fbe93cd2026-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

función Resolve [SWS_CORE_00867] Upstream: RS_AP_00130

template <typename F> void Resolve (F &&f) const;

Do nothing or call a function. If *this contains a value, this function does nothing. Otherwise, the specified callable is invoked. The Callable is expected to be compatible to this interface: void f(const E&); This function only exists for helping with generic programming.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: bddc80ca365a Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro Resolve de la clase de plantilla ara::core::Result<void, E> sirve para el tratamiento de errores en el marco de la programación genérica [SWS_CORE_00867]. Si la instancia de Result contiene un valor regular, la llamada no ejecuta ninguna operación [SWS_CORE_00867]. Si, en su lugar, la instancia contiene un error, se invoca el callable f pasado como parámetro [SWS_CORE_00867].

El callable f pasado debe ser compatible con la signatura de función void f(const E&), donde E representa el tipo de error [SWS_CORE_00867]. La propia función Resolve no devuelve ningún valor (void) [SWS_CORE_00867]. En cuanto a la seguridad de ejecución, la función está especificada como no segura frente a excepciones («not exception safe») [SWS_CORE_00867]. Su seguridad para subprocesos es condicional y depende directamente de la seguridad para subprocesos del callable f pasado [SWS_CORE_00867].

En el sistema global, esta especialización se distingue de las funciones Resolve regulares para tipos de valor en ara::core::Result<T, E> [SWS_CORE_00767], así como para tipos de referencia en ara::core::Result<T&, E> [SWS_CORE_00939], [SWS_CORE_00940]: mientras que aquellas variantes devuelven el valor contenido o el resultado de la llamada al callable, la sobrecarga void sin valor de retorno existe exclusivamente como componente genérico para la unificación de llamadas a interfaces [SWS_CORE_00867].

Esta nota de uso se ha generado de forma automatizada sobre la base de la especificación AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitnot exception safe
Thread-Sicherheitconditional, depends on thread safety of f

Template-Parameter

ParameterBeschreibung
Fthe type of the Callable f

Parameter (in)

ParameterBeschreibung
fthe Callable

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00867
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00867@rel:R25-11#174b4f12
Content hash
174b4f12
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00867
Status: valid/unmigrated Version: rel:R25-11#f761b703 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_00867@rel:R25-11#f761b703
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4dc104212026-09-30
  • R19-11rel:R19-11#f881257b2026-10-14
  • R20-11rel:R20-11#b5e6d3a02026-10-14
  • R21-11rel:R21-11#849753782026-10-14
  • R22-11rel:R22-11#3a188f872026-10-14
  • R23-11rel:R23-11#ffe34e102026-10-14
  • R24-11rel:R24-11#14ada29b2026-10-14
  • R25-11rel:R25-11#f761b7032026-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

función Result [SWS_CORE_00821] Upstream: RS_AP_00130

Result () noexcept;

Construct a new Result with a void value

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< 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_00821
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00821@rel:R25-11#71a14905
Content hash
71a14905
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00821
Status: valid/unmigrated Version: rel:R25-11#98c2292a 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_00821@rel:R25-11#98c2292a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8f90f5152026-09-30
  • R19-11rel:R19-11#f7225b752026-10-14
  • R20-11rel:R20-11#361176672026-10-14
  • R21-11rel:R21-11#6526f8642026-10-14
  • R22-11rel:R22-11#270117af2026-10-14
  • R23-11rel:R23-11#3ecdef242026-10-14
  • R24-11rel:R24-11#a88bc15b2026-10-14
  • R25-11rel:R25-11#98c2292a2026-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

función Result [SWS_CORE_00823] Upstream: RS_AP_00130

explicit Result (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value);

Construct a new ara::core::Result from the specified error (given as lvalue)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
ethe error to put into the ara::core::Result

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

Record
AUTOSAR/AP/record/SWS_CORE_00823
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00823@rel:R25-11#eae03602
Content hash
eae03602
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00823
Status: valid/unmigrated Version: rel:R25-11#520a2342 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_00823@rel:R25-11#520a2342
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7e409bbe2026-09-30
  • R19-11rel:R19-11#2c11f1a02026-10-14
  • R20-11rel:R20-11#b385f1852026-10-14
  • R21-11rel:R21-11#b385f1852026-10-14
  • R22-11rel:R22-11#964654b92026-10-14
  • R23-11rel:R23-11#41f3fe502026-10-14
  • R24-11rel:R24-11#c47ff58a2026-10-14
  • R25-11rel:R25-11#520a23422026-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

función Result [SWS_CORE_00824] Upstream: RS_AP_00130

explicit Result (E &&e) noexcept(std::is_nothrow_move_constructible< E >::value);

Construct a new ara::core::Result from the specified error (given as rvalue)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
ethe error to put into the ara::core::Result

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

Record
AUTOSAR/AP/record/SWS_CORE_00824
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00824@rel:R25-11#a2bed275
Content hash
a2bed275
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00824
Status: valid/unmigrated Version: rel:R25-11#a8739538 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_00824@rel:R25-11#a8739538
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#3dae56032026-09-30
  • R19-11rel:R19-11#b547aacc2026-10-14
  • R20-11rel:R20-11#587e8ca22026-10-14
  • R21-11rel:R21-11#ef34c2e22026-10-14
  • R22-11rel:R22-11#6fba39dd2026-10-14
  • R23-11rel:R23-11#ed7afc722026-10-14
  • R24-11rel:R24-11#a35944a82026-10-14
  • R25-11rel:R25-11#a87395382026-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

función Result [SWS_CORE_00825] Upstream: RS_AP_00130

Result (const Result &other) noexcept(std::is_nothrow_copy_ constructible< E >::value);

Copy-construct a new ara::core::Result from another instance

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-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_00825
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00825@rel:R25-11#455b20c8
Content hash
455b20c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00825
Status: valid/unmigrated Version: rel:R25-11#49078b0a 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_00825@rel:R25-11#49078b0a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2a88503c2026-09-30
  • R19-11rel:R19-11#9e2629602026-10-14
  • R20-11rel:R20-11#c7e3d2b52026-10-14
  • R21-11rel:R21-11#c7e3d2b52026-10-14
  • R22-11rel:R22-11#2141ea872026-10-14
  • R23-11rel:R23-11#984e76b52026-10-14
  • R24-11rel:R24-11#01d7557e2026-10-14
  • R25-11rel:R25-11#49078b0a2026-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

función Result [SWS_CORE_00826] Upstream: RS_AP_00130

Result (Result &&other) noexcept(std::is_nothrow_move_constructible< E >::value);

Move-construct a new Result from another instance

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception 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_00826
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00826@rel:R25-11#4e433c91
Content hash
4e433c91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00826
Status: valid/unmigrated Version: rel:R25-11#884cd9f5 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_00826@rel:R25-11#884cd9f5
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#54a41baf2026-09-30
  • R19-11rel:R19-11#a66ea3dc2026-10-14
  • R20-11rel:R20-11#3f38aa642026-10-14
  • R21-11rel:R21-11#256f91a42026-10-14
  • R22-11rel:R22-11#beedc4732026-10-14
  • R23-11rel:R23-11#192a01fe2026-10-14
  • R24-11rel:R24-11#019dfd3e2026-10-14
  • R25-11rel:R25-11#884cd9f52026-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

función Swap [SWS_CORE_00845] Upstream: RS_AP_00130

void Swap (Result &other) noexcept(std::is_nothrow_move_constructible< E >::value &&std::is_nothrow_move_assignable< E >::value);

Exchange the contents of this instance with those of other

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 6d275c051250 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro Swap intercambia el contenido de la instancia actual de forma síncrona con la referencia pasada other [SWS_CORE_00845]. Pertenece al ámbito de la especialización ara::core::Result<void, E> del archivo de encabezado ara/core/result.h y no posee valor de retorno [SWS_CORE_00845].

En cuanto al tratamiento de errores, la operación está clasificada como condicionalmente segura frente a excepciones (conditionally exception safe) [SWS_CORE_00845]. La garantía noexcept se aplica exactamente cuando el tipo de error E es tanto construible por movimiento sin excepciones (std::is_nothrow_move_constructible<E>::value) como asignable por movimiento sin excepciones (std::is_nothrow_move_assignable<E>::value) [SWS_CORE_00845]. No están previstos códigos de error específicos ni notificaciones a DET o DEM para esta llamada [SWS_CORE_00845].

Respecto a la concurrencia, Swap está especificada expresamente como no segura para subprocesos (not thread-safe) [SWS_CORE_00845]. Por lo tanto, es probable que el acceso concurrente a las mismas instancias sin sincronización externa dé lugar a condiciones de carrera de datos. Pregunta Q-a8d4f130648765df (abierta)

En la interacción dentro de ara::core, el método constituye la base para la función de plantilla libre ara::core::swap, cuya condición noexcept está vinculada directamente a la función miembro [SWS_CORE_00796]. Existen operaciones de intercambio comparables para el tipo genérico ara::core::Result<T, E> [SWS_CORE_00745], la especialización de referencia ara::core::Result<T&, E> [SWS_CORE_00917], así como para objetos Promise [SWS_CORE_00352] [SWS_CORE_06352].

Este texto ha sido generado por una IA a partir de la especificación de AUTOSAR.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception 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_00845
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00845@rel:R25-11#76899119
Content hash
76899119
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00845
Status: valid/unmigrated Version: rel:R25-11#1c4f5e03 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_00845@rel:R25-11#1c4f5e03
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0474393e2026-09-30
  • R19-11rel:R19-11#b5afc4f72026-10-14
  • R20-11rel:R20-11#71c2bf362026-10-14
  • R21-11rel:R21-11#71c2bf362026-10-14
  • R22-11rel:R22-11#5de901772026-10-14
  • R23-11rel:R23-11#dd6258592026-10-14
  • R24-11rel:R24-11#80da0ae72026-10-14
  • R25-11rel:R25-11#1c4f5e032026-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

función Value [SWS_CORE_00855] Upstream: RS_AP_00130

void Value () const noexcept;

This function only exists for helping with generic programming

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ResultWithNoValue- If *this does not contain a value Violation

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00855
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00855@rel:R25-11#0b99f22a
Content hash
0b99f22a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00855
Status: valid/unmigrated Version: rel:R25-11#672ec24a 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_00855@rel:R25-11#672ec24a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4c2667a52026-09-30
  • R19-11rel:R19-11#7dbbbf242026-10-14
  • R20-11rel:R20-11#8431fc372026-10-14
  • R21-11rel:R21-11#8431fc372026-10-14
  • R22-11rel:R22-11#9c8d89402026-10-14
  • R23-11rel:R23-11#41c02b182026-10-14
  • R24-11rel:R24-11#a44cc9b82026-10-14
  • R25-11rel:R25-11#672ec24a2026-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

función ValueOr [SWS_CORE_00861] Upstream: RS_AP_00130

template <typename U> void ValueOr (U &&defaultValue) const noexcept;

Do nothing. This function only exists for helping with generic programming.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 1e7317f7509a Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro ValueOr de la especialización ara::core::Result<void, E> sirve primordialmente para facilitar patrones de programación genérica y no realiza ninguna operación al ejecutarse ([SWS_CORE_00861]). Proporcionado mediante el encabezado ara/core/result.h, el método acepta de forma síncrona un parámetro defaultValue del tipo de reenvío U&& y no devuelve ningún valor (void) ([SWS_CORE_00861]).

En cuanto a la concurrencia y el comportamiento ante excepciones, la función miembro está especificada como segura para subprocesos (thread-safe) y declarada con la sintaxis del especificador noexcept, lo que garantiza una seguridad total frente a excepciones ([SWS_CORE_00861]). Dado que no se realiza ninguna comprobación del estado de error ni ninguna acción, no existen ni códigos de error ni avisos a DET o DEM.

En interacción con las demás variantes de Result, esta función complementa las sobrecargas basadas en valores ([SWS_CORE_00761], [SWS_CORE_00762]) y basadas en referencias ([SWS_CORE_00933], [SWS_CORE_00934]) de ValueOr. Mientras que aquellas funciones devuelven el valor establecido si está presente o, de lo contrario, entregan el valor de sustitución pasado convertido, esta variante representa una contrapartida neutra para operaciones sin retorno de valor ([SWS_CORE_00861]). Interpretación: es probable que el valor pasado defaultValue se descarte sin usar en la implementación. Pregunta Q-6097af779219e859 (abierta) Esto permite a los desarrolladores escribir algoritmos de plantilla genéricos sin ramificaciones especiales para Result<void, E>.

Este texto ha sido creado por una IA.

Guía del implementador pendiente (complejidad I1)

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

Template-Parameter

ParameterBeschreibung
Uthe type of defaultValue

Parameter (in)

ParameterBeschreibung
defaultValuethe value to use if *this does not contain a value

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00861
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00861@rel:R25-11#eaf990fe
Content hash
eaf990fe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00861
Status: valid/unmigrated Version: rel:R25-11#b2e122de 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_00861@rel:R25-11#b2e122de
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#74deb1e42026-09-30
  • R19-11rel:R19-11#fbb02ae32026-10-14
  • R20-11rel:R20-11#da14f35c2026-10-14
  • R21-11rel:R21-11#f436d8732026-10-14
  • R22-11rel:R22-11#88784c622026-10-14
  • R23-11rel:R23-11#b4651d592026-10-14
  • R24-11rel:R24-11#b2e122de2026-10-14
  • R25-11rel:R25-11#b2e122de2026-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

función ValueOrThrow [SWS_CORE_00866] Upstream: RS_AP_00130

void ValueOrThrow () const noexcept(false);

Return the contained value or throw an exception.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 8e615ce72e75 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro ValueOrThrow de la especialización de plantilla ara::core::Result<void, E> sirve para la comprobación síncrona del resultado de la operación [SWS_CORE_00866]. Dado que el tipo de valor es void, la función no posee parámetros y no devuelve ningún valor [SWS_CORE_00866]. La declaración se proporciona a través de la cabecera ara/core/result.h [SWS_CORE_00866].

En caso de éxito, el método retorna normalmente; si, por el contrario, existe un estado de error, lanza una excepción del tipo de excepción vinculado al error contenido (noexcept(false)) [SWS_CORE_00866]. En lo relativo a la seguridad ante excepciones, la operación está especificada como not exception safe [SWS_CORE_00866].

Para el contexto de llamada y la concurrencia se aplican las siguientes condiciones límite:

  • La función está clasificada como thread-safe [SWS_CORE_00866].
  • Si las excepciones de C++ están desactivadas en la cadena de herramientas del compilador, esta función no participa en la resolución de sobrecargas [SWS_CORE_00866].

En interacción con el módulo core, esta especialización void complementa las sobrecargas genéricas de ara::core::Result<T, E> que devuelven referencias a valores contenidos ([SWS_CORE_00766], [SWS_CORE_00769], [SWS_CORE_00778]), así como las especializaciones para tipos de referencia ara::core::Result<T&, E> ([SWS_CORE_00938], [SWS_CORE_00949]).

Este texto ha sido generado por una IA y se basa exclusivamente en los datos de especificación de AUTOSAR R25-11.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
None

Exceptions

The exception type associated with the contained error

Hinweise: This function shall not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain

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

Record
AUTOSAR/AP/record/SWS_CORE_00866
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00866@rel:R25-11#95af728b
Content hash
95af728b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00866
Status: valid/unmigrated Version: rel:R25-11#02430c8c 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_00866@rel:R25-11#02430c8c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b509b5f62026-09-30
  • R19-11rel:R19-11#2b3715602026-10-14
  • R20-11rel:R20-11#015d6e892026-10-14
  • R21-11rel:R21-11#015d6e892026-10-14
  • R22-11rel:R22-11#3a3be3ac2026-10-14
  • R23-11rel:R23-11#1c0991192026-10-14
  • R24-11rel:R24-11#a22c0e742026-10-14
  • R25-11rel:R25-11#02430c8c2026-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

función operator bool [SWS_CORE_00852] Upstream: RS_AP_00130

explicit operator bool () const noexcept;

Check whether *this contains a value

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

Rückgabewert

TypBeschreibung
booltrue if *this contains a value, false otherwise

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

Record
AUTOSAR/AP/record/SWS_CORE_00852
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00852@rel:R25-11#f9120179
Content hash
f9120179
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00852
Status: valid/unmigrated Version: rel:R25-11#308b54bc 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_00852@rel:R25-11#308b54bc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#20945fcd2026-09-30
  • R19-11rel:R19-11#94ca04482026-10-14
  • R20-11rel:R20-11#15f004bc2026-10-14
  • R21-11rel:R21-11#4bc654032026-10-14
  • R22-11rel:R22-11#dceddefe2026-10-14
  • R23-11rel:R23-11#1bf0f6eb2026-10-14
  • R24-11rel:R24-11#e07d70b42026-10-14
  • R25-11rel:R25-11#308b54bc2026-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

función operator* [SWS_CORE_00853] Upstream: RS_AP_00130

void operator* () const noexcept;

Access the contained value.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ResultWithNoValue- If *this does not contain a value. Violation

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00853
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00853@rel:R25-11#d4df58a2
Content hash
d4df58a2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00853
Status: valid/unmigrated Version: rel:R25-11#570827f3 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_00853@rel:R25-11#570827f3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0bbf5d3b2026-09-30
  • R19-11rel:R19-11#f9dde3982026-10-14
  • R20-11rel:R20-11#1f3399df2026-10-14
  • R21-11rel:R21-11#1f3399df2026-10-14
  • R22-11rel:R22-11#6b2cf1872026-10-14
  • R23-11rel:R23-11#acae00652026-10-14
  • R24-11rel:R24-11#570827f32026-10-14
  • R25-11rel:R25-11#570827f32026-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

función operator= [SWS_CORE_00841] Upstream: RS_AP_00130

Result & operator= (const Result &other) noexcept(std::is_nothrow_ copy_constructible< E >::value &&std::is_nothrow_copy_assignable< E >::value);

Copy-assign another ara::core::Result to this instance

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Result &*this, containing the contents of other

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

Record
AUTOSAR/AP/record/SWS_CORE_00841
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00841@rel:R25-11#1a9a9d6a
Content hash
1a9a9d6a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00841
Status: valid/unmigrated Version: rel:R25-11#4cd1fad8 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_00841@rel:R25-11#4cd1fad8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6d1166182026-09-30
  • R19-11rel:R19-11#20dff6262026-10-14
  • R20-11rel:R20-11#c03d77e62026-10-14
  • R21-11rel:R21-11#38acfa3b2026-10-14
  • R22-11rel:R22-11#e977e11e2026-10-14
  • R23-11rel:R23-11#495ec7c02026-10-14
  • R24-11rel:R24-11#2d78586d2026-10-14
  • R25-11rel:R25-11#4cd1fad82026-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

función operator= [SWS_CORE_00842] Upstream: RS_AP_00130

Result & operator= (Result &&other) noexcept(std::is_nothrow_move_ constructible< E >::value &&std::is_nothrow_move_assignable< E >::value);

Move-assign another ara::core::Result to this instance

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Result &*this, containing the contents ofother

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

Record
AUTOSAR/AP/record/SWS_CORE_00842
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00842@rel:R25-11#c5c1d2d4
Content hash
c5c1d2d4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00842
Status: valid/unmigrated Version: rel:R25-11#7b894013 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_00842@rel:R25-11#7b894013
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1757cb292026-09-30
  • R19-11rel:R19-11#b5fa5dc82026-10-14
  • R20-11rel:R20-11#215e92592026-10-14
  • R21-11rel:R21-11#215e92592026-10-14
  • R22-11rel:R22-11#385162782026-10-14
  • R23-11rel:R23-11#b1034a412026-10-14
  • R24-11rel:R24-11#035424de2026-10-14
  • R25-11rel:R25-11#7b8940132026-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

función ~Result [SWS_CORE_00827] Upstream: RS_AP_00130

~Result () noexcept;

Destructor This destructor is trivial if std::is_trivially_destructible<E>::value is true

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< 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_00827
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00827@rel:R25-11#157c5aae
Content hash
157c5aae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00827
Status: valid/unmigrated Version: rel:R25-11#7779bc25 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_00827@rel:R25-11#7779bc25
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ada359e32026-09-30
  • R19-11rel:R19-11#bcc401122026-10-14
  • R20-11rel:R20-11#38c9347c2026-10-14
  • R21-11rel:R21-11#27ebdb022026-10-14
  • R22-11rel:R22-11#04a4095e2026-10-14
  • R23-11rel:R23-11#f7addf512026-10-14
  • R24-11rel:R24-11#da8ad7bd2026-10-14
  • R25-11rel:R25-11#7779bc252026-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

función CheckError [SWS_CORE_00865] Upstream: RS_AP_00130

template <typename G> bool CheckError (G &&error) const noexcept;

Return whether this instance contains the given error. This call compares the argument error, static_cast’d to E, with the return value from Error()

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 67f5fc13d797 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro de plantilla CheckError de la especialización ara::core::Result<void, E> comprueba de forma síncrona si la instancia actual contiene un error determinado [SWS_CORE_00865]. Para ello, el argumento pasado error se convierte mediante static_cast al tipo de error E y se compara con el valor de retorno del estado de error interno Error() [SWS_CORE_00865]. La llamada se realiza a través del encabezado #include "ara/core/result.h" [SWS_CORE_00865].

Para el uso y el contexto de invocación se aplican las siguientes propiedades:

  • Parámetro y valor de retorno: el parámetro de referencia universal error de tipo G&& recibe el error que se va a comprobar [SWS_CORE_00865]. La función devuelve true si la instancia contiene un error equivalente a error; de lo contrario, false [SWS_CORE_00865].
  • Concurrencia y seguridad frente a excepciones: la operación está declarada como const noexcept, se considera segura frente a excepciones (exception safe) y puede invocarse sin restricciones de forma segura para subprocesos (thread-safe) [SWS_CORE_00865].

En interacción con el módulo core existen sobrecargas análogas de CheckError: la clase de plantilla primaria ara::core::Result proporciona la misma signatura asimismo de forma segura para subprocesos y frente a excepciones con noexcept [SWS_CORE_00765]. Por el contrario, la especialización de referencia ara::core::Result<T&, E>, si bien cuenta con el mismo mecanismo de comparación y es segura para subprocesos, está especificada explícitamente sin noexcept como no segura frente a excepciones (not exception safe) [SWS_CORE_00937].

Esta nota de uso se ha generado automáticamente a partir de las prescripciones de la especificación.

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

Template-Parameter

ParameterBeschreibung
Gthe type of the error argument error

Parameter (in)

ParameterBeschreibung
errorthe error to check

Rückgabewert

TypBeschreibung
booltrue if *this contains an error that is equivalent to the given error, false otherwise

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

Record
AUTOSAR/AP/record/SWS_CORE_00865
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00865@rel:R25-11#77d621b2
Content hash
77d621b2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00865
Status: valid/unmigrated Version: rel:R25-11#0cc61151 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_00865@rel:R25-11#0cc61151
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#629602bb2026-09-30
  • R19-11rel:R19-11#caaed37b2026-10-14
  • R20-11rel:R20-11#c831c1642026-10-14
  • R21-11rel:R21-11#38bde79d2026-10-14
  • R22-11rel:R22-11#d5b8d12d2026-10-14
  • R23-11rel:R23-11#772c40092026-10-14
  • R24-11rel:R24-11#a6e6635b2026-10-14
  • R25-11rel:R25-11#0cc611512026-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

Documentación de los alias de tipo

alias de tipo error_type [SWS_CORE_00812] Upstream: RS_AP_00130

using error_type = E;

Type alias for the type E of errors

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Symbolerror_type

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

Record
AUTOSAR/AP/record/SWS_CORE_00812
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00812@rel:R25-11#288c8d43
Content hash
288c8d43
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00812
Status: valid/unmigrated Version: rel:R25-11#1fba764b 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_00812@rel:R25-11#1fba764b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#32aa6a1c2026-09-30
  • R19-11rel:R19-11#344c236b2026-10-14
  • R20-11rel:R20-11#d7c47e392026-10-14
  • R21-11rel:R21-11#d7c47e392026-10-14
  • R22-11rel:R22-11#896231bd2026-10-14
  • R23-11rel:R23-11#8c3b22132026-10-14
  • R24-11rel:R24-11#8c3b22132026-10-14
  • R25-11rel:R25-11#1fba764b2026-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

alias de tipo value_type [SWS_CORE_00811] Upstream: RS_AP_00130

using value_type = void;

Type alias for the type T of values, always void for this specialization

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< void, E >
Symbolvalue_type

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

Record
AUTOSAR/AP/record/SWS_CORE_00811
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00811@rel:R25-11#e88bf8b1
Content hash
e88bf8b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00811
Status: valid/unmigrated Version: rel:R25-11#b5a93a85 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_00811@rel:R25-11#b5a93a85
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#881c160a2026-09-30
  • R19-11rel:R19-11#f4870d0d2026-10-14
  • R20-11rel:R20-11#84ab65ba2026-10-14
  • R21-11rel:R21-11#618d46342026-10-14
  • R22-11rel:R22-11#27f9f9602026-10-14
  • R23-11rel:R23-11#19a6434e2026-10-14
  • R24-11rel:R24-11#19a6434e2026-10-14
  • R25-11rel:R25-11#b5a93a852026-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