DEENESPTFRRUARHIKOZHNL

class ara::core::Result< T &, E >

[SWS_CORE_00901] Upstream: RS_AP_00130

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

Specialization of class Result for reference to value types. 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

Serves for the fault-tolerant return of a reference to an existing object or an occurred error code.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8d8a51a8c902 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Serves for the fault-tolerant return of a reference to an existing object or an occurred error code.

The specialization ara::core::Result<T&, E> encapsulates either a non-owning reference to a successful operation result of type T& ([SWS_CORE_00902]) or an occurred error code of type E. Users typically check for the presence of a value via HasValue() ([SWS_CORE_00918]) before accessing the referenced target object via dereference operators or Value(). Since the instance does not own the referenced object itself, the caller is likely to need to ensure that it remains valid in memory throughout the entire duration of use of the result. Question Q-48d71186fb35af77 (open)

Context

The template specialization ara::core::Result<T&, E> encapsulates either a reference to a successful operation result of type value_type ([SWS_CORE_00902]) or an error value of type error_type ([SWS_CORE_00903]). As a standardized return structure in module core, it enables error-robust programming without the mandatory use of C++ exceptions in regular operation. According to the specification, the implementation enforces at compile time that the error type E corresponds to the type ara::core::ErrorCode; a deviating assignment leads to a compilation error. Interaction partners include data-supplying services, calling components for result checking, and the externally managed target object, which is accessed directly via the bound reference.

Lifecycle

An instance is deterministically initialized either with a reference to an existing lvalue or with an error. Initialization with a reference is performed via the constructor [SWS_CORE_00908] or the static factory method FromValue [SWS_CORE_00904]; passing rvalues is not permitted. Error states are created via constructors ([SWS_CORE_00909], [SWS_CORE_00910]) or factories such as FromError ([SWS_CORE_00905], [SWS_CORE_00906], [SWS_CORE_00907]). A default constructor does not exist. Copy and move constructors ([SWS_CORE_00911], [SWS_CORE_00912]) take over the current state of another instance.

Regarding ownership, Result<T&, E> merely binds a reference and assumes no ownership or lifetime management for the referenced target object. The caller is therefore likely to have to ensure that the target object remains valid over the entire lifetime of the Result instance. Question (open) State transitions during ongoing operation are performed via assignment operators ([SWS_CORE_00914], [SWS_CORE_00915]), which rebind the internal reference to the new target or transfer an error. In addition, EmplaceError [SWS_CORE_00916] puts the instance directly into an error state, while Swap [SWS_CORE_00917] swaps the contents of two instances. The destructor [SWS_CORE_00913] behaves trivially, provided that E is trivially destructible. Concurrent read accesses to value or error are thread-safe, whereas state-modifying operations such as assignments, Swap, or EmplaceError are not thread-safe.

ResultStates Init ValueState Wert-Referenz (T&) Init->ValueState FromValue / ctor ErrorState Fehler (E) Init->ErrorState FromError / ctor ValueState->ErrorState EmplaceError / op= ValueState->ErrorState Swap ErrorState->ValueState op= ErrorState->ValueState Swap

State diagram: Life phases and state transitions between reference and error states. Sources: [SWS_CORE_00904], [SWS_CORE_00905], [SWS_CORE_00914], [SWS_CORE_00916], [SWS_CORE_00917].

Usage Path

The regular flow includes state verification and purposeful evaluation:

Checking and accessing value or errorCallerDienstResult<T&, E>ermittleReferenz()Result<T&, E>HasValue()boolaltWert vorhandenValue()T&FehlerfallError()const E&

Sequence diagram: Typical query and access steps for value and error. Sources: [SWS_CORE_00918], [SWS_CORE_00924], [SWS_CORE_00928].

Error Scenarios

If the instance is in the error state, the overloads of Error() ([SWS_CORE_00928], [SWS_CORE_00929], [SWS_CORE_00930]) grant access to the error object. In addition, the error can be obtained via Err() ([SWS_CORE_00931], [SWS_CORE_00932]) as Optional<E> or via ErrorOr() ([SWS_CORE_00935], [SWS_CORE_00936]) with a fallback value. For specific error comparisons, CheckError() [SWS_CORE_00937] compares the contained error with a reference error.

The specification defines strict preconditions for element accesses:

This guide is based on the specification AUTOSAR Adaptive Platform R25-11 (core module). It was automatically curated for autodocs.

Member map

Class diagram

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

G nara__core__Result__T____E__551 Result< T &, E > + Result() + operator=() + ~Result() + Bind() + CheckError() + EmplaceError() + Err() + Error() + ErrorOr() + HasValue() + Ok() + Resolve() + Swap() + Value() + ValueOr() + ValueOrThrow() … 5 weitere

Detail view

Select an entry in the outline.

Constructors and destructor

Result function 5

Construct a new Result containing a reference to value from the specified reference to value. If U is not an lvalue, the program is ill-formed.

Overloads Result 5
template <typename U = T> Result (const U &&t) noexcept; SWS_CORE_00908
explicit Result (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00909
explicit Result (E &&e) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00910
Result (const Result &other) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00911
Result (Result &&other) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00912
~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

Apply the given Callable to the value of this instance, 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(const T&); • XXX f(const T&); meaning that the Callable either returns a Result<XXX> 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(Value())) for a template argument F that returns a Result type, and it is Result<decltype(f(Value())), 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;
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);
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_00931
Optional< E > Err () &&noexcept(std::is_nothrow_constructible< Optional< E >, E && >::value); SWS_CORE_00932
Error function 3

Access the contained error.

Overloads Error 3
const E & Error () const & noexcept; SWS_CORE_00928
E & Error () & noexcept; SWS_CORE_00929
E && Error () &&noexcept; SWS_CORE_00930
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_00935
template <typename G> E ErrorOr (G &&defaultError) &&noexcept(std::is_nothrow_move_ constructible< E >::value &&std::is_nothrow_constructible< E, G && >::value); SWS_CORE_00936
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_00905
static Result FromError (E &&e) noexcept(std::is_nothrow_move_ constructible< E >::value); SWS_CORE_00906
template <typename... Args> static Result FromError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value); SWS_CORE_00907
FromValue function

Build a new Result from the reference to a specified value (given as lvalue). If U is not an lvalue, the program is ill-formed.

template <typename U = T> static Result FromValue (U &&u) noexcept;
HasValue function

Check whether *this contains a value.

bool HasValue () const noexcept;
Ok function 2

Return the referred-to value as an Optional

Overloads Ok 2
Optional< const T & > Ok () const noexcept; SWS_CORE_00926
Optional< T & > Ok () noexcept; SWS_CORE_00927
Resolve function 2

Return the referred-to value or return the result of a function call. If *this contains a value, it is returned. Otherwise, the specified callable is invoked and its return value which is to be compatible to type T& is returned from this function. The Callable is expected to be compatible to this interface: const T& f(const E&);

Overloads Resolve 2
template <typename F> const T & Resolve (F &&f) const; SWS_CORE_00939
template <typename F> T & Resolve (F &&f) const; SWS_CORE_00940
Result< T &, E function 2

Access the referred-to value.

Overloads Result< T &, E 2
const T * operator-> () const noexcept; SWS_CORE_00922
T * operator-> () noexcept; SWS_CORE_00923
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 2

Access the referred-to value.

Overloads Value 2
const T & Value () const & noexcept; SWS_CORE_00924
T & Value () & noexcept; SWS_CORE_00925
ValueOr function 2

Return a copy of the referred-to value or the given default value. If *this contains a value, it is returned. Otherwise, the specified default value is returned, static_ cast’d to T.

Overloads ValueOr 2
template <typename U> T ValueOr (U &&defaultValue) const &noexcept(std::is_nothrow_copy_ constructible< T >::value &&std::is_nothrow_constructible< T, U &&>::value); SWS_CORE_00933
template <typename U> T ValueOr (U &&defaultValue) &&noexcept(std::is_nothrow_move_ constructible< T >::value &&std::is_nothrow_constructible< T, U && >::value); SWS_CORE_00934
ValueOrThrow function 2

Return the contained value or throw an exception.

Overloads ValueOrThrow 2
const T & ValueOrThrow () const noexcept(false); SWS_CORE_00938
T & ValueOrThrow () noexcept(false); SWS_CORE_00949

Operators

operator bool function

Check whether *this contains a value.

explicit operator bool () const noexcept;
operator* function 2

Access the referred-to value.

Overloads * 2
const T & operator* () const & noexcept; SWS_CORE_00920
T & operator* () & noexcept; SWS_CORE_00921
operator= function 2

Copy-assignment operator If other contains a value, the contained reference is rebound to the referee of other. If other contains an error, the contained error is copy-constructed or copy-assigned from the one contained by other.

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

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

using value_type = T&;

Method documentation

function Result< T &, E [SWS_CORE_00922] Upstream: RS_AP_00130

const T * operator-> () const noexcept;

Access the referred-to value.

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

use

The member function const T * operator-> () const noexcept enables synchronous read access to the referenced value of a ara::core::Result<T &, E> object [SWS_CORE_00922]. It takes no arguments and provides a const pointer (const T *) to the referenced target object as its return value [SWS_CORE_00922]. For usage, header #include "ara/core/result.h" must be included [SWS_CORE_00922].

Error handling

The operation is declared as noexcept and possesses the property exception safe [SWS_CORE_00922]. If the object contains no value, a precondition violation (violation) ResultWithNoValue occurs [SWS_CORE_00922]. Callers must therefore ensure before dereferencing that the instance indeed holds a valid value.

Concurrency and Limitations

The function is specified as thread-safe [SWS_CORE_00922]. Since it is a const member function, concurrent read access to the same instance is safe. However, access to the target object itself is subject to the thread safety guarantees of type T.

Interaction

The operator constitutes the const counterpart to the non-const overload T * operator-> () noexcept [SWS_CORE_00923]. While the non-const variant returns a modifiable pointer T* [SWS_CORE_00923], this version enforces immutable access to the referenced instance.

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

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

Rückgabewert

TypBeschreibung
const T *a const pointer to the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00922
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00922@rel:R25-11#1000585b
Content hash
1000585b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00922
Status: valid/unmigrated Version: rel:R25-11#9f451f5a Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00922@rel:R25-11#9f451f5a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1000585b2026-09-30
  • R24-11rel:R24-11#9f451f5a2026-10-14
  • R25-11rel:R25-11#9f451f5a2026-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< T &, E [SWS_CORE_00923] Upstream: RS_AP_00130

T * operator-> () noexcept;

Access the referred-to value.

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

use

The member function operator-> enables direct access to the referenced value of an instance of ara::core::Result<T&, E> according to [SWS_CORE_00923]. The function requires header file #include "ara/core/result.h", takes no parameters, and returns a pointer of type T* to the contained or referenced value. The call is executed synchronously and is declared with noexcept.

Error Handling and Boundary Conditions

If the object contains no value at the time of access, a specification violation in the form of a ResultWithNoValue-Violation occurs [SWS_CORE_00923]. Specific DET or DEM error reports are not designated for this member function. Regarding concurrency and fault tolerance, the operator is classified as thread-safe and as exception safe [SWS_CORE_00923]. Callers should presumably ensure before the call that the instance indeed holds a valid value to prevent triggering the violation. Question Q-a4b13cd34a40eb19 (open)

Interaction

In interaction with template ara::core::Result<T&, E>, this non-const member function complements the corresponding const overload const T * operator-> () const noexcept from [SWS_CORE_00922], which is subject to the same guarding rules but provides a read-only pointer (const T*).

This usage note was generated automatically by an AI based on the specification.

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

Rückgabewert

TypBeschreibung
T*a pointer to the contained value

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

Record
AUTOSAR/AP/record/SWS_CORE_00923
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00923@rel:R25-11#1716a9d4
Content hash
1716a9d4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00923
Status: valid/unmigrated Version: rel:R25-11#af163541 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00923@rel:R25-11#af163541
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1716a9d42026-09-30
  • R24-11rel:R24-11#ba5721012026-10-14
  • R25-11rel:R25-11#af1635412026-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 Bind [SWS_CORE_00941] Upstream: RS_AP_00130

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

Apply the given Callable to the value of this instance, 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(const T&); • XXX f(const T&); meaning that the Callable either returns a Result<XXX> 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(Value())) for a template argument F that returns a Result type, and it is Result<decltype(f(Value())), 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.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00941
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00941@rel:R25-11#78eae137
Content hash
78eae137
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00941
Status: valid/unmigrated Version: rel:R25-11#0126aa36 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00941@rel:R25-11#0126aa36
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#78eae1372026-09-30
  • R24-11rel:R24-11#d8b1c6212026-10-14
  • R25-11rel:R25-11#0126aa362026-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_00937] Upstream: RS_AP_00130

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

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

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, E >
Exception-Sicherheitnot exception 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_00937
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00937@rel:R25-11#b35758fd
Content hash
b35758fd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00937
Status: valid/unmigrated Version: rel:R25-11#9f24181c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00937@rel:R25-11#9f24181c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b35758fd2026-09-30
  • R24-11rel:R24-11#112e32e52026-10-14
  • R25-11rel:R25-11#9f24181c2026-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_00916] 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.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00916
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00916@rel:R25-11#44cec67d
Content hash
44cec67d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00916
Status: valid/unmigrated Version: rel:R25-11#a2c792b8 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00916@rel:R25-11#a2c792b8
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#44cec67d2026-09-30
  • R24-11rel:R24-11#a2c792b82026-10-14
  • R25-11rel:R25-11#a2c792b82026-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_00931] 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.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00931
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00931@rel:R25-11#2576421d
Content hash
2576421d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00931
Status: valid/unmigrated Version: rel:R25-11#367c1db3 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00931@rel:R25-11#367c1db3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2576421d2026-09-30
  • R24-11rel:R24-11#7bb5b2f52026-10-14
  • R25-11rel:R25-11#367c1db32026-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_00932] 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.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00932
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00932@rel:R25-11#04a7d8d4
Content hash
04a7d8d4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00932
Status: valid/unmigrated Version: rel:R25-11#3cc684f4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00932@rel:R25-11#3cc684f4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#04a7d8d42026-09-30
  • R24-11rel:R24-11#16f325ba2026-10-14
  • R25-11rel:R25-11#3cc684f42026-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_00928] Upstream: RS_AP_00130

const E & Error () const & noexcept;

Access the contained error.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00928
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00928@rel:R25-11#43d54cae
Content hash
43d54cae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00928
Status: valid/unmigrated Version: rel:R25-11#3a785d8e Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00928@rel:R25-11#3a785d8e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#43d54cae2026-09-30
  • R24-11rel:R24-11#3a785d8e2026-10-14
  • R25-11rel:R25-11#3a785d8e2026-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_00929] Upstream: RS_AP_00130

E & Error () & noexcept;

Access the contained error.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00929
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00929@rel:R25-11#25dca9a0
Content hash
25dca9a0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00929
Status: valid/unmigrated Version: rel:R25-11#9e868c10 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00929@rel:R25-11#9e868c10
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#25dca9a02026-09-30
  • R24-11rel:R24-11#9e868c102026-10-14
  • R25-11rel:R25-11#9e868c102026-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_00930] Upstream: RS_AP_00130

E && Error () &&noexcept;

Access the contained error.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00930
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00930@rel:R25-11#63ed636b
Content hash
63ed636b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00930
Status: valid/unmigrated Version: rel:R25-11#63e8122f Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00930@rel:R25-11#63e8122f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#63ed636b2026-09-30
  • R24-11rel:R24-11#63e8122f2026-10-14
  • R25-11rel:R25-11#63e8122f2026-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_00935] 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

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00935
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00935@rel:R25-11#e2606b98
Content hash
e2606b98
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00935
Status: valid/unmigrated Version: rel:R25-11#96361ca4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00935@rel:R25-11#96361ca4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e2606b982026-09-30
  • R24-11rel:R24-11#7d28dddd2026-10-14
  • R25-11rel:R25-11#96361ca42026-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_00936] 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

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00936
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00936@rel:R25-11#6e984ee5
Content hash
6e984ee5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00936
Status: valid/unmigrated Version: rel:R25-11#ae7f8d57 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00936@rel:R25-11#ae7f8d57
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6e984ee52026-09-30
  • R24-11rel:R24-11#8548dd712026-10-14
  • R25-11rel:R25-11#ae7f8d572026-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_00905] 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)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00905
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00905@rel:R25-11#dd186e73
Content hash
dd186e73
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00905
Status: valid/unmigrated Version: rel:R25-11#41559e51 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00905@rel:R25-11#41559e51
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#dd186e732026-09-30
  • R24-11rel:R24-11#d8a1d0a02026-10-14
  • R25-11rel:R25-11#41559e512026-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_00906] 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)

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00906
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00906@rel:R25-11#9ba6bef6
Content hash
9ba6bef6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00906
Status: valid/unmigrated Version: rel:R25-11#228ba9e5 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00906@rel:R25-11#228ba9e5
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9ba6bef62026-09-30
  • R24-11rel:R24-11#e77e81e82026-10-14
  • R25-11rel:R25-11#228ba9e52026-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_00907] 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

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00907
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00907@rel:R25-11#f0efbfee
Content hash
f0efbfee
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00907
Status: valid/unmigrated Version: rel:R25-11#2e812431 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00907@rel:R25-11#2e812431
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f0efbfee2026-09-30
  • R24-11rel:R24-11#282d12a22026-10-14
  • R25-11rel:R25-11#2e8124312026-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_00904] Upstream: RS_AP_00130

template <typename U = T> static Result FromValue (U &&u) noexcept;

Build a new Result from the reference to a specified value (given as lvalue). If U is not an lvalue, the program is ill-formed.

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

Template-Parameter

ParameterBeschreibung
Uthe type of u

Parameter (in)

ParameterBeschreibung
uthe value to bind to

Rückgabewert

TypBeschreibung
Resulta Result that contains a reference to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00904
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00904@rel:R25-11#a933c6fd
Content hash
a933c6fd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00904
Status: valid/unmigrated Version: rel:R25-11#1e4ff745 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00904@rel:R25-11#1e4ff745
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a933c6fd2026-09-30
  • R24-11rel:R24-11#2545e3982026-10-14
  • R25-11rel:R25-11#1e4ff7452026-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_00918] 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< T &, 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_00918
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00918@rel:R25-11#be8026e4
Content hash
be8026e4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00918
Status: valid/unmigrated Version: rel:R25-11#7f4bf0bf Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00918@rel:R25-11#7f4bf0bf
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#be8026e42026-09-30
  • R24-11rel:R24-11#7f4bf0bf2026-10-14
  • R25-11rel:R25-11#7f4bf0bf2026-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 Ok [SWS_CORE_00926] Upstream: RS_AP_00130

Optional< const T & > Ok () const noexcept;

Return the referred-to value as an Optional

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

Rückgabewert

TypBeschreibung
Optional< const T & >an Optional with the const-reference to value, if present

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

Record
AUTOSAR/AP/record/SWS_CORE_00926
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00926@rel:R25-11#98d5e892
Content hash
98d5e892
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00926
Status: valid/unmigrated Version: rel:R25-11#69b57392 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00926@rel:R25-11#69b57392
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#98d5e8922026-09-30
  • R24-11rel:R24-11#69b573922026-10-14
  • R25-11rel:R25-11#69b573922026-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 Ok [SWS_CORE_00927] Upstream: RS_AP_00130

Optional< T & > Ok () noexcept;

Return the referred-to value as an Optional.

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

Rückgabewert

TypBeschreibung
Optional< T & >an Optional with the reference to value, if present

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

Record
AUTOSAR/AP/record/SWS_CORE_00927
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00927@rel:R25-11#559a5ec2
Content hash
559a5ec2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00927
Status: valid/unmigrated Version: rel:R25-11#8d30f5f6 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00927@rel:R25-11#8d30f5f6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#559a5ec22026-09-30
  • R24-11rel:R24-11#8d30f5f62026-10-14
  • R25-11rel:R25-11#8d30f5f62026-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_00939] Upstream: RS_AP_00130

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

Return the referred-to value or return the result of a function call. If *this contains a value, it is returned. Otherwise, the specified callable is invoked and its return value which is to be compatible to type T& is returned from this function. The Callable is expected to be compatible to this interface: const T& f(const E&);

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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
const T &the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00939
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00939@rel:R25-11#08904609
Content hash
08904609
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00939
Status: valid/unmigrated Version: rel:R25-11#fdf742a1 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00939@rel:R25-11#fdf742a1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#089046092026-09-30
  • R24-11rel:R24-11#fdf742a12026-10-14
  • R25-11rel:R25-11#fdf742a12026-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_00940] Upstream: RS_AP_00130

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

Return the referred-to value or return the result of a function call. If *this contains a value, it is returned. Otherwise, the specified callable is invoked and its return value which is to be compatible to type T& is returned from this function. The Callable is expected to be compatible to this interface: T& f(const E&);

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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
T&the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00940
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00940@rel:R25-11#2c14257c
Content hash
2c14257c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00940
Status: valid/unmigrated Version: rel:R25-11#e7d820cc Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00940@rel:R25-11#e7d820cc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2c14257c2026-09-30
  • R24-11rel:R24-11#e7d820cc2026-10-14
  • R25-11rel:R25-11#e7d820cc2026-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_00908] Upstream: RS_AP_00130

template <typename U = T> Result (const U &&t) noexcept;

Construct a new Result containing a reference to value from the specified reference to value. If U is not an lvalue, the program is ill-formed.

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

Template-Parameter

ParameterBeschreibung
Uthe type of t

Parameter (in)

ParameterBeschreibung
tthe value to bind to

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

Record
AUTOSAR/AP/record/SWS_CORE_00908
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00908@rel:R25-11#3c9b7234
Content hash
3c9b7234
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00908
Status: valid/unmigrated Version: rel:R25-11#b96d9e9c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00908@rel:R25-11#b96d9e9c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#3c9b72342026-09-30
  • R24-11rel:R24-11#066248f52026-10-14
  • R25-11rel:R25-11#b96d9e9c2026-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_00909] 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< T &, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-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_00909
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00909@rel:R25-11#4a6493a2
Content hash
4a6493a2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00909
Status: valid/unmigrated Version: rel:R25-11#46372288 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00909@rel:R25-11#46372288
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4a6493a22026-09-30
  • R24-11rel:R24-11#5ebcd7662026-10-14
  • R25-11rel:R25-11#463722882026-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_00910] 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< T &, 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_00910
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00910@rel:R25-11#0e04ebf9
Content hash
0e04ebf9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00910
Status: valid/unmigrated Version: rel:R25-11#c5e5c952 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00910@rel:R25-11#c5e5c952
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0e04ebf92026-09-30
  • R24-11rel:R24-11#859dd0432026-10-14
  • R25-11rel:R25-11#c5e5c9522026-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_00911] 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< T &, 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_00911
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00911@rel:R25-11#ca8f9c00
Content hash
ca8f9c00
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00911
Status: valid/unmigrated Version: rel:R25-11#9a80ad1c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00911@rel:R25-11#9a80ad1c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ca8f9c002026-09-30
  • R24-11rel:R24-11#b1c37cf12026-10-14
  • R25-11rel:R25-11#9a80ad1c2026-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_00912] 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< T &, 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_00912
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00912@rel:R25-11#56510500
Content hash
56510500
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00912
Status: valid/unmigrated Version: rel:R25-11#52978d92 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00912@rel:R25-11#52978d92
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#565105002026-09-30
  • R24-11rel:R24-11#e6a2c0d12026-10-14
  • R25-11rel:R25-11#52978d922026-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_00917] 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

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00917
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00917@rel:R25-11#bd04da7d
Content hash
bd04da7d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00917
Status: valid/unmigrated Version: rel:R25-11#72e89881 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00917@rel:R25-11#72e89881
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#bd04da7d2026-09-30
  • R24-11rel:R24-11#2d8fcf422026-10-14
  • R25-11rel:R25-11#72e898812026-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_00924] Upstream: RS_AP_00130

const T & Value () const & noexcept;

Access the referred-to value.

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

Rückgabewert

TypBeschreibung
const T &a const reference to the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00924
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00924@rel:R25-11#28f643a4
Content hash
28f643a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00924
Status: valid/unmigrated Version: rel:R25-11#25229425 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00924@rel:R25-11#25229425
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#28f643a42026-09-30
  • R24-11rel:R24-11#252294252026-10-14
  • R25-11rel:R25-11#252294252026-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_00925] Upstream: RS_AP_00130

T & Value () & noexcept;

Access the referred-to value.

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

Rückgabewert

TypBeschreibung
T&a reference to the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00925
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00925@rel:R25-11#d89bc072
Content hash
d89bc072
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00925
Status: valid/unmigrated Version: rel:R25-11#96d0afae Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00925@rel:R25-11#96d0afae
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d89bc0722026-09-30
  • R24-11rel:R24-11#96d0afae2026-10-14
  • R25-11rel:R25-11#96d0afae2026-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_00933] Upstream: RS_AP_00130

template <typename U> T ValueOr (U &&defaultValue) const &noexcept(std::is_nothrow_copy_ constructible< T >::value &&std::is_nothrow_constructible< T, U &&>::value);

Return a copy of the referred-to value or the given default value. If *this contains a value, it is returned. Otherwise, the specified default value is returned, static_ cast’d to T.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, E >
Exception-Sicherheitconditionally exception 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
Tthe value

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

Record
AUTOSAR/AP/record/SWS_CORE_00933
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00933@rel:R25-11#73a9ae6d
Content hash
73a9ae6d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00933
Status: valid/unmigrated Version: rel:R25-11#afe9e54f Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00933@rel:R25-11#afe9e54f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#73a9ae6d2026-09-30
  • R24-11rel:R24-11#aae94efe2026-10-14
  • R25-11rel:R25-11#afe9e54f2026-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_00934] Upstream: RS_AP_00130

template <typename U> T ValueOr (U &&defaultValue) &&noexcept(std::is_nothrow_move_ constructible< T >::value &&std::is_nothrow_constructible< T, U && >::value);

Return a copy of the referred-to value or the given default value. If *this contains a value, it is returned. Otherwise, the specified default value is returned, static_ cast’d to T.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, E >
Exception-Sicherheitconditionally exception 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
Tthe value

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

Record
AUTOSAR/AP/record/SWS_CORE_00934
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00934@rel:R25-11#32e3eaec
Content hash
32e3eaec
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00934
Status: valid/unmigrated Version: rel:R25-11#008e53e8 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00934@rel:R25-11#008e53e8
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#32e3eaec2026-09-30
  • R24-11rel:R24-11#008e53e82026-10-14
  • R25-11rel:R25-11#008e53e82026-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_00938] Upstream: RS_AP_00130

const T & 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: 81dc031902ad Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function ValueOrThrow of template specialization ara::core::Result<T &, E> enables access to the contained value ([SWS_CORE_00938]). Upon successful operation, it returns a const reference (const T &) to the encapsulated reference target.

If the object represents an error case, the function throws the exception associated with the specific error (noexcept(false)) ([SWS_CORE_00938]). The specification explicitly classifies the exception safety of the operation as not exception safe (not exception safe) ([SWS_CORE_00938]).

Regarding concurrency, the method is declared thread-safe ([SWS_CORE_00938]). A major constraint concerns the build configuration: if C++ exceptions are disabled in the compiler toolchain, ValueOrThrow does not participate in overload resolution ([SWS_CORE_00938]).

Within header ara/core/result.h, the function constitutes the const counterpart to the non-const reference overload [SWS_CORE_00949]. For regular value types, analogous overloads are provided for lvalues and rvalues ([SWS_CORE_00766], [SWS_CORE_00769], [SWS_CORE_00778]), whereas for ara::core::Result<void, E>, an overload without a return value is defined ([SWS_CORE_00866]).

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

Implementer's Guide to follow (complexity I1)

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

Rückgabewert

TypBeschreibung
const T &a const reference to the contained value

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_00938
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00938@rel:R25-11#11054bee
Content hash
11054bee
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00938
Status: valid/unmigrated Version: rel:R25-11#af72fdda Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00938@rel:R25-11#af72fdda
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#11054bee2026-09-30
  • R24-11rel:R24-11#881ca26f2026-10-14
  • R25-11rel:R25-11#af72fdda2026-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_00949] Upstream: RS_AP_00130

T & ValueOrThrow () noexcept(false);

Return a reference to the contained value or throw an exception.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: cc4ce28e1dcf 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<T&, E> is used for synchronous access to the contained reference value [SWS_CORE_00949]. It takes no parameters and returns a non-const reference T& to the stored value [SWS_CORE_00949].

If the object contains an error rather than a value, the operation is not exception safe (not exception safe) and throws an exception of the type associated with the error (noexcept(false)) [SWS_CORE_00949]. An essential constraint for its use is that the function does not participate in overload resolution if C++ exceptions are disabled in the compiler toolchain [SWS_CORE_00949].

Regarding concurrency, the call is specified as thread-safe [SWS_CORE_00949]. Within the specialization for references ara::core::Result<T&, E>, the overload [SWS_CORE_00938] exists as a const variant, which returns const T&. This behavior complements the overloads of primary template ara::core::Result for lvalue references [SWS_CORE_00778], const lvalue references [SWS_CORE_00766], and rvalue references [SWS_CORE_00769], as well as the specialization for void [SWS_CORE_00866].

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< T &, E >
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
T&a reference to the contained value

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_00949
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00949@rel:R25-11#13bf0d5f
Content hash
13bf0d5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00949
Status: valid/unmigrated Version: rel:R25-11#13bf0d5f Versionshistorie & Revisions (1 transition)
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_00949@rel:R25-11#13bf0d5f
Point-in-Time History:
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_00919] 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< T &, 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_00919
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00919@rel:R25-11#463c5512
Content hash
463c5512
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00919
Status: valid/unmigrated Version: rel:R25-11#9caff649 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00919@rel:R25-11#9caff649
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#463c55122026-09-30
  • R24-11rel:R24-11#c1d3eae72026-10-14
  • R25-11rel:R25-11#9caff6492026-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_00920] Upstream: RS_AP_00130

const T & operator* () const & noexcept;

Access the referred-to value.

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

Rückgabewert

TypBeschreibung
const T &a const_reference to the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00920
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00920@rel:R25-11#10c55e49
Content hash
10c55e49
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00920
Status: valid/unmigrated Version: rel:R25-11#20cbba54 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00920@rel:R25-11#20cbba54
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#10c55e492026-09-30
  • R24-11rel:R24-11#d76ea3032026-10-14
  • R25-11rel:R25-11#20cbba542026-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_00921] Upstream: RS_AP_00130

T & operator* () & noexcept;

Access the referred-to value.

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

Rückgabewert

TypBeschreibung
T&a pointer to the referred-to value

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

Record
AUTOSAR/AP/record/SWS_CORE_00921
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00921@rel:R25-11#6b281145
Content hash
6b281145
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00921
Status: valid/unmigrated Version: rel:R25-11#ae9be381 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00921@rel:R25-11#ae9be381
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6b2811452026-09-30
  • R24-11rel:R24-11#ae9be3812026-10-14
  • R25-11rel:R25-11#ae9be3812026-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_00914] 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-assignment operator If other contains a value, the contained reference is rebound to the referee of other. If other contains an error, the contained error is copy-constructed or copy-assigned from the one contained by other.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00914
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00914@rel:R25-11#87b4ac30
Content hash
87b4ac30
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00914
Status: valid/unmigrated Version: rel:R25-11#7d7fecd1 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00914@rel:R25-11#7d7fecd1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#87b4ac302026-09-30
  • R24-11rel:R24-11#7d7fecd12026-10-14
  • R25-11rel:R25-11#7d7fecd12026-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_00915] Upstream: RS_AP_00130

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

Move-assignment operator If other contains a value, the contained reference is rebound to the referee of other. If other contains an error, the contained error is move-constructed or move-assigned from the one contained by other.

Header-Datei#include "ara/core/result.h"
Scopeclass ara::core::Result< T &, 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_00915
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00915@rel:R25-11#38826368
Content hash
38826368
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00915
Status: valid/unmigrated Version: rel:R25-11#7c4a74e8 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00915@rel:R25-11#7c4a74e8
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#388263682026-09-30
  • R24-11rel:R24-11#7c4a74e82026-10-14
  • R25-11rel:R25-11#7c4a74e82026-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_00913] 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< T &, 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_00913
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00913@rel:R25-11#311b9cf4
Content hash
311b9cf4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00913
Status: valid/unmigrated Version: rel:R25-11#77d99248 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00913@rel:R25-11#77d99248
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#311b9cf42026-09-30
  • R24-11rel:R24-11#77d992482026-10-14
  • R25-11rel:R25-11#77d992482026-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_00903] 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< T &, E >
Symbolerror_type

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

Record
AUTOSAR/AP/record/SWS_CORE_00903
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00903@rel:R25-11#71ba7003
Content hash
71ba7003
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00903
Status: valid/unmigrated Version: rel:R25-11#042553bb Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00903@rel:R25-11#042553bb
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#71ba70032026-09-30
  • R24-11rel:R24-11#042553bb2026-10-14
  • R25-11rel:R25-11#042553bb2026-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_00902] Upstream: RS_AP_00130

using value_type = T&;

Type alias for the type T& of values

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00902
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00902@rel:R25-11#41d05868
Content hash
41d05868
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00902
Status: valid/unmigrated Version: rel:R25-11#0efd456c Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00902@rel:R25-11#0efd456c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#41d058682026-09-30
  • R24-11rel:R24-11#0efd456c2026-10-14
  • R25-11rel:R25-11#0efd456c2026-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