DEENESPTFRRUARHIKOZHNL

class 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

User GuideAI-GENERATED

Signals the successful completion of a valueless operation or carries an encountered error code.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8bbf74b21d56 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Signals the successful completion of a valueless operation or carries an encountered error code.

The class ara::core::Result<void, E> specializes the Result pattern for operations without a return value and represents either successful completion or an error ([SWS_CORE_00811]). After execution, the caller checks the success status via HasValue() ([SWS_CORE_00851]) or operator bool() and, in the event of an error, accesses the contained cause of the error. As a mandatory constraint, the error type E must correspond to type ara::core::ErrorCode, as differing types are rejected as early as compile time.

Context

The template class ara::core::Result<void, E> represents a partial specialization of the Result pattern for operations that do not return a value (void) in the success case, but exclusively signal the success or failure of an action. According to the type definition, the value type value_type is always fixed as void ([SWS_CORE_00811]), while error_type represents the parameterized error type E ([SWS_CORE_00812]). For the type E, the functional requirement applies that any deviation from ara::core::ErrorCode must be rejected by the implementation as a compile error.

In the AUTOSAR Adaptive Platform, ara::core::Result<void, E> functions as the standardized return type for fallible procedures and control commands between calling components and executing interfaces. Instead of classic C++ exception handling, the class provides resource-efficient, explicit error propagation that enables both direct state inspection and functional forwarding along the call path.

Lifecycle

An instance of ara::core::Result<void, E> is in exactly one of two discrete states throughout its entire lifetime: the value state (success) or the error state. Initialization with a void value takes place via the default constructor Result() ([SWS_CORE_00821]) or the static factory method FromValue() ([SWS_CORE_00831]). For creation in the error state, explicit constructors for lvalues and rvalues of the error type E are available ([SWS_CORE_00823], [SWS_CORE_00824]). In addition, the factory functions FromError() enable construction from error lvalues ([SWS_CORE_00834]), rvalues ([SWS_CORE_00835]), or via direct in-place construction from parameter packs ([SWS_CORE_00836]).

Already existing instances can subsequently be transitioned into the value state via EmplaceValue() ([SWS_CORE_00843]) or directly populated with a new error via EmplaceError() ([SWS_CORE_00844]). Copy and move constructors ([SWS_CORE_00825], [SWS_CORE_00826]) as well as corresponding assignment operators ([SWS_CORE_00841], [SWS_CORE_00842]) transfer the state between instances; Swap() swaps the contents of two objects ([SWS_CORE_00845]).

The destructor ~Result() terminates the lifecycle ([SWS_CORE_00827]) and is trivial if std::is_trivially_destructible<E>::value holds. With regard to concurrency, pure read operations are thread-safe, whereas state-modifying operations such as EmplaceValue(), EmplaceError(), assignments, or Swap() are not 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()

State diagram: Lifecycle and state transitions between value and error states. Sources: [SWS_CORE_00821], [SWS_CORE_00831], [SWS_CORE_00823], [SWS_CORE_00834], [SWS_CORE_00843], [SWS_CORE_00844]

Usage Path

The regular flow begins with receiving a ara::core::Result<void, E> instance from a function call. The caller evaluates the result via HasValue() ([SWS_CORE_00851]) or the conversion operator bool() ([SWS_CORE_00852]). Upon successful execution, a subsequent operation can be chained functionally via Bind() ([SWS_CORE_00870]): Bind() executes the passed callable only if the instance contains a value, and returns its transformed result. If an error is present instead, the called function is bypassed and the error content is adopted into the new result.

For uniformity in generic code, the specialization provides interfaces that formally match the general Result class: Value() ([SWS_CORE_00855]), operator*() ([SWS_CORE_00853]), and ValueOr() ([SWS_CORE_00861]) do not return a value and act as no-op methods. Analogously, Resolve() ([SWS_CORE_00867]) executes a passed callable only if an error is present, and remains inactive in the success case.

Typical usage path for operation checking and further processingCallerDienstResult<void, E>Execute()FromValue() / FromError()Result<void, E>HasValue()boolaltHasValue() == true (Erfolg)Bind(f)HasValue() == false (Fehler)Error() / Err()Fehlerwert E / Optional<E>

Sequence diagram: Typical sequence of invocation, status check, and error handling or chaining. Sources: [SWS_CORE_00851], [SWS_CORE_00857], [SWS_CORE_00868], [SWS_CORE_00870]

Error Scenarios

If the instance is in the error state, the contained error can be queried as a reference via the overloads of Error() ([SWS_CORE_00857], [SWS_CORE_00858], [SWS_CORE_00876]). In this case, a strict precondition applies: calling Error() on an instance that contains no error constitutes a ResultWithNoErrorViolation. Conversely, calling Value() ([SWS_CORE_00855]) or operator*() ([SWS_CORE_00853]) on an instance in the error state triggers a ResultWithNoValueViolation.

To avoid precondition violations, alternative query methods are available: Err() returns the error wrapped in an ara::core::Optional<E>, which remains empty in the success case ([SWS_CORE_00868], [SWS_CORE_00869]). With ErrorOr(), a default error can be specified that is returned if no error is contained ([SWS_CORE_00863], [SWS_CORE_00864]). For checks against specific error values, CheckError() compares the internal error with a comparison value ([SWS_CORE_00865]).

If exception-based error handling is preferred, ValueOrThrow() ([SWS_CORE_00866]) throws the exception associated with the error in the error case; when a value is present, the call returns normally. If C++ exceptions are disabled in the toolchain, ValueOrThrow() does not participate in overload resolution ([SWS_CORE_00866]).

This guide is based on the ara::core::Result<void, E> specification in Release R25-11 and was generated automatically.

Member map

Class diagram

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

Detail view

Select an entry in the outline.

Constructors and destructor

Result function 5

Construct a new Result with a void value

Overloads 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 function

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

~Result () noexcept;

Methods

Bind function

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 function

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 function

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 function

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

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

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

Overloads 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 function 3

Access the contained error.

Overloads Error 3
const E & Error () const & noexcept; SWS_CORE_00857
E && Error () &&noexcept; SWS_CORE_00858
E & Error () & noexcept; SWS_CORE_00876
ErrorOr function 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

Overloads 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 function 3

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

Overloads 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 function

Build a new Result with void as value

static Result FromValue () noexcept;
HasValue function

Check whether *this contains a value.

bool HasValue () const noexcept;
Resolve function

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 function

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 function

This function only exists for helping with generic programming

void Value () const noexcept;
ValueOr function

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

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

Return the contained value or throw an exception.

void ValueOrThrow () const noexcept(false);

Operators

operator bool function

Check whether *this contains a value

explicit operator bool () const noexcept;
operator* function

Access the contained value.

void operator* () const noexcept;
operator= function 2

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

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

Type aliases

error_type type alias

Type alias for the type E of errors

using error_type = E;
value_type type alias

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

using value_type = void;

Method documentation

function 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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c3e549b2f1ca Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Call Context

The member function Bind of specialization ara::core::Result<void, E> from ara/core/result.h performs a follow-up computation on a successful instance without a result value [SWS_CORE_00870]. If a value is present, the passed callable f is called synchronously and without parameters. The callable must satisfy either interface Result<XXX, E> f() or XXX f(), where XXX must be an admissible type for Result [SWS_CORE_00870]. If the callable yields a Result, the return type corresponds to decltype(f()); if it returns XXX directly, the result is wrapped as Result<decltype(f()), E> [SWS_CORE_00870].

Error Handling and Concurrency

If the instance contains no value, a new Result<XXX, E> is returned into which the original error is copied [SWS_CORE_00870]. Interpretation: In this case, execution of the callable f is likely omitted. Question Q-6288a7106d2730c3 (open) With respect to execution safety, the function is considered not exception safe [SWS_CORE_00870]. Thread safety is conditional (conditional) and depends entirely on the thread safety of the passed callable f [SWS_CORE_00870].

Interaction with Related Requirements

In contrast to the primary Result<T, E> functions from [SWS_CORE_00768] and [SWS_CORE_00941], in which the callable accepts the value of the instance via f(const T&), the present overload [SWS_CORE_00870] binds operations to void results and therefore expects a parameterless callable.

This usage note was generated automatically based on the AUTOSAR specification status 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#609a669f
Content hash
609a669f
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

function 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.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 95d51174d109 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function EmplaceError of specialization ara::core::Result<void, E> synchronously constructs a new error value directly in-place within the existing instance from the passed arguments args [SWS_CORE_00844]. The template function provided via header file ara/core/result.h has no return value and initializes the error object of type E directly in place [SWS_CORE_00844].

With respect to error handling and exception safety, the operation is classified as conditionally exception-safe (conditionally exception safe) [SWS_CORE_00844]. Exception freedom is guaranteed via the specifier noexcept(std::is_nothrow_constructible<E, Args...>::value), provided that type E can be constructed with types Args... without an exception [SWS_CORE_00844].

With respect to concurrency and constraints, the member function is defined as not thread-safe (not thread-safe) [SWS_CORE_00844]. If multiple threads access the same Result instance concurrently, an external synchronization mechanism is presumably required to prevent uncoordinated state changes. Question Q-ffcb8ced860f6080 (open)

In the overall context of module core, [SWS_CORE_00844] directly corresponds to the other variants of the same function: For the primary template ara::core::Result, the identical behavior is specified under [SWS_CORE_00744], whereas for reference types ara::core::Result<T&, E>, requirement [SWS_CORE_00916] specifies the same signature and semantics.

This usage note was generated by an AI based on the AUTOSAR R25-11 specification.

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#bf2f5b96
Content hash
bf2f5b96
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

function 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.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 615b498206aa Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Call Context

The template member function EmplaceValue belongs to module core and is defined via header file #include "ara/core/result.h" for the specialization ara::core::Result<void, E> [SWS_CORE_00843]. Its purpose is to directly create or set a new value in the existing instance based on the passed arguments args [SWS_CORE_00843]. Execution is synchronous and yields no return value (void) [SWS_CORE_00843]. Since the value type of the specialization is void, the call transitions the instance into a success state; as an interpretation, accepting args is likely primarily intended for generic signature compatibility with the primary template class. Question Q-b53ca5908f2517fb (open)

Error Handling and Exception Safety

The function is declared as noexcept and has the specification exception safe [SWS_CORE_00843]. It returns no error codes and throws no exceptions. If the Result object was previously in an error state, this is overwritten by setting the value.

Concurrency and Limitations

The operation is designated as not thread-safe (not thread-safe) [SWS_CORE_00843]. In the case of potentially concurrent read or write accesses to the same instance of ara::core::Result, external synchronization by the caller is mandatory.

Interaction with related specifications

In comparison to the general implementation of EmplaceValue for ara::core::Result<T, E> in [SWS_CORE_00743], which is only conditionally exception-safe and whose noexcept property depends on std::is_nothrow_constructible<T, Args...>::value, the void specialization according to [SWS_CORE_00843] offers an unrestricted noexcept and exception-safety guarantee.

This usage note was generated automatically based on the AUTOSAR specification for 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#129ba057
Content hash
129ba057
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

function 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.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c47cf49ad139 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function Err() const & of class specialization ara::core::Result<void, E> allows synchronously querying a potentially contained error state ([SWS_CORE_00868]). It is declared via header file ara/core/result.h and requires no parameters when called ([SWS_CORE_00868]). As return value, the function provides an ara::core::Optional<E> containing the concrete error value if the object represents an error ([SWS_CORE_00868]).

Regarding concurrency and constraints, the operation is explicitly specified as thread-safe ([SWS_CORE_00868]). Regarding exception safety, the method is considered conditionally exception safe (conditionally exception safe) ([SWS_CORE_00868]). The noexcept guarantee holds if and only if std::is_nothrow_constructible<Optional<E>, const E&>::value is satisfied ([SWS_CORE_00868]).

In the set of interfaces, the rvalue overload Err() && ([SWS_CORE_00869]) complements this function within ara::core::Result<void, E>. Comparable pairs of lvalue and rvalue overloads are also available for the primary template ara::core::Result<T, E> ([SWS_CORE_00772], [SWS_CORE_00773]) and for the reference specialization ara::core::Result<T&, E> ([SWS_CORE_00931], [SWS_CORE_00932]).

This text was generated by an AI based on the AUTOSAR specification.

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#14457003
Content hash
14457003
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

function 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.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5bc8fa1204ae Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function Err() && of specialization ara::core::Result< void, E > extracts an error, if present, and returns it as ara::core::Optional< E > [SWS_CORE_00869]. It is included via header file ara/core/result.h [SWS_CORE_00869].

Regarding usage and semantics, the following properties apply:

  • Call context and parameters: The function takes no parameters and, as an rvalue-qualified method, binds exclusively to rvalue instances of ara::core::Result< void, E > [SWS_CORE_00869]. Interpretation: Due to rvalue semantics (&&), the error object is presumably moved into the returned Optional upon invocation. Question Q-b5a0098f77686ca6 (open)
  • Return value: The resulting ara::core::Optional< E > contains the error value if such a value is present in the object [SWS_CORE_00869].
  • Exception safety and concurrency: The operation is classified as conditionally exception safe (conditionally exception safe) and throws no exceptions if std::is_nothrow_constructible< Optional< E >, E && >::value is satisfied [SWS_CORE_00869]. Additionally, the function is specified as thread-safe (thread-safe) [SWS_CORE_00869].

In interaction among the interfaces, this rvalue variant complements the corresponding lvalue overload Err() const & of the same specialization [SWS_CORE_00868]. Analogous pairs of lvalue and rvalue methods exist for the primary template ara::core::Result [SWS_CORE_00772], [SWS_CORE_00773] as well as for the reference specialization ara::core::Result< T &, E > [SWS_CORE_00931], [SWS_CORE_00932].

This text was created by an AI and is based on the specification status of 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#1a48a870
Content hash
1a48a870
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

function 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#0eaf7ea5
Content hash
0eaf7ea5
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

function 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#45034528
Content hash
45034528
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

function 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#5dfbc7c5
Content hash
5dfbc7c5
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

function 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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 478ce836109b Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template member function ErrorOr of specialization ara::core::Result<void, E> serves to synchronously retrieve the contained error or an alternative default error according to [SWS_CORE_00863]. If the instance already contains an error value of type E, it is returned unchanged; otherwise, the passed parameter defaultError is converted into the error type E via static_cast and returned [SWS_CORE_00863].

Regarding error handling and concurrency, the following properties apply:

  • Exception safety: The call is conditionally exception safe (conditionally exception safe) and declared as noexcept, provided that both the copy construction of E and the construction of E from the universal reference type G&& are non-throwing (std::is_nothrow_copy_constructible<E>::value && std::is_nothrow_constructible<E, G&&>::value) [SWS_CORE_00863].
  • Thread safety: The operation is specified as thread-safe (thread-safe) [SWS_CORE_00863]. Since it is a const lvalue reference overload (const &), concurrent read accesses to the same instance should presumably be safe. Question Q-f95402c2e79ef590 (open)
  • Header: The function is provided via header file #include "ara/core/result.h" [SWS_CORE_00863].

In interaction within ara::core::Result, [SWS_CORE_00863] constitutes the const lvalue counterpart to the rvalue overload [SWS_CORE_00864] for void results, in which the error is transferred via std::move. Equivalent overloads exist for the primary class template Result<T, E> via [SWS_CORE_00763] and [SWS_CORE_00764], as well as for reference types Result<T &, E> via [SWS_CORE_00935] and [SWS_CORE_00936].

This text was generated by an AI based on the AUTOSAR R25-11 specification.

Implementer's Guide to follow (complexity 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#c418147a
Content hash
c418147a
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

function 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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 4d76cf06b254 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function ErrorOr of specialization ara::core::Result<void, E> serves to synchronously read an error from an rvalue instance ([SWS_CORE_00864]). When the method is called and the Result object contains an error, it is moved into the return value of type E via std::move. If, on the other hand, a successful result is present, the passed argument defaultError is converted to E via static_cast and returned ([SWS_CORE_00864]).

Error Handling and Exception Safety

The function itself does not trigger classic AUTOSAR error reports like DET or DEM. Regarding exception handling, ErrorOr is conditionally exception safe (conditionally exception safe). It is guarded by a noexcept expression, provided that both the error type E is non-throwingly movable (std::is_nothrow_move_constructible<E>::value) and E can be constructed exception-free from the universal reference type G&& of the default error ([SWS_CORE_00864]).

Concurrency and Interaction

The method is specified as thread-safe ([SWS_CORE_00864]). Due to the rvalue ref-qualifier &&, calling it requires the Result object to be passed as an rvalue.

In module core, this rvalue variant exists alongside other manifestations:

  • For ara::core::Result<void, E>, the const & overload [SWS_CORE_00863] exists as the lvalue counterpart, which copies the error instead of moving it.
  • For value and reference results, specializations ara::core::Result<T, E> ([SWS_CORE_00763], [SWS_CORE_00764]) as well as ara::core::Result<T&, E> ([SWS_CORE_00935], [SWS_CORE_00936]) provide the same dual signature structure for copy and move semantics.

This usage note was generated automatically based on the specification requirements of AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity 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#c80a389f
Content hash
c80a389f
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

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: faa781b78220 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The static function FromError is part of the template specialization ara::core::Result<void, E> and is included via the header file ara/core/result.h [SWS_CORE_00834]. It serves as a synchronous factory method to construct a new Result from an already existing error object [SWS_CORE_00834].

  • Parameters: The input parameter e takes the error as a const lvalue reference (const E &) [SWS_CORE_00834].
  • Return value: Returns an instance of Result that contains the passed error e [SWS_CORE_00834].

Error Handling and Exception Safety

The specification defines no specific error codes and does not foresee any reports to DET or DEM [SWS_CORE_00834]. The function is conditionally exception safe (conditionally exception safe): It is guaranteed as noexcept if and only if the error type E is non-throwing copyable (std::is_nothrow_copy_constructible<E>::value) [SWS_CORE_00834].

Concurrency

The call is classified as thread-safe [SWS_CORE_00834]. Interpretation: The thread safety is likely to concern the internal execution of the object creation, but presupposes that the referenced source object e is not modified by other threads during the copy operation. Question Q-639cbb5cf8a64a0c (open)

Interaction

Within the specialization ara::core::Result<void, E>, overloads for rvalue references (E&&) [SWS_CORE_00835] as well as for in-place construction via parameter pack [SWS_CORE_00836] complement this function; deviating from this, both are declared as not thread-safe. Corresponding overloads also exist for the incompletely specialized type ara::core::Result ([SWS_CORE_00734], [SWS_CORE_00735], [SWS_CORE_00736]) and reference specializations ([SWS_CORE_00905], [SWS_CORE_00906], [SWS_CORE_00907]).

This text was created by an AI. AUTOSAR specifications are authoritative.

Implementer's Guide to follow (complexity 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#2713965d
Content hash
2713965d
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

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 0aceeedf36f2 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The static function FromError synchronously creates a new instance of ara::core::Result<void, E> from an error object passed as an rvalue e [SWS_CORE_00835]. The function is defined in header ara/core/result.h and returns a ara::core::Result containing the error value [SWS_CORE_00835].

Error Handling and Concurrency

The operation offers conditional exception safety (conditionally exception safe): It guarantees freedom from exceptions via noexcept, provided that the error type E has a non-throwing move constructor (std::is_nothrow_move_constructible<E>::value) [SWS_CORE_00835]. The function is classified as not thread-safe (not thread-safe) [SWS_CORE_00835]. Interpretation: This is likely to mean that the rvalue object to be moved must be protected against concurrent accesses from other threads. Question Q-be29e8c3a7412b7a (open)

Interaction

Within the specialization ara::core::Result<void, E>, this overload represents the move counterpart to the lvalue copy function [SWS_CORE_00834] and to the in-place construction via parameter packs [SWS_CORE_00836]. Comparable rvalue overloads also exist in module core for value types [SWS_CORE_00735] and references [SWS_CORE_00906], complemented by respective lvalue ([SWS_CORE_00734], [SWS_CORE_00905]) and in-place variants ([SWS_CORE_00736], [SWS_CORE_00907]).

This text was created by an AI.

Implementer's Guide to follow (complexity 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#67ee0fc2
Content hash
67ee0fc2
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

function 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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8b596041d3f0 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The static template function FromError according to [SWS_CORE_00836] serves to create an erroneous Result object within the specialization ara::core::Result<void, E> whose error instance of type E is constructed directly in place from the passed arguments args. The function only participates in overload resolution if std::is_constructible<E, Args&&...>::value is true, the first type of the unpacked parameter pack does not correspond to E, and is also not a specialization of Result [SWS_CORE_00836].

Regarding exception safety, the function is specified as conditionally exception safe: It is declared with noexcept(std::is_nothrow_constructible<E, Args...>::value) [SWS_CORE_00836]. Regarding concurrency, the call is considered not thread-safe [SWS_CORE_00836].

In interaction with other functions of the class, this method complements the overloads for creation from already existing lvalue ([SWS_CORE_00834]) or rvalue error objects ([SWS_CORE_00835]). Interpretation: The SFINAE constraints regarding E and Result are likely to ensure that when already created errors or Result instances are passed, the respective copy or move operators are preferentially selected and ambiguities are avoided. Question Q-2796f954bcaececa (open) Analogous in-place factory functions exist for the generic type Result ([SWS_CORE_00736]) as well as for reference types in Result<T&, E> ([SWS_CORE_00907]).

This usage note was generated by an AI based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity 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#54c60594
Content hash
54c60594
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

function FromValue [SWS_CORE_00831] Upstream: RS_AP_00130

static Result FromValue () noexcept;

Build a new Result with void as value

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: cadd61352253 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The static member function FromValue() serves to create a successful ara::core::Result object for the template specialization ara::core::Result<void, E> [SWS_CORE_00831]. Because the result type void does not carry payload data, the function does not accept any input parameters. The call is synchronous and returns a Result representing a void value [SWS_CORE_00831]. It is declared in header ara/core/result.h [SWS_CORE_00831].

Error Handling and Exception Safety

The function is provided with the specification noexcept and classified as fully exception-safe (exception safe) [SWS_CORE_00831]. Because FromValue() by definition represents a successful operation, it produces no error states and returns no error codes. Specific error notifications via DET or DEM are not defined for this call.

Concurrency

According to the specification, the function is classified as thread-safe (thread-safe) [SWS_CORE_00831]. It can be called concurrently from multiple threads without additional synchronization measures.

Interaction

The parameterless signature is intended exclusively for Result<void, E> [SWS_CORE_00831]. It is distinguished from the value-creating overloads:

This usage note was generated automatically based on the AUTOSAR specification.

Implementer's Guide to follow (complexity 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#689d2bfa
Content hash
689d2bfa
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

function 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#b31a90de
Content hash
b31a90de
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

function 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.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: bddc80ca365a Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function Resolve of the template class ara::core::Result<void, E> serves for error handling within the scope of generic programming [SWS_CORE_00867]. If the instance of Result contains a regular value, the call performs no operation [SWS_CORE_00867]. If the instance contains an error instead, the callable f passed as a parameter is called [SWS_CORE_00867].

The passed callable f must be compatible with the function signature void f(const E&), where E represents the error type [SWS_CORE_00867]. The function Resolve itself yields no return value (void) [SWS_CORE_00867]. With respect to execution safety, the function is specified as not exception-safe (\u201cnot exception safe\u201d) [SWS_CORE_00867]. Its thread safety is conditional and directly depends on the thread safety of the passed callable f [SWS_CORE_00867].

In the overall system, this specialization differs from the regular Resolve functions for value types in ara::core::Result<T, E> [SWS_CORE_00767] and reference types in ara::core::Result<T&, E> [SWS_CORE_00939], [SWS_CORE_00940]: While those variants return the contained value or the result of the callable invocation, the void overload without a return value exists exclusively as a generic building block for standardizing interface calls [SWS_CORE_00867].

This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.

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#4dc10421
Content hash
4dc10421
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

function 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#8f90f515
Content hash
8f90f515
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

function 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#7e409bbe
Content hash
7e409bbe
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

function 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#3dae5603
Content hash
3dae5603
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

function 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#2a88503c
Content hash
2a88503c
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

function 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#54a41baf
Content hash
54a41baf
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

function 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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6d275c051250 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function Swap synchronously swaps the content of the current instance with the passed reference other [SWS_CORE_00845]. It belongs to the scope of specialization ara::core::Result<void, E> from header file ara/core/result.h and has no return value [SWS_CORE_00845].

With respect to error handling, the operation is classified as conditionally exception-safe (conditionally exception safe) [SWS_CORE_00845]. The assurance noexcept takes effect if and only if the error type E is both nothrow move-constructible (std::is_nothrow_move_constructible<E>::value) and nothrow move-assignable (std::is_nothrow_move_assignable<E>::value) [SWS_CORE_00845]. Specific error codes or notifications to DET or DEM are not provided for this call [SWS_CORE_00845].

Regarding concurrency, Swap is explicitly specified as not thread-safe (not thread-safe) [SWS_CORE_00845]. Concurrent access to the same instances without external synchronization is therefore likely to lead to data races. Question Q-a8d4f130648765df (open)

In the interplay within ara::core, the method forms the foundation for the non-member template function ara::core::swap, whose noexcept condition is directly coupled to the member function [SWS_CORE_00796]. Comparable swap operations exist for the generic type ara::core::Result<T, E> [SWS_CORE_00745], the reference specialization ara::core::Result<T&, E> [SWS_CORE_00917], as well as for promise objects [SWS_CORE_00352] [SWS_CORE_06352].

This text was generated by an AI based on the AUTOSAR specification.

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#0474393e
Content hash
0474393e
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

function 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#4c2667a5
Content hash
4c2667a5
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

function 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.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1e7317f7509a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function ValueOr of specialization ara::core::Result<void, E> primarily serves to facilitate generic programming patterns and performs no operations upon execution ([SWS_CORE_00861]). Provided via header ara/core/result.h, the method synchronously accepts a parameter defaultValue of forwarding type U&& and yields no return value (void) ([SWS_CORE_00861]).

Regarding concurrency and exception behavior, the member function is specified as thread-safe and declared with the specifier syntax noexcept, which guarantees full exception safety ([SWS_CORE_00861]). Because no check of the error state and no actions take place, neither error codes nor notifications to DET or DEM exist.

In interplay with the remaining variants of Result, this function complements the value-based ([SWS_CORE_00761], [SWS_CORE_00762]) and reference-based ([SWS_CORE_00933], [SWS_CORE_00934]) overloads of ValueOr. While those functions return the value if set or otherwise deliver the passed replacement value converted, this variant represents a neutral counterpart for operations without value return ([SWS_CORE_00861]). Interpretation: The passed value defaultValue is likely discarded unused in the implementation. Question Q-6097af779219e859 (open) This allows developers to write generic template algorithms without special branching for Result<void, E>.

This text was created by an AI.

Implementer's Guide to follow (complexity 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#74deb1e4
Content hash
74deb1e4
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

function ValueOrThrow [SWS_CORE_00866] Upstream: RS_AP_00130

void ValueOrThrow () const noexcept(false);

Return the contained value or throw an exception.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8e615ce72e75 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function ValueOrThrow of template specialization ara::core::Result<void, E> is used for synchronous checking of the operation result [SWS_CORE_00866]. Since the value type is void, the function takes no parameters and returns no value [SWS_CORE_00866]. The declaration is provided via header ara/core/result.h [SWS_CORE_00866].

In case of success, the method returns regularly; if, on the other hand, an error condition is present, it throws an exception of the exception type associated with the contained error (noexcept(false)) [SWS_CORE_00866]. Regarding exception safety, the operation is specified as not exception safe [SWS_CORE_00866].

The following constraints apply to calling context and concurrency:

  • The function is classified as thread-safe [SWS_CORE_00866].
  • If C++ exceptions are disabled in the compiler toolchain, this function does not participate in overload resolution [SWS_CORE_00866].

In interaction with the core module, this void specialization complements the generic overloads of ara::core::Result<T, E>, which return references to contained values ([SWS_CORE_00766], [SWS_CORE_00769], [SWS_CORE_00778]), as well as the specializations for reference types ara::core::Result<T&, E> ([SWS_CORE_00938], [SWS_CORE_00949]).

This text was generated by an AI and is based exclusively on specification data from AUTOSAR R25-11.

Implementer's Guide to follow (complexity 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#b509b5f6
Content hash
b509b5f6
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

function 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#20945fcd
Content hash
20945fcd
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

function 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#0bbf5d3b
Content hash
0bbf5d3b
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

function 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#6d116618
Content hash
6d116618
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

function 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#1757cb29
Content hash
1757cb29
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

function ~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#ada359e3
Content hash
ada359e3
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

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 67f5fc13d797 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template member function CheckError of specialization ara::core::Result<void, E> synchronously checks whether the current instance contains a specific error [SWS_CORE_00865]. For this purpose, the passed argument error is converted via static_cast into the error type E and compared with the return value of the internal error state Error() [SWS_CORE_00865]. The call is made via header #include "ara/core/result.h" [SWS_CORE_00865].

The following properties apply to usage and call context:

  • Parameters and return value: The universal reference parameter error of type G&& accepts the error to be checked [SWS_CORE_00865]. The function returns true if the instance contains an error equivalent to error, otherwise false [SWS_CORE_00865].
  • Concurrency and exception safety: The operation is declared as const noexcept, is considered exception-safe (exception safe), and can be called in an unrestricted thread-safe (thread-safe) manner [SWS_CORE_00865].

In the interplay with module core, analogous overloads of CheckError exist: The primary template class ara::core::Result also provides the same signature thread-safely and exception-safely with noexcept [SWS_CORE_00765]. In contrast, while the reference specialization ara::core::Result<T&, E> possesses the same comparison mechanism and is thread-safe, it is explicitly specified without noexcept as not exception-safe (not exception safe) [SWS_CORE_00937].

This usage note was generated automatically based on the specification requirements.

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#629602bb
Content hash
629602bb
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

Type alias documentation

type alias 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#32aa6a1c
Content hash
32aa6a1c
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

type alias 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#881c160a
Content hash
881c160a
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