DEENESPTFRRUARHIKOZHNL

classe 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

Guide utilisateurGÉNÉRÉ PAR IA

Sert au renvoi tolérant aux pannes d'une référence à un objet existant ou d'un code d'erreur survenu.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 8d8a51a8c902 Provenance Questions ouvertes (1)
traduit du guide allemandGénéré par l'IAgemini-3.8-flash-low · 2026-10-13 · Original allemand

Sert au renvoi tolérant aux pannes d'une référence à un objet existant ou d'un code d'erreur survenu.

La spécialisation ara::core::Result<T&, E> encapsule soit une référence sans possession à un résultat d'opération réussi de type T& ([SWS_CORE_00902]), soit un code d'erreur survenu de type E. Les utilisateurs vérifient la présence d'une valeur typiquement via HasValue() ([SWS_CORE_00918]) avant d'accéder à l'objet cible référencé via des opérateurs de déréférencement ou Value(). L'instance ne possédant pas elle-même l'objet référencé, l'appelant devrait devoir s'assurer que celui-ci reste valide en mémoire pendant toute la durée d'utilisation du résultat. Question Q-48d71186fb35af77 (ouverte)

Contexte

La spécialisation de patron ara::core::Result<T&, E> encapsule soit une référence à un résultat d'opération réussi de type value_type ([SWS_CORE_00902]), soit une valeur d'erreur de type error_type ([SWS_CORE_00903]). En tant que structure de retour standardisée dans le module core, elle permet une programmation robuste aux erreurs sans recours obligatoire aux exceptions C++ dans le déroulement normal. Selon la spécification, l'implémentation impose au moment de la compilation que le type d'erreur E corresponde au type ara::core::ErrorCode ; une affectation divergente conduit à une erreur de compilation. Les partenaires d'interaction comprennent les services fournissant des données, les composants appelants pour la vérification des résultats ainsi que l'objet cible géré de manière externe, auquel on accède directement via la référence liée.

Cycle de vie

Une instance est initialisée de façon déterministe soit avec une référence à une lvalue existante, soit avec une erreur. L'initialisation avec une référence s'effectue via le constructeur [SWS_CORE_00908] ou la méthode de fabrique statique FromValue [SWS_CORE_00904] ; la transmission de rvalues n'est pas autorisée. Les états d'erreur sont créés via des constructeurs ([SWS_CORE_00909], [SWS_CORE_00910]) ou des fabriques telles que FromError ([SWS_CORE_00905], [SWS_CORE_00906], [SWS_CORE_00907]). Il n'existe pas de constructeur par défaut. Les constructeurs de copie et de déplacement ([SWS_CORE_00911], [SWS_CORE_00912]) reprennent l'état actuel d'une autre instance.

En ce qui concerne les relations de propriété, Result<T&, E> ne fait que lier une référence et n'assume aucune propriété ni gestion de la durée de vie de l'objet cible référencé. L'appelant devrait par conséquent devoir garantir que l'objet cible reste valide pendant toute la durée d'existence de l'instance Result. Question (ouverte) Les changements d'état en cours d'exécution sont effectués via des opérateurs d'affectation ([SWS_CORE_00914], [SWS_CORE_00915]), qui réassignent la référence interne à la nouvelle cible ou transmettent une erreur. De plus, EmplaceError [SWS_CORE_00916] place l'instance directement dans un état d'erreur, tandis que Swap [SWS_CORE_00917] échange les contenus de deux instances. Le destructeur [SWS_CORE_00913] a un comportement trivial pour autant que E soit trivialement destructible. Les accès parallèles en lecture à la valeur ou à l'erreur sont thread-safe, tandis que les opérations de modification d'état telles que les affectations, Swap ou EmplaceError ne sont pas 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

Diagramme d'états : phases de vie et transitions d'état entre l'état de référence et l'état d'erreur. Sources : [SWS_CORE_00904], [SWS_CORE_00905], [SWS_CORE_00914], [SWS_CORE_00916], [SWS_CORE_00917].

Parcours d'utilisation

Le déroulement régulier comprend le contrôle d'état ainsi que l'évaluation ciblée :

Vérification et accès à la valeur ou à l'erreurAppelantDienstResult<T&, E>ermittleReferenz()Result<T&, E>HasValue()boolaltWert vorhandenValue()T&FehlerfallError()const E&

Diagramme de séquence : étapes typiques d'interrogation et d'accès pour la valeur et l'erreur. Sources : [SWS_CORE_00918], [SWS_CORE_00924], [SWS_CORE_00928].

Scénarios d'erreur

Si l'instance se trouve dans l'état d'erreur, les surcharges de Error() ([SWS_CORE_00928], [SWS_CORE_00929], [SWS_CORE_00930]) accordent l'accès à l'objet d'erreur. En complément, l'erreur peut être obtenue via Err() ([SWS_CORE_00931], [SWS_CORE_00932]) en tant que Optional<E> ou via ErrorOr() ([SWS_CORE_00935], [SWS_CORE_00936]) avec une valeur de repli. Pour des comparaisons d'erreurs spécifiques, CheckError() [SWS_CORE_00937] compare l'erreur contenue à une erreur de référence.

La spécification définit des préconditions strictes pour les accès aux éléments :

Ce guide est basé sur la spécification AUTOSAR Adaptive Platform R25-11 (module core). Il a été sélectionné de manière automatisée pour autodocs.

Carte des membres

Diagramme de classes

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

Vue détaillée

Sélectionnez une entrée dans le plan.

Constructeurs et destructeur

Result fonction 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.

Surcharges 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 fonction

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

~Result () noexcept;

Méthodes

Bind fonction

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 fonction

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 fonction

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 fonction 2

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

Surcharges 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 fonction 3

Access the contained error.

Surcharges Error 3
const E & Error () const & noexcept; SWS_CORE_00928
E & Error () & noexcept; SWS_CORE_00929
E && Error () &&noexcept; SWS_CORE_00930
ErrorOr fonction 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

Surcharges 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 fonction 3

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

Surcharges 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 fonction

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 fonction

Check whether *this contains a value.

bool HasValue () const noexcept;
Ok fonction 2

Return the referred-to value as an Optional

Surcharges Ok 2
Optional< const T & > Ok () const noexcept; SWS_CORE_00926
Optional< T & > Ok () noexcept; SWS_CORE_00927
Resolve fonction 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&);

Surcharges 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 fonction 2

Access the referred-to value.

Surcharges Result< T &, E 2
const T * operator-> () const noexcept; SWS_CORE_00922
T * operator-> () noexcept; SWS_CORE_00923
Swap fonction

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 fonction 2

Access the referred-to value.

Surcharges Value 2
const T & Value () const & noexcept; SWS_CORE_00924
T & Value () & noexcept; SWS_CORE_00925
ValueOr fonction 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.

Surcharges 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 fonction 2

Return the contained value or throw an exception.

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

Opérateurs

operator bool fonction

Check whether *this contains a value.

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

Access the referred-to value.

Surcharges * 2
const T & operator* () const & noexcept; SWS_CORE_00920
T & operator* () & noexcept; SWS_CORE_00921
operator= fonction 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.

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

Alias de type

error_type alias de type

Type alias for the type E of errors

using error_type = E;
value_type alias de type

Type alias for the type T& of values

using value_type = T&;

Documentation des méthodes

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

const T * operator-> () const noexcept;

Access the referred-to value.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 78ad946285a2 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La fonction membre const T * operator-> () const noexcept permet l'accès en lecture synchrone à la valeur référencée d'un objet ara::core::Result<T &, E> [SWS_CORE_00922]. Elle ne prend aucun argument et fournit comme valeur de retour un pointeur constant (const T *) vers l'objet cible référencé [SWS_CORE_00922]. Pour l'utilisation, l'en-tête #include "ara/core/result.h" doit être inclus [SWS_CORE_00922].

Gestion des erreurs

L'opération est déclarée comme noexcept et possède la propriété exception safe [SWS_CORE_00922]. Si l'objet ne contient aucune valeur, il s'agit d'une violation de précondition (Violation) ResultWithNoValue [SWS_CORE_00922]. Les appelants doivent donc s'assurer avant le déréférencement que l'instance contient effectivement une valeur valide.

Concurrence et restrictions

La fonction est spécifiée comme thread-safe [SWS_CORE_00922]. S'agissant d'une fonction membre constante, l'accès parallèle en lecture à la même instance est sûr. L'accès à l'objet cible lui-même est toutefois soumis aux garanties de sécurité des threads du type T.

Interaction

L'opérateur constitue le pendant constant de la surcharge non constante T * operator-> () noexcept [SWS_CORE_00923]. Alors que la variante non constante renvoie un pointeur modifiable T* [SWS_CORE_00923], cette version impose l'accès immuable à l'instance référencée.

Ce texte a été généré par une IA sur la base de la spécification AUTOSAR 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#86622bf0
Content hash
86622bf0
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

fonction Result< T &, E [SWS_CORE_00923] Upstream: RS_AP_00130

T * operator-> () noexcept;

Access the referred-to value.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 798448906bb1 Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La fonction membre operator-> permet l'accès direct à la valeur référencée d'une instance de ara::core::Result<T&, E> conformément à [SWS_CORE_00923]. La fonction nécessite le fichier d'en-tête #include "ara/core/result.h", ne prend aucun paramètre et renvoie un pointeur de type T* vers la valeur contenue ou référencée. L'appel est exécuté de manière synchrone et est déclaré avec noexcept.

Gestion des erreurs et conditions limites

Si l'objet ne contient aucune valeur au moment de l'accès, il s'agit d'une violation de la spécification sous la forme d'une ResultWithNoValue-Violation [SWS_CORE_00923]. Aucun message d'erreur DEM ou DET spécifique n'est indiqué pour cette fonction membre. En matière de concurrence et de tolérance aux pannes, l'opérateur est classé comme thread-safe ainsi que exception safe [SWS_CORE_00923]. Les appelants devraient vraisemblablement s'assurer avant l'appel que l'instance contient effectivement une valeur valide afin d'éviter le déclenchement de la violation. Question Q-a4b13cd34a40eb19 (ouverte)

Interaction

En interaction avec le template ara::core::Result<T&, E>, cette fonction membre non constante complète la surcharge constante correspondante const T * operator-> () const noexcept de [SWS_CORE_00922], laquelle est soumise aux mêmes règles de sécurisation mais fournit un pointeur protégé en écriture (const T*).

Cette note d'utilisation a été générée automatiquement par une IA sur la base de la spécification.

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

fonction 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#e911c3a0
Content hash
e911c3a0
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

fonction 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#32fba210
Content hash
32fba210
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

fonction 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#c5029258
Content hash
c5029258
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

fonction 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#528c1498
Content hash
528c1498
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

fonction 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#aa566a49
Content hash
aa566a49
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

fonction 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#7fb0490a
Content hash
7fb0490a
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

fonction 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#bc1fde21
Content hash
bc1fde21
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

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

fonction 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#5c7085cd
Content hash
5c7085cd
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

fonction 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#9c84b25f
Content hash
9c84b25f
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

fonction 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#c392c60e
Content hash
c392c60e
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

fonction 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#3de87eca
Content hash
3de87eca
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

fonction 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#75f34521
Content hash
75f34521
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

fonction 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#f9e6159b
Content hash
f9e6159b
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

fonction 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#2dec6fa2
Content hash
2dec6fa2
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

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

fonction 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#0f807ce6
Content hash
0f807ce6
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

fonction 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#a8f5b286
Content hash
a8f5b286
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

fonction 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#682acca8
Content hash
682acca8
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

fonction 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#ac0c8fb1
Content hash
ac0c8fb1
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

fonction 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#0b7c5cbb
Content hash
0b7c5cbb
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

fonction 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#3db66922
Content hash
3db66922
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

fonction 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#539a8bce
Content hash
539a8bce
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

fonction 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#c61ac795
Content hash
c61ac795
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

fonction 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#f6416d58
Content hash
f6416d58
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

fonction 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#bfd07aac
Content hash
bfd07aac
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

fonction 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#9d1be3bc
Content hash
9d1be3bc
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

fonction 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#a97b8fb3
Content hash
a97b8fb3
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

fonction 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#03814f1a
Content hash
03814f1a
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

fonction ValueOrThrow [SWS_CORE_00938] Upstream: RS_AP_00130

const T & ValueOrThrow () const noexcept(false);

Return the contained value or throw an exception.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 81dc031902ad Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction membre synchrone ValueOrThrow de la spécialisation de modèle ara::core::Result<T &, E> permet l'accès à la valeur contenue ([SWS_CORE_00938]). En cas d'opération réussie, elle renvoie une référence constante (const T &) sur la cible de référence encapsulée.

Si l'objet représente un cas d'erreur, la fonction lève l'exception associée à l'erreur spécifique (noexcept(false)) ([SWS_CORE_00938]). La spécification classe expressément la sécurité vis-à-vis des exceptions de l'opération comme non sûre vis-à-vis des exceptions (not exception safe) ([SWS_CORE_00938]).

Concernant la concurrence, la méthode est déclarée comme thread-safe ([SWS_CORE_00938]). Une condition aux limites essentielle concerne la configuration de compilation : si les exceptions C++ sont désactivées dans la chaîne d'outils du compilateur, ValueOrThrow ne participe pas à la résolution de surcharge ([SWS_CORE_00938]).

Au sein de l'en-tête ara/core/result.h, la fonction constitue le pendant constant de la surcharge de référence non constante [SWS_CORE_00949]. Pour les types de valeurs réguliers, des surcharges analogues pour les lvalues et les rvalues sont disponibles ([SWS_CORE_00766], [SWS_CORE_00769], [SWS_CORE_00778]), tandis que pour ara::core::Result<void, E>, une surcharge sans valeur de retour est définie ([SWS_CORE_00866]).

Cette note d'utilisation a été générée automatiquement sur la base de la spécification R25-11.

Guide de l'implémenteur à venir (complexité 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#1ba85f5c
Content hash
1ba85f5c
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

fonction ValueOrThrow [SWS_CORE_00949] Upstream: RS_AP_00130

T & ValueOrThrow () noexcept(false);

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

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : cc4ce28e1dcf Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La fonction membre ValueOrThrow de la spécialisation de modèle ara::core::Result<T&, E> sert à l'accès synchrone à la valeur de référence contenue [SWS_CORE_00949]. Elle n'accepte aucun paramètre et renvoie une référence non constante T& sur la valeur stockée [SWS_CORE_00949].

Si l'objet ne contient aucune valeur mais une erreur, l'opération n'est pas sûre vis-à-vis des exceptions (not exception safe) et déclenche une exception du type correspondant à l'erreur (noexcept(false)) [SWS_CORE_00949]. Une condition aux limites essentielle pour son utilisation réside dans le fait que la fonction ne participe pas à la résolution de surcharge lorsque les exceptions C++ sont désactivées dans la chaîne d'outils du compilateur [SWS_CORE_00949].

En ce qui concerne la concurrence, l'appel est spécifié comme thread-safe [SWS_CORE_00949]. Au sein de la spécialisation pour références ara::core::Result<T&, E>, il existe comme variante constante la surcharge [SWS_CORE_00938], qui fournit const T&. Ce comportement complète les surcharges du modèle principal ara::core::Result pour les références lvalue [SWS_CORE_00778], les références const-lvalue [SWS_CORE_00766] et les références rvalue [SWS_CORE_00769] ainsi que la spécialisation pour void [SWS_CORE_00866].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR.

Guide de l'implémenteur à venir (complexité 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#54a23371
Content hash
54a23371
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

fonction 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#3b05855e
Content hash
3b05855e
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

fonction 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#bd2fee77
Content hash
bd2fee77
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

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

fonction 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#dd7146a9
Content hash
dd7146a9
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

fonction 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#6c6756b8
Content hash
6c6756b8
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

fonction ~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#bd64ef9a
Content hash
bd64ef9a
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

Documentation des alias de type

alias de type 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#db3c00c4
Content hash
db3c00c4
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

alias de type 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#0e6c2990
Content hash
0e6c2990
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