DEENESPTFRRUARHIKOZHNL

क्लास ara::core::Result< void, E >

[SWS_CORE_00801] Upstream: RS_AP_00130

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

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

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

उपयोगकर्ता गाइडएआई जनित

मान-रहित ऑपरेशन के सफल समापन का संकेत देता है या उत्पन्न त्रुटि कोड को स्थानांतरित करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 8bbf74b21d56 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

मान-रहित ऑपरेशन के सफल समापन का संकेत देता है या उत्पन्न त्रुटि कोड को स्थानांतरित करता है।

क्लास ara::core::Result<void, E> रिटर्न मान के बिना संचालन के लिए Result पैटर्न को विशेषज्ञ बनाती है और या तो एक सफल समापन या एक त्रुटि का प्रतिनिधित्व करती है ([SWS_CORE_00811])। निष्पादन के बाद, कॉलर HasValue() ([SWS_CORE_00851]) या operator bool() के माध्यम से सफलता की स्थिति की जाँच करता है और त्रुटि के मामले में समाहित त्रुटि कारण तक पहुँचता है। एक बाध्यकारी सीमा शर्त के रूप में, त्रुटि प्रकार E प्रकार ara::core::ErrorCode के अनुरूप होना चाहिए, क्योंकि विचलित प्रकारों को कंपाइल समय पर ही अस्वीकार कर दिया जाता है।

संदर्भ

टेम्प्लेट क्लास ara::core::Result<void, E> उन ऑपरेशनों के लिए Result पैटर्न का एक आंशिक विशेषज्ञता प्रस्तुत करती है, जो सफलता के मामले में कोई रिटर्न मान (void) प्रेषित नहीं करते हैं, बल्कि केवल किसी क्रिया की सफलता या विफलता का संकेत देते हैं। प्रकार परिभाषा के अनुसार, मान प्रकार value_type हमेशा void के रूप में तय होता है ([SWS_CORE_00811]), जबकि error_type पैरामीटरयुक्त त्रुटि प्रकार E का प्रतिनिधित्व करता है ([SWS_CORE_00812])। प्रकार E के लिए कार्यात्मक निर्देश यह है कि ara::core::ErrorCode से किसी भी विचलन को कार्यान्वयन द्वारा कंपाइल त्रुटि के रूप में अस्वीकार किया जाना चाहिए।

AUTOSAR Adaptive Platform में, ara::core::Result<void, E> कॉलिंग घटकों और निष्पादक इंटरफ़ेस के बीच त्रुटि-प्रवण प्रक्रियाओं और नियंत्रण आदेशों के लिए एक मानकीकृत रिटर्न प्रकार के रूप में कार्य करता है। क्लासिक C++ अपवाद प्रबंधन के स्थान पर, यह क्लास एक संसाधन-कुशल, स्पष्ट त्रुटि संचरण प्रदान करती है, जो प्रत्यक्ष स्थिति क्वेरी के साथ-साथ कॉल पथ में कार्यात्मक फॉरवर्डिंग दोनों को सक्षम बनाती है।

जीवनचक्र

ara::core::Result<void, E> का एक इंस्टेंस अपने पूरे जीवनकाल में ठीक दो अलग-अलग स्थितियों में से एक में रहता है: मान-स्थिति (सफलता) या त्रुटि-स्थिति। एक void मान के साथ इनिशियलाइज़ेशन डिफ़ॉल्ट कंस्ट्रक्टर Result() ([SWS_CORE_00821]) या स्थिर फ़ैक्टरी विधि FromValue() ([SWS_CORE_00831]) के माध्यम से होता है। त्रुटि स्थिति में निर्माण के लिए त्रुटि प्रकार E के Lvalues और Rvalues के लिए स्पष्ट कंस्ट्रक्टर उपलब्ध हैं ([SWS_CORE_00823], [SWS_CORE_00824])। इसके अतिरिक्त, फ़ैक्टरी फ़ंक्शन FromError() त्रुटि Lvalues ([SWS_CORE_00834]), Rvalues ([SWS_CORE_00835]) से या पैरामीटर पैकेट से सीधे इन-प्लेस निर्माण ([SWS_CORE_00836]) के माध्यम से निर्माण की अनुमति देते हैं।

पहले से मौजूद इंस्टेंसेस को बाद में EmplaceValue() के माध्यम से मान-स्थिति में स्थानांतरित किया जा सकता है ([SWS_CORE_00843]) या EmplaceError() के माध्यम से सीधे एक नई त्रुटि सौंपी जा सकती है ([SWS_CORE_00844])। कॉपी और मूव कंस्ट्रक्टर ([SWS_CORE_00825], [SWS_CORE_00826]) तथा संबंधित असाइनमेंट ऑपरेटर ([SWS_CORE_00841], [SWS_CORE_00842]) इंस्टेंसेस के बीच स्थिति स्थानांतरित करते हैं; Swap() दो ऑब्जेक्ट्स की सामग्री का आदान-प्रदान करता है ([SWS_CORE_00845])।

डिस्ट्रक्टर ~Result() जीवनचक्र समाप्त करता है ([SWS_CORE_00827]) और यदि std::is_trivially_destructible<E>::value लागू होता है तो ट्रिविअल होता है। समवर्तीता के संबंध में, केवल पढ़ने वाले ऑपरेशन थ्रेड-सुरक्षित हैं, जबकि स्थिति-परिवर्तनकारी ऑपरेशन जैसे EmplaceValue(), EmplaceError(), असाइनमेंट या Swap() थ्रेड-सुरक्षित नहीं हैं।

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

स्थिति आरेख: मान और त्रुटि स्थिति के बीच जीवनचक्र और स्थिति संक्रमण। स्रोत: [SWS_CORE_00821], [SWS_CORE_00831], [SWS_CORE_00823], [SWS_CORE_00834], [SWS_CORE_00843], [SWS_CORE_00844]

उपयोग पथ

नियमित प्रक्रिया एक फ़ंक्शन कॉल से ara::core::Result<void, E> इंस्टेंस प्राप्त करने के साथ शुरू होती है। कॉलर परिणाम का मूल्यांकन HasValue() ([SWS_CORE_00851]) या रूपांतरण operator bool() ([SWS_CORE_00852]) के माध्यम से करता है। सफल निष्पादन के मामले में, Bind() ([SWS_CORE_00870]) के माध्यम से एक बाद के ऑपरेशन को कार्यात्मक रूप से जोड़ा जा सकता है: Bind() पास किए गए Callable को केवल तभी निष्पादित करता है जब इंस्टेंस में कोई मान हो, और उसका रूपांतरित परिणाम लौटाता है। यदि इसके बजाय कोई त्रुटि मौजूद है, तो कॉल किए गए फ़ंक्शन को छोड़ दिया जाता है और त्रुटि सामग्री को नए परिणाम में शामिल कर लिया जाता है।

जेनेरिक कोड में एकीकरण के लिए, यह विशेषज्ञता ऐसे इंटरफ़ेस प्रदान करती है जो औपचारिक रूप से सामान्य Result क्लास के अनुरूप होते हैं: Value() ([SWS_CORE_00855]), operator*() ([SWS_CORE_00853]) और ValueOr() ([SWS_CORE_00861]) कोई मान वापस नहीं करते हैं और No-Op विधियों के रूप में कार्य करते हैं। इसी तरह, Resolve() ([SWS_CORE_00867]) एक पास किए गए Callable को केवल तभी निष्पादित करता है जब कोई त्रुटि मौजूद हो, और सफलता के मामले में निष्क्रिय रहता है।

ऑपरेशन जाँच और आगे के प्रसंस्करण के लिए विशिष्ट उपयोग पथकॉलरDienstResult<void, E>Execute()FromValue() / FromError()Result<void, E>HasValue()boolaltHasValue() == true (Erfolg)Bind(f)HasValue() == false (Fehler)Error() / Err()Fehlerwert E / Optional<E>

अनुक्रम आरेख: कॉल, स्थिति जाँच और त्रुटि प्रबंधन या फॉरवर्डिंग का विशिष्ट क्रम। स्रोत: [SWS_CORE_00851], [SWS_CORE_00857], [SWS_CORE_00868], [SWS_CORE_00870]

त्रुटि परिदृश्य

यदि इंस्टेंस त्रुटि स्थिति में है, तो समाहित त्रुटि को Error() के ओवरलोड के माध्यम से एक संदर्भ के रूप में क्वेरी किया जा सकता है ([SWS_CORE_00857], [SWS_CORE_00858], [SWS_CORE_00876])। इस दौरान एक सख्त पूर्वशर्त लागू होती है: ऐसी इंस्टेंस पर Error() को कॉल करना जिसमें कोई त्रुटि नहीं है, ResultWithNoErrorViolation प्रस्तुत करता है। इसके विपरीत, त्रुटि स्थिति में एक इंस्टेंस पर Value() ([SWS_CORE_00855]) या operator*() ([SWS_CORE_00853]) को कॉल करना एक ResultWithNoValueViolation ट्रिगर करता है।

पूर्वशर्त उल्लंघनों से बचने के लिए, वैकल्पिक क्वेरी विधियाँ उपलब्ध हैं: Err() एक ara::core::Optional<E> में पैक की गई त्रुटि प्रदान करता है, जो सफलता के मामले में खाली रहता है ([SWS_CORE_00868], [SWS_CORE_00869])। ErrorOr() के साथ एक डिफ़ॉल्ट त्रुटि निर्दिष्ट की जा सकती है, जो तब लौटाई जाती है जब कोई त्रुटि समाहित न हो ([SWS_CORE_00863], [SWS_CORE_00864])। विशिष्ट त्रुटि मानों की जाँच के लिए, CheckError() आंतरिक त्रुटि की तुलना एक तुलना मान से करता है ([SWS_CORE_00865])।

यदि अपवाद-आधारित त्रुटि प्रबंधन को प्राथमिकता दी जाती है, तो त्रुटि होने पर ValueOrThrow() ([SWS_CORE_00866]) त्रुटि से जुड़े अपवाद को फेंकता है; मान मौजूद होने पर कॉल सामान्य रूप से वापस आ जाता है। यदि टूलचेन में C++ अपवाद निष्क्रिय हैं, तो ValueOrThrow() ओवरलोड रिज़ॉल्यूशन में भाग नहीं लेता है ([SWS_CORE_00866])।

यह मार्गदर्शिका Release R25-11 में विनिर्देश ara::core::Result<void, E> पर आधारित है और स्वचालित रूप से बनाई गई थी।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

2

टाइप उपनाम

2

क्लास आरेख

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

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

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

Result फ़ंक्शन 5

Construct a new Result with a void value

ओवरलोड Result 5
Result () noexcept; SWS_CORE_00821
explicit Result (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00823
explicit Result (E &&e) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00824
Result (const Result &other) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00825
Result (Result &&other) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00826
~Result फ़ंक्शन

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

~Result () noexcept;

मेथड

Bind फ़ंक्शन

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

template <typename F> auto Bind (F &&f) const -> <see below>;
CheckError फ़ंक्शन

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

template <typename G> bool CheckError (G &&error) const noexcept;
EmplaceError फ़ंक्शन

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

template <typename... Args> void EmplaceError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value);
EmplaceValue फ़ंक्शन

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

template <typename... Args> void EmplaceValue (Args &&... args) noexcept;
Err फ़ंक्शन 2

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

ओवरलोड Err 2
Optional< E > Err () const &noexcept(std::is_nothrow_constructible< Optional< E >, const E &>::value); SWS_CORE_00868
Optional< E > Err () &&noexcept(std::is_nothrow_constructible< Optional< E >, E && >::value); SWS_CORE_00869
Error फ़ंक्शन 3

Access the contained error.

ओवरलोड Error 3
const E & Error () const & noexcept; SWS_CORE_00857
E && Error () &&noexcept; SWS_CORE_00858
E & Error () & noexcept; SWS_CORE_00876
ErrorOr फ़ंक्शन 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

ओवरलोड ErrorOr 2
template <typename G> E ErrorOr (G &&defaultError) const &noexcept(std::is_nothrow_copy_ constructible< E >::value &&std::is_nothrow_constructible< E, G &&>::value); SWS_CORE_00863
template <typename G> E ErrorOr (G &&defaultError) &&noexcept(std::is_nothrow_move_ constructible< E >::value &&std::is_nothrow_constructible< E, G && >::value); SWS_CORE_00864
FromError फ़ंक्शन 3

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

ओवरलोड FromError 3
static Result FromError (const E &e) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00834
static Result FromError (E &&e) noexcept(std::is_nothrow_move_ constructible< E >::value); SWS_CORE_00835
template <typename... Args> static Result FromError (Args &&... args) noexcept(std::is_nothrow_ constructible< E, Args... >::value); SWS_CORE_00836
FromValue फ़ंक्शन

Build a new Result with void as value

static Result FromValue () noexcept;
HasValue फ़ंक्शन

Check whether *this contains a value.

bool HasValue () const noexcept;
Resolve फ़ंक्शन

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

template <typename F> void Resolve (F &&f) const;
Swap फ़ंक्शन

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 फ़ंक्शन

This function only exists for helping with generic programming

void Value () const noexcept;
ValueOr फ़ंक्शन

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

template <typename U> void ValueOr (U &&defaultValue) const noexcept;
ValueOrThrow फ़ंक्शन

Return the contained value or throw an exception.

void ValueOrThrow () const noexcept(false);

ऑपरेटर

operator bool फ़ंक्शन

Check whether *this contains a value

explicit operator bool () const noexcept;
operator* फ़ंक्शन

Access the contained value.

void operator* () const noexcept;
operator= फ़ंक्शन 2

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

ओवरलोड = 2
Result & operator= (const Result &other) noexcept(std::is_nothrow_ copy_constructible< E >::value &&std::is_nothrow_copy_assignable< E >::value); SWS_CORE_00841

टाइप उपनाम

error_type टाइप उपनाम

Type alias for the type E of errors

using error_type = E;
value_type टाइप उपनाम

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

using value_type = void;

मेथड का प्रलेखन

फ़ंक्शन Bind [SWS_CORE_00870] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: c3e549b2f1ca उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग और कॉल संदर्भ

ara/core/result.h से विशेषज्ञता ara::core::Result<void, E> का सदस्य फ़ंक्शन Bind परिणाम मान के बिना एक सफल इंस्टेंस पर अनुवर्ती गणना करता है [SWS_CORE_00870]। यदि कोई मान मौजूद है, तो पास किए गए Callable f को समकालिक रूप से और बिना पैरामीटर के कॉल किया जाता है। Callable को इंटरफ़ेस Result<XXX, E> f() या XXX f() को पूरा करना होगा, जहाँ XXX, Result के लिए एक अनुमत प्रकार होना चाहिए [SWS_CORE_00870]। यदि Callable एक Result देता है, तो रिटर्न प्रकार decltype(f()) से मेल खाता है; यदि यह सीधे XXX लौटाता है, तो परिणाम Result<decltype(f()), E> के रूप में पैक किया जाता है [SWS_CORE_00870]।

त्रुटि हैंडलिंग और समवर्तीता

यदि इंस्टेंस में कोई मान नहीं है, तो एक नया Result<XXX, E> लौटाया जाता है, जिसमें मूल त्रुटि कॉपी की जाती है [SWS_CORE_00870]। व्याख्या: इस मामले में, Callable f का निष्पादन नहीं होना चाहिए। प्रश्न Q-6288a7106d2730c3 (खुला) निष्पादन सुरक्षा के संबंध में, फ़ंक्शन को not exception safe माना जाता है [SWS_CORE_00870]। थ्रेड-सुरक्षा सशर्त (conditional) है और पूरी तरह से पास किए गए Callable f की थ्रेड-सुरक्षा पर निर्भर करती है [SWS_CORE_00870]।

संबंधित आवश्यकताओं के साथ परस्पर क्रिया

[SWS_CORE_00768] और [SWS_CORE_00941] के प्राथमिक Result<T, E> फ़ंक्शंस के विपरीत, जहाँ Callable f(const T&) के माध्यम से इंस्टेंस का मान प्राप्त करता है, वर्तमान ओवरलोड [SWS_CORE_00870] ऑपरेशनों को void परिणामों से बांधता है और इसलिए एक पैरामीटर रहित Callable की अपेक्षा करता है।

यह उपयोग नोट AUTOSAR विनिर्देश संस्करण R25-11 के आधार पर स्वचालित रूप से उत्पन्न किया गया था।

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

Template-Parameter

ParameterBeschreibung
Fthe type of the Callable f

Parameter (in)

ParameterBeschreibung
fthe Callable

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00870
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00870@rel:R25-11#114933c8
Content hash
114933c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00870
Status: valid/unmigrated Version: rel:R25-11#e97c3561 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00870@rel:R25-11#e97c3561
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#609a669f2026-09-30
  • R20-11rel:R20-11#54a19d8c2026-10-14
  • R21-11rel:R21-11#54a19d8c2026-10-14
  • R22-11rel:R22-11#82ad4f452026-10-14
  • R23-11rel:R23-11#0661a5ee2026-10-14
  • R24-11rel:R24-11#1de461af2026-10-14
  • R25-11rel:R25-11#e97c35612026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन EmplaceError [SWS_CORE_00844] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 95d51174d109 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Result<void, E> का सदस्य फ़ंक्शन EmplaceError पास किए गए तर्कों args [SWS_CORE_00844] से मौजूदा इंस्टेंस के भीतर सीधे इन-प्लेस एक नया त्रुटि मान समकालिक रूप से निर्मित करता है। हेडर फ़ाइल ara/core/result.h के माध्यम से प्रदान किए गए टेम्पलेट फ़ंक्शन का कोई रिटर्न मान नहीं होता है और यह सीधे मौके पर ही प्रकार E के त्रुटि ऑब्जेक्ट को प्रारंभ करता है [SWS_CORE_00844]।

त्रुटि प्रबंधन और अपवाद-सुरक्षा के संबंध में, ऑपरेशन को सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) के रूप में वर्गीकृत किया गया है [SWS_CORE_00844]। विनिर्देशक noexcept(std::is_nothrow_constructible<E, Args...>::value) के माध्यम से अपवाद-मुक्त होने की गारंटी दी जाती है, बशर्ते प्रकार E को प्रकारों Args... के साथ बिना किसी अपवाद के निर्मित किया जा सके [SWS_CORE_00844]।

समवर्तीता और बाधाओं के संदर्भ में, सदस्य फ़ंक्शन को थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में परिभाषित किया गया है [SWS_CORE_00844]। यदि एकाधिक थ्रेड्स एक ही Result इंस्टेंस को समवर्ती रूप से एक्सेस करते हैं, तो असंगठित स्थिति परिवर्तनों को रोकने के लिए संभवतः एक बाहरी सिंक्रोनाइज़ेशन तंत्र की आवश्यकता होती है। प्रश्न Q-ffcb8ced860f6080 (खुला)

मॉड्यूल core के समग्र संदर्भ में, [SWS_CORE_00844] सीधे उसी फ़ंक्शन के अन्य वेरिएंट्स से मेल खाता है: प्राथमिक टेम्पलेट ara::core::Result के लिए समान व्यवहार [SWS_CORE_00744] के तहत निर्दिष्ट है, जबकि संदर्भ प्रकारों ara::core::Result<T&, E> के लिए आवश्यकता [SWS_CORE_00916] समान हस्ताक्षर और शब्दार्थ निर्धारित करती है।

यह उपयोग नोट AUTOSAR R25-11 विनिर्देश के आधार पर एक AI द्वारा जनरेट किया गया था।

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

Template-Parameter

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

Parameter (in)

ParameterBeschreibung
argsthe arguments used for constructing the error

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00844
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00844@rel:R25-11#54fcad64
Content hash
54fcad64
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00844
Status: valid/unmigrated Version: rel:R25-11#88f4eda1 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00844@rel:R25-11#88f4eda1
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bf2f5b962026-09-30
  • R19-11rel:R19-11#4c83aff42026-10-14
  • R20-11rel:R20-11#458451b42026-10-14
  • R21-11rel:R21-11#a69891002026-10-14
  • R22-11rel:R22-11#139e999d2026-10-14
  • R23-11rel:R23-11#5bb406fd2026-10-14
  • R24-11rel:R24-11#88f4eda12026-10-14
  • R25-11rel:R25-11#88f4eda12026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन EmplaceValue [SWS_CORE_00843] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 615b498206aa उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग और कॉल संदर्भ

टेम्पलेट सदस्य फ़ंक्शन EmplaceValue मॉड्यूल core से संबंधित है और विशेषज्ञता ara::core::Result<void, E> के लिए हेडर फ़ाइल #include "ara/core/result.h" के माध्यम से परिभाषित किया गया है [SWS_CORE_00843]। इसका उद्देश्य पास किए गए तर्कों args के आधार पर मौजूदा इंस्टेंस में सीधे एक नया मान बनाना या सेट करना है [SWS_CORE_00843]। निष्पादन समकालिक रूप से होता है और कोई रिटर्न मान नहीं देता है (void) [SWS_CORE_00843]। चूंकि विशेषज्ञता का मान प्रकार void है, कॉल इंस्टेंस को एक सफल स्थिति में परिवर्तित करता है; व्याख्या के रूप में, args को स्वीकार करना मुख्य रूप से प्राथमिक टेम्पलेट वर्ग के साथ सामान्य हस्ताक्षर अनुकूलता के लिए होना चाहिए। प्रश्न Q-b53ca5908f2517fb (खुला)

त्रुटि प्रबंधन और अपवाद सुरक्षा

फ़ंक्शन को noexcept के रूप में घोषित किया गया है और इसमें विनिर्देश exception safe है [SWS_CORE_00843]। यह कोई त्रुटि कोड नहीं लौटाता है और कोई अपवाद नहीं फेंकता है। यदि Result ऑब्जेक्ट पहले किसी त्रुटि स्थिति में था, तो मान डालने पर इसे अधिलेखित कर दिया जाता है।

समवर्तीता और प्रतिबंध

ऑपरेशन को गैर-थ्रेड-सुरक्षित (not thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_00843]। ara::core::Result के समान इंस्टेंस पर संभावित समवर्ती रीड या राइट एक्सेस के मामले में, कॉलर द्वारा बाहरी सिंक्रोनाइज़ेशन अनिवार्य रूप से आवश्यक है।

संबंधित विनिर्देशों के साथ परस्पर क्रिया

[SWS_CORE_00743] में ara::core::Result<T, E> के लिए EmplaceValue के सामान्य कार्यान्वयन की तुलना में, जो केवल सशर्त रूप से अपवाद-सुरक्षित है और जिसका noexcept गुण std::is_nothrow_constructible<T, Args...>::value पर निर्भर करता है, [SWS_CORE_00843] के अनुसार void विशेषज्ञता एक अप्रतिबंधित noexcept और अपवाद-सुरक्षा गारंटी प्रदान करती है।

यह उपयोग संबंधी नोट R25-11 के लिए AUTOSAR विनिर्देश के आधार पर स्वचालित रूप से उत्पन्न किया गया था।

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

Template-Parameter

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

Parameter (in)

ParameterBeschreibung
argsthe arguments used for constructing the value

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00843
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00843@rel:R25-11#4717ac3a
Content hash
4717ac3a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00843
Status: valid/unmigrated Version: rel:R25-11#96a7737d Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00843@rel:R25-11#96a7737d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#129ba0572026-09-30
  • R19-11rel:R19-11#b323d52c2026-10-14
  • R20-11rel:R20-11#93b34c042026-10-14
  • R21-11rel:R21-11#89a72b1b2026-10-14
  • R22-11rel:R22-11#a8be1c612026-10-14
  • R23-11rel:R23-11#34d2947b2026-10-14
  • R24-11rel:R24-11#ab2f88f32026-10-14
  • R25-11rel:R25-11#96a7737d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Err [SWS_CORE_00868] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: c47cf49ad139 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

क्लास विशेषज्ञता ara::core::Result<void, E> का सदस्य फ़ंक्शन Err() const & संभवतः समाहित त्रुटि स्थिति ([SWS_CORE_00868]) के समकालिक निरूपण की अनुमति देता है। इसे हेडर फ़ाइल ara/core/result.h के माध्यम से घोषित किया जाता है और कॉल करते समय किसी इनपुट पैरामीटर ([SWS_CORE_00868]) की आवश्यकता नहीं होती है। रिटर्न मान के रूप में, यह फ़ंक्शन एक ara::core::Optional<E> प्रदान करता है, जिसमें ठोस त्रुटि मान होता है यदि ऑब्जेक्ट किसी त्रुटि का प्रतिनिधित्व करता है ([SWS_CORE_00868])।

समवर्ती और सीमा शर्तों के संबंध में, ऑपरेशन को स्पष्ट रूप से thread-safe ([SWS_CORE_00868]) के रूप में निर्दिष्ट किया गया है। अपवाद सुरक्षा (exception safety) के संबंध में, विधि को सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) ([SWS_CORE_00868]) माना जाता है। noexcept-गारंटी तभी लागू होती है जब std::is_nothrow_constructible<Optional<E>, const E&>::value संतुष्ट हो ([SWS_CORE_00868])।

इंटरफ़ेस के संयोजन में, rvalue-ओवरलोड Err() && ([SWS_CORE_00869]) ara::core::Result<void, E> के भीतर इस फ़ंक्शन को पूरक करता है। lvalue और rvalue ओवरलोड के तुलनीय जोड़े प्राथमिक टेम्पलेट ara::core::Result<T, E> ([SWS_CORE_00772], [SWS_CORE_00773]) के साथ-साथ संदर्भ विशेषज्ञता ara::core::Result<T&, E> ([SWS_CORE_00931], [SWS_CORE_00932]) के लिए भी उपलब्ध हैं।

यह पाठ AUTOSAR विनिर्देश के आधार पर एक AI द्वारा तैयार किया गया था।

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

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00868
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00868@rel:R25-11#11b31dc2
Content hash
11b31dc2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00868
Status: valid/unmigrated Version: rel:R25-11#af27147a Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00868@rel:R25-11#af27147a
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#144570032026-09-30
  • R20-11rel:R20-11#1575a8882026-10-14
  • R21-11rel:R21-11#1575a8882026-10-14
  • R22-11rel:R22-11#f054b0a72026-10-14
  • R23-11rel:R23-11#85d1a0ea2026-10-14
  • R24-11rel:R24-11#0001f71c2026-10-14
  • R25-11rel:R25-11#af27147a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Err [SWS_CORE_00869] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 5bc8fa1204ae उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Result< void, E > का सदस्य फ़ंक्शन Err() && संभवतः उपस्थित त्रुटि को निकालता है और इसे ara::core::Optional< E > के रूप में लौटाता है [SWS_CORE_00869]। यह हेडर फ़ाइल ara/core/result.h [SWS_CORE_00869] के माध्यम से शामिल किया गया है।

उपयोग और सिमेंटिक्स के संबंध में निम्नलिखित गुण लागू होते हैं:

  • कॉल संदर्भ और पैरामीटर: फ़ंक्शन कोई पैरामीटर नहीं लेता है और एक Rvalue-योग्य विधि के रूप में केवल ara::core::Result< void, E > [SWS_CORE_00869] के Rvalue इंस्टेंस से बंधता है। व्याख्या: Rvalue-सिमेंटिक्स (&&) के कारण, कॉल किए जाने पर त्रुटि ऑब्जेक्ट को संभवतः लौटाए गए Optional में स्थानांतरित कर दिया जाना चाहिए। प्रश्न Q-b5a0098f77686ca6 (खुला)
  • रिटर्न मान: परिणामी ara::core::Optional< E > में त्रुटि मान शामिल होता है, यदि ऑब्जेक्ट में ऐसा कोई मान मौजूद हो [SWS_CORE_00869]।
  • अपवाद सुरक्षा और समवर्तीता: ऑपरेशन को सशर्त रूप से अपवाद सुरक्षित (conditionally exception safe) के रूप में वर्गीकृत किया गया है और यदि std::is_nothrow_constructible< Optional< E >, E && >::value संतुष्ट होता है तो यह कोई अपवाद नहीं फेंकता है [SWS_CORE_00869]। इसके अतिरिक्त, फ़ंक्शन को थ्रेड-सुरक्षित (thread-safe) निर्दिष्ट किया गया है [SWS_CORE_00869]।

इंटरफेस के पारस्परिक प्रभाव में, यह Rvalue-वेरिएंट उसी विशेषज्ञता [SWS_CORE_00868] के संगत Lvalue-ओवरलोड Err() const & का पूरक है। प्राथमिक टेम्पलेट ara::core::Result [SWS_CORE_00772], [SWS_CORE_00773] के साथ-साथ संदर्भ विशेषज्ञता ara::core::Result< T &, E > [SWS_CORE_00931], [SWS_CORE_00932] के लिए Lvalue और Rvalue विधियों के समरूप जोड़े मौजूद हैं।

यह पाठ एक AI द्वारा तैयार किया गया था और यह AUTOSAR R25-11 के विनिर्देश स्तर पर आधारित है।

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

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00869
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00869@rel:R25-11#3e6ff239
Content hash
3e6ff239
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00869
Status: valid/unmigrated Version: rel:R25-11#b4c022c9 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00869@rel:R25-11#b4c022c9
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1a48a8702026-09-30
  • R20-11rel:R20-11#2d7a35ca2026-10-14
  • R21-11rel:R21-11#cf11993e2026-10-14
  • R22-11rel:R22-11#b9330f822026-10-14
  • R23-11rel:R23-11#d9d839322026-10-14
  • R24-11rel:R24-11#520c6e5d2026-10-14
  • R25-11rel:R25-11#b4c022c92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Error [SWS_CORE_00857] Upstream: RS_AP_00130

const E & Error () const & noexcept;

Access the contained error.

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

Rückgabewert

TypBeschreibung
const E &a const reference to the contained error

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

Record
AUTOSAR/AP/record/SWS_CORE_00857
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00857@rel:R25-11#c0896f53
Content hash
c0896f53
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00857
Status: valid/unmigrated Version: rel:R25-11#387fd43b Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00857@rel:R25-11#387fd43b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0eaf7ea52026-09-30
  • R19-11rel:R19-11#b57e9caa2026-10-14
  • R20-11rel:R20-11#4844eb4b2026-10-14
  • R21-11rel:R21-11#4844eb4b2026-10-14
  • R22-11rel:R22-11#0b0dee212026-10-14
  • R23-11rel:R23-11#36f4e40e2026-10-14
  • R24-11rel:R24-11#387fd43b2026-10-14
  • R25-11rel:R25-11#387fd43b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Error [SWS_CORE_00858] Upstream: RS_AP_00130

E && Error () &&noexcept;

Access the contained error.

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

Rückgabewert

TypBeschreibung
E &&an rvalue reference to the contained error

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

Record
AUTOSAR/AP/record/SWS_CORE_00858
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00858@rel:R25-11#756296bf
Content hash
756296bf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00858
Status: valid/unmigrated Version: rel:R25-11#98daaaa9 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00858@rel:R25-11#98daaaa9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#450345282026-09-30
  • R19-11rel:R19-11#d25659962026-10-14
  • R20-11rel:R20-11#2c3cfda32026-10-14
  • R21-11rel:R21-11#bfc21da42026-10-14
  • R22-11rel:R22-11#85b4e2f12026-10-14
  • R23-11rel:R23-11#dd2260e22026-10-14
  • R24-11rel:R24-11#98daaaa92026-10-14
  • R25-11rel:R25-11#98daaaa92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Error [SWS_CORE_00876] Upstream: RS_AP_00130

E & Error () & noexcept;

Access the contained error.

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

Rückgabewert

TypBeschreibung
E&a reference to the contained error

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

Record
AUTOSAR/AP/record/SWS_CORE_00876
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00876@rel:R25-11#e5f9093b
Content hash
e5f9093b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00876
Status: valid/unmigrated Version: rel:R25-11#048abd13 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00876@rel:R25-11#048abd13
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#5dfbc7c52026-09-30
  • R23-11rel:R23-11#f6e4dde02026-10-14
  • R24-11rel:R24-11#048abd132026-10-14
  • R25-11rel:R25-11#048abd132026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ErrorOr [SWS_CORE_00863] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 478ce836109b उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Result<void, E> का टेम्पलेट सदस्य फ़ंक्शन ErrorOr [SWS_CORE_00863] के अनुसार शामिल त्रुटि या एक वैकल्पिक डिफ़ॉल्ट त्रुटि को तुल्यकालिक रूप से पुनः प्राप्त करने का काम करता है। यदि इंस्टेंस में पहले से ही प्रकार E का एक त्रुटि मान शामिल है, तो इसे अपरिवर्तित वापस कर दिया जाता है; अन्यथा, पास किए गए पैरामीटर defaultError को static_cast के माध्यम से त्रुटि प्रकार E में परिवर्तित किया जाता है और वापस लौटाया जाता है [SWS_CORE_00863]।

त्रुटि प्रबंधन और कॉनक्रेन्सी के संबंध में निम्नलिखित गुण लागू होते हैं:

  • अपवाद सुरक्षा: कॉल सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) है और इसे noexcept के रूप में घोषित किया गया है, बशर्ते कि E का कॉपी निर्माण और सार्वभौमिक संदर्भ प्रकार G&& से E का निर्माण दोनों गैर-फेंकने वाले (non-throwing) हों (std::is_nothrow_copy_constructible<E>::value && std::is_nothrow_constructible<E, G&&>::value) [SWS_CORE_00863]।
  • थ्रेड-सुरक्षा: ऑपरेशन को थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_00863]। चूंकि यह एक स्थिर lvalue संदर्भ ओवरलोड (const &) है, इसलिए उसी इंस्टेंस पर एक साथ पढ़ने की पहुंच सुरक्षित होनी चाहिए। प्रश्न Q-f95402c2e79ef590 (खुला)
  • हेडर: फ़ंक्शन हेडर फ़ाइल #include "ara/core/result.h" [SWS_CORE_00863] के माध्यम से प्रदान किया जाता है।

ara::core::Result के भीतर परस्पर क्रिया में, [SWS_CORE_00863] शून्य परिणामों के लिए rvalue ओवरलोड [SWS_CORE_00864] के लिए lvalue-स्थिर समकक्ष बनाता है, जिसमें त्रुटि std::move के माध्यम से प्रेषित की जाती है। [SWS_CORE_00763] और [SWS_CORE_00764] के माध्यम से प्राथमिक क्लास टेम्पलेट Result<T, E> के लिए और [SWS_CORE_00935] और [SWS_CORE_00936] के माध्यम से संदर्भ प्रकारों Result<T &, E> के लिए समतुल्य ओवरलोड मौजूद हैं।

यह पाठ AUTOSAR R25-11 विनिर्देश के आधार पर एक AI द्वारा जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Template-Parameter

ParameterBeschreibung
Gthe type of defaultError

Parameter (in)

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

Rückgabewert

TypBeschreibung
Ethe error

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

Record
AUTOSAR/AP/record/SWS_CORE_00863
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00863@rel:R25-11#7b2b6b08
Content hash
7b2b6b08
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00863
Status: valid/unmigrated Version: rel:R25-11#cf2c41ab Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00863@rel:R25-11#cf2c41ab
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c418147a2026-09-30
  • R19-11rel:R19-11#89eb2b042026-10-14
  • R20-11rel:R20-11#83a977a92026-10-14
  • R21-11rel:R21-11#83a977a92026-10-14
  • R22-11rel:R22-11#c4caa8152026-10-14
  • R23-11rel:R23-11#8f9486662026-10-14
  • R24-11rel:R24-11#aea7d19f2026-10-14
  • R25-11rel:R25-11#cf2c41ab2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ErrorOr [SWS_CORE_00864] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 4d76cf06b254 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग और सिमेंटिक्स

विशेषज्ञता ara::core::Result<void, E> का सदस्य फ़ंक्शन ErrorOr एक rvalue इंस्टेंस ([SWS_CORE_00864]) से किसी त्रुटि को तुल्यकालिक रूप से पढ़ने का काम करता है। यदि विधि को कॉल किया जाता है और Result ऑब्जेक्ट में कोई त्रुटि होती है, तो इसे std::move के माध्यम से प्रकार E के रिटर्न मान में ले जाया (move किया) जाता है। दूसरी ओर, यदि कोई सफल परिणाम है, तो पास किए गए तर्क defaultError को static_cast के माध्यम से E में परिवर्तित किया जाता है और वापस लौटाया जाता है ([SWS_CORE_00864])।

त्रुटि प्रबंधन और अपवाद सुरक्षा

फ़ंक्शन स्वयं DET या DEM जैसी क्लासिक AUTOSAR त्रुटि रिपोर्टों को ट्रिगर नहीं करता है। अपवाद प्रबंधन के संबंध में, ErrorOr सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) है। यह एक noexcept अभिव्यक्ति के माध्यम से सुरक्षित है, बशर्ते कि दोनों त्रुटि प्रकार E बिना किसी अपवाद के स्थानांतरित करने योग्य हो (std::is_nothrow_move_constructible<E>::value) और E को डिफ़ॉल्ट त्रुटि के सार्वभौमिक संदर्भ प्रकार G&& से बिना किसी अपवाद के बनाया जा सके ([SWS_CORE_00864])।

समवर्तीता और परस्पर क्रिया

विधि को thread-safe के रूप में निर्दिष्ट किया गया है ([SWS_CORE_00864])। rvalue संदर्भ योग्यता (ref-qualifier) && के कारण, कॉल के लिए आवश्यक है कि Result ऑब्जेक्ट को rvalue के रूप में पास किया जाए।

मॉड्यूल core में यह Rvalue-वेरिएंट अन्य रूपों के संयोजन में उपलब्ध है:

  • ara::core::Result<void, E> के लिए Lvalue-काउंटरपार्ट के रूप में const &-ओवरलोड [SWS_CORE_00863] मौजूद है, जो त्रुटि को स्थानांतरित करने के बजाय कॉपी करता है।
  • मान और संदर्भ परिणामों के लिए, विशेषज्ञताएं ara::core::Result<T, E> ([SWS_CORE_00763], [SWS_CORE_00764]) और ara::core::Result<T&, E> ([SWS_CORE_00935], [SWS_CORE_00936]) कॉपी और मूव सिमेंटिक्स के लिए समान दोहरी सिग्नेचर संरचना प्रदान करती हैं।

यह उपयोग संबंधी नोट AUTOSAR Adaptive R25-11 की विनिर्देश आवश्यकताओं के आधार पर स्वचालित रूप से उत्पन्न किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Template-Parameter

ParameterBeschreibung
Gthe type of defaultError

Parameter (in)

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

Rückgabewert

TypBeschreibung
Ethe error

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

Record
AUTOSAR/AP/record/SWS_CORE_00864
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00864@rel:R25-11#6af84b62
Content hash
6af84b62
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00864
Status: valid/unmigrated Version: rel:R25-11#3a5225ab Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00864@rel:R25-11#3a5225ab
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#c80a389f2026-09-30
  • R20-11rel:R20-11#7a0784612026-10-14
  • R21-11rel:R21-11#2ded9bb32026-10-14
  • R22-11rel:R22-11#68608ae42026-10-14
  • R23-11rel:R23-11#cf289b372026-10-14
  • R24-11rel:R24-11#6f41fd292026-10-14
  • R25-11rel:R25-11#3a5225ab2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन FromError [SWS_CORE_00834] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: faa781b78220 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

स्टैटिक फ़ंक्शन FromError टेम्पलेट स्पेशलाइज़ेशन ara::core::Result<void, E> का एक घटक है और इसे हेडर फ़ाइल ara/core/result.h के माध्यम से शामिल किया जाता है [SWS_CORE_00834]। यह पहले से मौजूद त्रुटि ऑब्जेक्ट से एक नया Result निर्मित करने के लिए एक समकालिक फ़ैक्टरी मेथड के रूप में कार्य करता है [SWS_CORE_00834]।

  • पैरामीटर: इनपुट पैरामीटर e त्रुटि को कॉन्सटेंट lvalue संदर्भ (const E &) के रूप में प्राप्त करता है [SWS_CORE_00834]।
  • रिटर्न मान: Result का एक उदाहरण लौटाता है, जिसमें पास की गई त्रुटि e शामिल होती है [SWS_CORE_00834]।

त्रुटि प्रबंधन और अपवाद-सुरक्षा

विनिर्देश कोई विशिष्ट त्रुटि कोड परिभाषित नहीं करता है और DET या DEM को किसी संदेश का प्रावधान नहीं करता है [SWS_CORE_00834]। यह फ़ंक्शन सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) है: यह ठीक तभी noexcept के रूप में गारंटीकृत होता है जब त्रुटि प्रकार E नॉन-थ्रोइंग प्रतिलिपि-योग्य हो (std::is_nothrow_copy_constructible<E>::value) [SWS_CORE_00834]।

संगामिति

इस कॉल को thread-safe के रूप में वर्गीकृत किया गया है [SWS_CORE_00834]। व्याख्या: थ्रेड-सुरक्षा संभवतः ऑब्जेक्ट निर्माण के आंतरिक प्रवाह से संबंधित है, हालांकि यह पूर्वधारणा रखती है कि प्रतिलिपि प्रक्रिया के दौरान संदर्भित स्रोत ऑब्जेक्ट e को अन्य थ्रेड्स द्वारा संशोधित नहीं किया जाएगा। प्रश्न Q-639cbb5cf8a64a0c (खुला)

इंटरैक्शन

स्पेशलाइज़ेशन ara::core::Result<void, E> के भीतर, rvalue संदर्भों (E&&) [SWS_CORE_00835] के लिए तथा पैरामीटर पैक [SWS_CORE_00836] के माध्यम से इन-प्लेस निर्माण के लिए ओवरलोड इस फ़ंक्शन के पूरक हैं; दोनों को भिन्न रूप से not thread-safe घोषित किया गया है। तदनुरूपी ओवरलोड अपूर्ण रूप से विशिष्टीकृत प्रकार ara::core::Result ([SWS_CORE_00734], [SWS_CORE_00735], [SWS_CORE_00736]) और संदर्भ स्पेशलाइज़ेशन ([SWS_CORE_00905], [SWS_CORE_00906], [SWS_CORE_00907]) के लिए भी मौजूद हैं।

यह पाठ एक AI द्वारा तैयार किया गया था। AUTOSAR विनिर्देश ही निर्णायक हैं।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Parameter (in)

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

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00834
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00834@rel:R25-11#c1f57e25
Content hash
c1f57e25
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00834
Status: valid/unmigrated Version: rel:R25-11#3daf7e83 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00834@rel:R25-11#3daf7e83
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2713965d2026-09-30
  • R19-11rel:R19-11#988752d82026-10-14
  • R20-11rel:R20-11#a2ee7dff2026-10-14
  • R21-11rel:R21-11#f962d2622026-10-14
  • R22-11rel:R22-11#144f1dcf2026-10-14
  • R23-11rel:R23-11#80f1e27d2026-10-14
  • R24-11rel:R24-11#b400d0032026-10-14
  • R25-11rel:R25-11#3daf7e832026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन FromError [SWS_CORE_00835] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 0aceeedf36f2 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

स्टैटिक फ़ंक्शन FromError rvalue के रूप में पास किए गए एक त्रुटि ऑब्जेक्ट e से ara::core::Result<void, E> का एक नया इंस्टेंस समकालिक रूप से उत्पन्न करता है [SWS_CORE_00835]। यह फ़ंक्शन हेडर ara/core/result.h में परिभाषित है और एक ara::core::Result लौटाता है, जिसमें त्रुटि मान शामिल होता है [SWS_CORE_00835]।

त्रुटि हैंडलिंग और समवर्तीता

यह ऑपरेशन सशर्त अपवाद-सुरक्षा (conditionally exception safe) प्रदान करता है: यह noexcept के माध्यम से अपवाद-मुक्त होने की गारंटी देता है, बशर्ते कि त्रुटि प्रकार E में नॉन-थ्रोइंग मूव कंस्ट्रक्टर हो (std::is_nothrow_move_constructible<E>::value) [SWS_CORE_00835]। फ़ंक्शन को थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में वर्गीकृत किया गया है [SWS_CORE_00835]। व्याख्या: इसका अर्थ संभवतः यह होना चाहिए कि मूव की जाने वाली rvalue ऑब्जेक्ट को अन्य थ्रेड्स से समानांतर एक्सेस से सुरक्षित रखा जाना चाहिए। प्रश्न Q-be29e8c3a7412b7a (खुला)

इंटरैक्शन

स्पेशलाइज़ेशन ara::core::Result<void, E> के भीतर, यह ओवरलोड lvalue कॉपी फ़ंक्शन [SWS_CORE_00834] और पैरामीटर पैक्स [SWS_CORE_00836] के माध्यम से इन-प्लेस निर्माण का मूव-समकक्ष प्रस्तुत करता है। मॉड्यूल core में मान प्रकारों [SWS_CORE_00735] और संदर्भों [SWS_CORE_00906] के लिए भी तुलनीय rvalue ओवरलोड मौजूद हैं, जो संबंधित lvalue ([SWS_CORE_00734], [SWS_CORE_00905]) और इन-प्लेस वेरिएंट्स ([SWS_CORE_00736], [SWS_CORE_00907]) द्वारा पूरक हैं।

यह पाठ AI द्वारा तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Parameter (in)

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

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00835
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00835@rel:R25-11#528973ec
Content hash
528973ec
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00835
Status: valid/unmigrated Version: rel:R25-11#145c5d21 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00835@rel:R25-11#145c5d21
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#67ee0fc22026-09-30
  • R19-11rel:R19-11#764a522a2026-10-14
  • R20-11rel:R20-11#105b1f662026-10-14
  • R21-11rel:R21-11#105b1f662026-10-14
  • R22-11rel:R22-11#9e1a1db32026-10-14
  • R23-11rel:R23-11#018e31822026-10-14
  • R24-11rel:R24-11#355a98222026-10-14
  • R25-11rel:R25-11#145c5d212026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन FromError [SWS_CORE_00836] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 8b596041d3f0 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

[SWS_CORE_00836] के अनुसार स्टैटिक टेम्पलेट फ़ंक्शन FromError, स्पेशलाइज़ेशन ara::core::Result<void, E> के भीतर एक त्रुटियुक्त Result ऑब्जेक्ट उत्पन्न करने का काम करता है, जिसका त्रुटि इंस्टेंस प्रकार E सीधे पास किए गए तर्कों (आर्ग्युमेंट्स) args से उसी स्थान पर (“in-place”) निर्मित होता है। यह फ़ंक्शन ओवरलोड रिज़ॉल्यूशन में केवल तभी भाग लेता है जब std::is_constructible<E, Args&&...>::value सत्य हो, अनपैक किए गए पैरामीटर पैक का पहला प्रकार E से मेल न खाता हो और Result का स्पेशलाइज़ेशन भी न हो [SWS_CORE_00836]।

अपवाद सुरक्षा के संदर्भ में, फ़ंक्शन को सशर्त रूप से अपवाद-सुरक्षित (“conditionally exception safe”) विनिर्दिष्ट किया गया है: इसे noexcept(std::is_nothrow_constructible<E, Args...>::value) के साथ घोषित किया गया है [SWS_CORE_00836]। समवर्ती के संबंध में, कॉल को थ्रेड-सुरक्षित नहीं (“not thread-safe”) माना जाता है [SWS_CORE_00836]।

क्लास के अन्य फ़ंक्शन्स के साथ संयोजन में, यह मेथड पहले से मौजूद lvalue ([SWS_CORE_00834]) या rvalue त्रुटि ऑब्जेक्ट्स ([SWS_CORE_00835]) से निर्माण के लिए ओवरलोड्स का पूरक बनता है। व्याख्या: E और Result से संबंधित SFINAE प्रतिबंध संभवतः यह सुनिश्चित करते हैं कि पहले से निर्मित त्रुटि या Result इंस्टेंस पास करते समय अधिमानतः संबंधित कॉपी या मूव ऑपरेटर चुने जाएं और अस्पष्टताओं से बचा जा सके। प्रश्न Q-2796f954bcaececa (खुला) जेनेरिक प्रकार Result ([SWS_CORE_00736]) तथा Result<T&, E> ([SWS_CORE_00907]) में संदर्भ प्रकारों के लिए समरूप इन-प्लेस फ़ैक्टरी फ़ंक्शन्स मौजूद हैं।

यह उपयोग नोट AUTOSAR विनिर्देश R25-11 के आधार पर एक AI द्वारा उत्पन्न किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Template-Parameter

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

Parameter (in)

ParameterBeschreibung
argsthe parameter pack used for constructing the error

Rückgabewert

TypBeschreibung
Resulta Result that contains an error

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

Record
AUTOSAR/AP/record/SWS_CORE_00836
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00836@rel:R25-11#4fd352de
Content hash
4fd352de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00836
Status: valid/unmigrated Version: rel:R25-11#469f77ff Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00836@rel:R25-11#469f77ff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#54c605942026-09-30
  • R19-11rel:R19-11#e8878fac2026-10-14
  • R20-11rel:R20-11#80c2b8ec2026-10-14
  • R21-11rel:R21-11#361c696d2026-10-14
  • R22-11rel:R22-11#57b6bd492026-10-14
  • R23-11rel:R23-11#99f912092026-10-14
  • R24-11rel:R24-11#dc85e51e2026-10-14
  • R25-11rel:R25-11#469f77ff2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन FromValue [SWS_CORE_00831] Upstream: RS_AP_00130

static Result FromValue () noexcept;

Build a new Result with void as value

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: cadd61352253 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

स्टैटिक सदस्य फ़ंक्शन FromValue() टेम्पलेट विशेषज्ञता ara::core::Result<void, E> के लिए एक सफल ara::core::Result ऑब्जेक्ट बनाने का काम करता है [SWS_CORE_00831]। चूंकि परिणाम प्रकार void कोई पेलोड डेटा नहीं ले जाता है, इसलिए फ़ंक्शन कोई इनपुट पैरामीटर स्वीकार नहीं करता है। कॉल समकालिक (synchronous) रूप से होता है और एक Result लौटाता है, जो एक void मान का प्रतिनिधित्व करता है [SWS_CORE_00831]। घोषणा हेडर ara/core/result.h में की गई है [SWS_CORE_00831]।

त्रुटि प्रबंधन और अपवाद सुरक्षा

फ़ंक्शन विनिर्देश noexcept से युक्त है और इसे पूर्णतः अपवाद-सुरक्षित (exception safe) के रूप में वर्गीकृत किया गया है [SWS_CORE_00831]। चूंकि परिभाषा के अनुसार FromValue() एक सफल ऑपरेशन का प्रतिनिधित्व करता है, इसलिए यह कोई त्रुटि स्थिति उत्पन्न नहीं करता है और कोई त्रुटि कोड नहीं लौटाता है। इस कॉल के लिए DET या DEM के माध्यम से विशिष्ट त्रुटि संदेश परिभाषित नहीं हैं।

संगामिति

विनिर्देश के अनुसार, फ़ंक्शन को थ्रेड-सुरक्षित (thread-safe) के रूप में वर्गीकृत किया गया है [SWS_CORE_00831]। इसे अतिरिक्त सिंक्रोनाइज़ेशन उपायों के बिना कई थ्रेड्स से समानांतर रूप से कॉल किया जा सकता है।

इंटरैक्शन

पैरामीटर रहित हस्ताक्षर विशेष रूप से Result<void, E> के लिए अभिप्रेत है [SWS_CORE_00831]। यह मान-उत्पादक ओवरलोड्स से भिन्न है:

  • मान प्रकारों Result<T, E> के लिए lvalues [SWS_CORE_00731], rvalues [SWS_CORE_00732] और साथ ही इन-प्लेस निर्माणों [SWS_CORE_00733] के लिए वेरिएंट मौजूद हैं।
  • संदर्भ प्रकारों Result<T&, E> के लिए FromValue एक lvalue संदर्भ [SWS_CORE_00904] से बांधता है।

यह उपयोग निर्देश AUTOSAR स्पेसिफिकेशन के आधार पर स्वचालित रूप से जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Rückgabewert

TypBeschreibung
Resulta Result that contains a void value

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

Record
AUTOSAR/AP/record/SWS_CORE_00831
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00831@rel:R25-11#5ee9fb75
Content hash
5ee9fb75
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00831
Status: valid/unmigrated Version: rel:R25-11#5cb92b73 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00831@rel:R25-11#5cb92b73
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#689d2bfa2026-09-30
  • R19-11rel:R19-11#5a0410bc2026-10-14
  • R20-11rel:R20-11#723058f02026-10-14
  • R21-11rel:R21-11#723058f02026-10-14
  • R22-11rel:R22-11#e288be5e2026-10-14
  • R23-11rel:R23-11#da3844d72026-10-14
  • R24-11rel:R24-11#43b26bc52026-10-14
  • R25-11rel:R25-11#5cb92b732026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन HasValue [SWS_CORE_00851] Upstream: RS_AP_00130

bool HasValue () const noexcept;

Check whether *this contains a value.

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

Rückgabewert

TypBeschreibung
booltrue if *this contains a value, false otherwise

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

Record
AUTOSAR/AP/record/SWS_CORE_00851
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00851@rel:R25-11#12a2faa4
Content hash
12a2faa4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00851
Status: valid/unmigrated Version: rel:R25-11#3fbe93cd Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00851@rel:R25-11#3fbe93cd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b31a90de2026-09-30
  • R19-11rel:R19-11#c3eea99c2026-10-14
  • R20-11rel:R20-11#0d72fc562026-10-14
  • R21-11rel:R21-11#d1f577762026-10-14
  • R22-11rel:R22-11#dfceca0a2026-10-14
  • R23-11rel:R23-11#c8bbd1082026-10-14
  • R24-11rel:R24-11#3fbe93cd2026-10-14
  • R25-11rel:R25-11#3fbe93cd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Resolve [SWS_CORE_00867] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: bddc80ca365a उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

टेम्पलेट वर्ग ara::core::Result<void, E> का सदस्य फ़ंक्शन Resolve जेनेरिक प्रोग्रामिंग के संदर्भ में त्रुटि प्रबंधन का कार्य करता है [SWS_CORE_00867]। यदि Result के इंस्टेंस में एक नियमित मान शामिल है, तो कॉल कोई ऑपरेशन नहीं करता है [SWS_CORE_00867]। यदि इंस्टेंस में इसके बजाय कोई त्रुटि है, तो पैरामीटर के रूप में पास किया गया Callable f कॉल किया जाता है [SWS_CORE_00867]।

पास किया गया Callable f फ़ंक्शन हस्ताक्षर void f(const E&) के साथ संगत होना चाहिए, जहां E त्रुटि प्रकार का प्रतिनिधित्व करता है [SWS_CORE_00867]। फ़ंक्शन Resolve स्वयं कोई रिटर्न मान नहीं देता है (void) [SWS_CORE_00867]। निष्पादन सुरक्षा के संबंध में, फ़ंक्शन को अपवाद-सुरक्षित नहीं (“not exception safe”) के रूप में निर्दिष्ट किया गया है [SWS_CORE_00867]। इसकी थ्रेड-सुरक्षा सशर्त है और सीधे पास किए गए Callable f की थ्रेड-सुरक्षा पर निर्भर करती है [SWS_CORE_00867]।

समग्र प्रणाली में, यह विशेषज्ञता ara::core::Result<T, E> [SWS_CORE_00767] में मान प्रकारों और ara::core::Result<T&, E> [SWS_CORE_00939], [SWS_CORE_00940] में संदर्भ प्रकारों के लिए नियमित Resolve फ़ंक्शंस से भिन्न है: जबकि वे वेरिएंट निहित मान या Callable कॉल का परिणाम लौटाते हैं, रिटर्न मान के बिना void ओवरलोड विशेष रूप से इंटरफ़ेस कॉल को मानकीकृत करने के लिए एक जेनेरिक बिल्डिंग ब्लॉक के रूप में मौजूद है [SWS_CORE_00867]।

यह उपयोग नोट AUTOSAR Adaptive R25-11 के विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

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

Template-Parameter

ParameterBeschreibung
Fthe type of the Callable f

Parameter (in)

ParameterBeschreibung
fthe Callable

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00867
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00867@rel:R25-11#c87d14d1
Content hash
c87d14d1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00867
Status: valid/unmigrated Version: rel:R25-11#f761b703 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00867@rel:R25-11#f761b703
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4dc104212026-09-30
  • R19-11rel:R19-11#f881257b2026-10-14
  • R20-11rel:R20-11#b5e6d3a02026-10-14
  • R21-11rel:R21-11#849753782026-10-14
  • R22-11rel:R22-11#3a188f872026-10-14
  • R23-11rel:R23-11#ffe34e102026-10-14
  • R24-11rel:R24-11#14ada29b2026-10-14
  • R25-11rel:R25-11#f761b7032026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Result [SWS_CORE_00821] Upstream: RS_AP_00130

Result () noexcept;

Construct a new Result with a void value

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00821
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00821@rel:R25-11#45339671
Content hash
45339671
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00821
Status: valid/unmigrated Version: rel:R25-11#98c2292a Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00821@rel:R25-11#98c2292a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8f90f5152026-09-30
  • R19-11rel:R19-11#f7225b752026-10-14
  • R20-11rel:R20-11#361176672026-10-14
  • R21-11rel:R21-11#6526f8642026-10-14
  • R22-11rel:R22-11#270117af2026-10-14
  • R23-11rel:R23-11#3ecdef242026-10-14
  • R24-11rel:R24-11#a88bc15b2026-10-14
  • R25-11rel:R25-11#98c2292a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Result [SWS_CORE_00823] Upstream: RS_AP_00130

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

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

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

Parameter (in)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00823
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00823@rel:R25-11#7bc9512f
Content hash
7bc9512f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00823
Status: valid/unmigrated Version: rel:R25-11#520a2342 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00823@rel:R25-11#520a2342
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7e409bbe2026-09-30
  • R19-11rel:R19-11#2c11f1a02026-10-14
  • R20-11rel:R20-11#b385f1852026-10-14
  • R21-11rel:R21-11#b385f1852026-10-14
  • R22-11rel:R22-11#964654b92026-10-14
  • R23-11rel:R23-11#41f3fe502026-10-14
  • R24-11rel:R24-11#c47ff58a2026-10-14
  • R25-11rel:R25-11#520a23422026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Result [SWS_CORE_00824] Upstream: RS_AP_00130

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

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

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

Parameter (in)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00824
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00824@rel:R25-11#1ee76088
Content hash
1ee76088
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00824
Status: valid/unmigrated Version: rel:R25-11#a8739538 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00824@rel:R25-11#a8739538
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#3dae56032026-09-30
  • R19-11rel:R19-11#b547aacc2026-10-14
  • R20-11rel:R20-11#587e8ca22026-10-14
  • R21-11rel:R21-11#ef34c2e22026-10-14
  • R22-11rel:R22-11#6fba39dd2026-10-14
  • R23-11rel:R23-11#ed7afc722026-10-14
  • R24-11rel:R24-11#a35944a82026-10-14
  • R25-11rel:R25-11#a87395382026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Result [SWS_CORE_00825] Upstream: RS_AP_00130

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

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

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

Parameter (in)

ParameterBeschreibung
otherthe other instance

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

Record
AUTOSAR/AP/record/SWS_CORE_00825
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00825@rel:R25-11#3e8989ed
Content hash
3e8989ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00825
Status: valid/unmigrated Version: rel:R25-11#49078b0a Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00825@rel:R25-11#49078b0a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2a88503c2026-09-30
  • R19-11rel:R19-11#9e2629602026-10-14
  • R20-11rel:R20-11#c7e3d2b52026-10-14
  • R21-11rel:R21-11#c7e3d2b52026-10-14
  • R22-11rel:R22-11#2141ea872026-10-14
  • R23-11rel:R23-11#984e76b52026-10-14
  • R24-11rel:R24-11#01d7557e2026-10-14
  • R25-11rel:R25-11#49078b0a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Result [SWS_CORE_00826] Upstream: RS_AP_00130

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

Move-construct a new Result from another instance

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

Parameter (in)

ParameterBeschreibung
otherthe other instance

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

Record
AUTOSAR/AP/record/SWS_CORE_00826
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00826@rel:R25-11#4cef30bc
Content hash
4cef30bc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00826
Status: valid/unmigrated Version: rel:R25-11#884cd9f5 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00826@rel:R25-11#884cd9f5
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#54a41baf2026-09-30
  • R19-11rel:R19-11#a66ea3dc2026-10-14
  • R20-11rel:R20-11#3f38aa642026-10-14
  • R21-11rel:R21-11#256f91a42026-10-14
  • R22-11rel:R22-11#beedc4732026-10-14
  • R23-11rel:R23-11#192a01fe2026-10-14
  • R24-11rel:R24-11#019dfd3e2026-10-14
  • R25-11rel:R25-11#884cd9f52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Swap [SWS_CORE_00845] Upstream: RS_AP_00130

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

Exchange the contents of this instance with those of other

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 6d275c051250 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

सदस्य फ़ंक्शन Swap वर्तमान इंस्टेंस की सामग्री को पास किए गए संदर्भ other [SWS_CORE_00845] के साथ समकालिक रूप से स्वैप करता है। यह हेडर फ़ाइल ara/core/result.h से विशेषज्ञता ara::core::Result<void, E> के दायरे से संबंधित है और इसका कोई रिटर्न मान नहीं है [SWS_CORE_00845]।

त्रुटि प्रबंधन के संबंध में, ऑपरेशन को सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) के रूप में वर्गीकृत किया गया है [SWS_CORE_00845]। आश्वासन noexcept ठीक तभी लागू होता है जब त्रुटि प्रकार E nothrow-move-constructible (std::is_nothrow_move_constructible<E>::value) और nothrow-move-assignable (std::is_nothrow_move_assignable<E>::value) दोनों हो [SWS_CORE_00845]। इस कॉल के लिए विशिष्ट त्रुटि कोड या DET या DEM को सूचनाएं प्रदान नहीं की गई हैं [SWS_CORE_00845]।

समवर्तीता के संबंध में, Swap को स्पष्ट रूप से थ्रेड-सुरक्षित नहीं (not thread-safe) निर्दिष्ट किया गया है [SWS_CORE_00845]। बाहरी सिंक्रोनाइज़ेशन के बिना समान इंस्टेंस पर समवर्ती एक्सेस के कारण डेटा रेस होने की संभावना है। प्रश्न Q-a8d4f130648765df (खुला)

ara::core के भीतर परस्पर क्रिया में, यह विधि मुक्त टेम्पलेट फ़ंक्शन ara::core::swap के लिए आधार बनाती है, जिसकी noexcept शर्त सीधे सदस्य फ़ंक्शन से जुड़ी होती है [SWS_CORE_00796]। सामान्य प्रकार ara::core::Result<T, E> [SWS_CORE_00745], संदर्भ विशेषज्ञता ara::core::Result<T&, E> [SWS_CORE_00917] और साथ ही Promise ऑब्जेक्ट्स [SWS_CORE_00352] [SWS_CORE_06352] के लिए तुलनीय स्वैप ऑपरेशन मौजूद हैं।

यह पाठ AUTOSAR विनिर्देश के आधार पर एक AI द्वारा तैयार किया गया था।

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

Parameter (in/out)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00845
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00845@rel:R25-11#191955cf
Content hash
191955cf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00845
Status: valid/unmigrated Version: rel:R25-11#1c4f5e03 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00845@rel:R25-11#1c4f5e03
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0474393e2026-09-30
  • R19-11rel:R19-11#b5afc4f72026-10-14
  • R20-11rel:R20-11#71c2bf362026-10-14
  • R21-11rel:R21-11#71c2bf362026-10-14
  • R22-11rel:R22-11#5de901772026-10-14
  • R23-11rel:R23-11#dd6258592026-10-14
  • R24-11rel:R24-11#80da0ae72026-10-14
  • R25-11rel:R25-11#1c4f5e032026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Value [SWS_CORE_00855] Upstream: RS_AP_00130

void Value () const noexcept;

This function only exists for helping with generic programming

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

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00855
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00855@rel:R25-11#03713097
Content hash
03713097
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00855
Status: valid/unmigrated Version: rel:R25-11#672ec24a Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00855@rel:R25-11#672ec24a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4c2667a52026-09-30
  • R19-11rel:R19-11#7dbbbf242026-10-14
  • R20-11rel:R20-11#8431fc372026-10-14
  • R21-11rel:R21-11#8431fc372026-10-14
  • R22-11rel:R22-11#9c8d89402026-10-14
  • R23-11rel:R23-11#41c02b182026-10-14
  • R24-11rel:R24-11#a44cc9b82026-10-14
  • R25-11rel:R25-11#672ec24a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ValueOr [SWS_CORE_00861] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 1e7317f7509a उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Result<void, E> का सदस्य फ़ंक्शन ValueOr मुख्य रूप से जेनेरिक प्रोग्रामिंग पैटर्न को सुविधाजनक बनाने के लिए कार्य करता है और निष्पादित होने पर कोई ऑपरेशन नहीं करता है ([SWS_CORE_00861])। हेडर ara/core/result.h के माध्यम से प्रदान की गई, यह विधि समकालिक रूप से अग्रेषण प्रकार U&& का एक पैरामीटर defaultValue स्वीकार करती है और कोई रिटर्न मान नहीं देती है (void) ([SWS_CORE_00861])।

समवर्तीता और अपवाद व्यवहार के संबंध में, सदस्य फ़ंक्शन को थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है और विनिर्देशक सिंटैक्स noexcept के साथ घोषित किया गया है, जो पूर्ण अपवाद सुरक्षा की गारंटी देता है ([SWS_CORE_00861])। चूंकि त्रुटि स्थिति की कोई जांच नहीं होती है और कोई कार्रवाई नहीं की जाती है, इसलिए न तो कोई त्रुटि कोड हैं और न ही DET या DEM को कोई संदेश हैं।

Result के अन्य रूपों के संयोजन में, यह फ़ंक्शन ValueOr के मान-आधारित ([SWS_CORE_00761], [SWS_CORE_00762]) और संदर्भ-आधारित ([SWS_CORE_00933], [SWS_CORE_00934]) ओवरलोड्स को पूरक बनाता है। जबकि वे फ़ंक्शन मान सेट होने पर उसे लौटाते हैं या अन्यथा पास किए गए प्रतिस्थापन मान को परिवर्तित करके प्रदान करते हैं, यह संस्करण बिना मान रिटर्न वाले ऑपरेशनों के लिए एक तटस्थ समकक्ष प्रस्तुत करता है ([SWS_CORE_00861])। व्याख्या: पास किया गया मान defaultValue संभवतः कार्यान्वयन में बिना उपयोग किए छोड़ दिया जाता है। प्रश्न Q-6097af779219e859 (खुला) यह डेवलपर्स को Result<void, E> के लिए विशेष शाखाओं के बिना जेनेरिक टेम्पलेट एल्गोरिदम लिखने में सक्षम बनाता है।

यह पाठ AI द्वारा तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Template-Parameter

ParameterBeschreibung
Uthe type of defaultValue

Parameter (in)

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

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00861
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00861@rel:R25-11#3f11a4f6
Content hash
3f11a4f6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00861
Status: valid/unmigrated Version: rel:R25-11#b2e122de Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00861@rel:R25-11#b2e122de
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#74deb1e42026-09-30
  • R19-11rel:R19-11#fbb02ae32026-10-14
  • R20-11rel:R20-11#da14f35c2026-10-14
  • R21-11rel:R21-11#f436d8732026-10-14
  • R22-11rel:R22-11#88784c622026-10-14
  • R23-11rel:R23-11#b4651d592026-10-14
  • R24-11rel:R24-11#b2e122de2026-10-14
  • R25-11rel:R25-11#b2e122de2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ValueOrThrow [SWS_CORE_00866] Upstream: RS_AP_00130

void ValueOrThrow () const noexcept(false);

Return the contained value or throw an exception.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 8e615ce72e75 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

टेम्पलेट विशेषज्ञता ara::core::Result<void, E> का मेंबर फ़ंक्शन ValueOrThrow ऑपरेशन के परिणाम [SWS_CORE_00866] की सिंक्रोनस जांच के लिए कार्य करता है। चूंकि मान प्रकार void है, इसलिए फ़ंक्शन में कोई पैरामीटर नहीं है और यह कोई रिटर्न मान नहीं देता है [SWS_CORE_00866]। घोषणा हेडर ara/core/result.h के माध्यम से प्रदान की जाती है [SWS_CORE_00866]।

सफलता के मामले में मेथड नियमित रूप से वापस लौटता है; दूसरी ओर, यदि कोई त्रुटि स्थिति मौजूद है, तो यह शामिल त्रुटि से जुड़े अपवाद प्रकार का एक अपवाद (noexcept(false)) थ्रो करता है [SWS_CORE_00866]। अपवाद सुरक्षा के संबंध में, ऑपरेशन को not exception safe के रूप में निर्दिष्ट किया गया है [SWS_CORE_00866]।

कॉल संदर्भ और समवर्तीता के लिए निम्नलिखित सीमा शर्तें लागू होती हैं:

  • फ़ंक्शन को thread-safe के रूप में वर्गीकृत किया गया है [SWS_CORE_00866]।
  • यदि कंपाइलर टूलचेन में C++ अपवाद अक्षम हैं, तो यह फ़ंक्शन ओवरलोड रिज़ॉल्यूशन में भाग नहीं लेता है [SWS_CORE_00866]।

मॉड्यूल core के साथ परस्पर क्रिया में, यह void-विशेषज्ञता ara::core::Result<T, E> के सामान्य ओवरलोड्स को पूरा करती है, जो शामिल मानों के संदर्भ लौटाते हैं ([SWS_CORE_00766], [SWS_CORE_00769], [SWS_CORE_00778]), साथ ही संदर्भ प्रकारों ara::core::Result<T&, E> ([SWS_CORE_00938], [SWS_CORE_00949]) के लिए विशेषज्ञताओं को भी पूरा करती है।

यह पाठ एक AI द्वारा जनरेट किया गया था और पूरी तरह से AUTOSAR R25-11 के विनिर्देश डेटा पर आधारित है।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

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

Rückgabewert

TypBeschreibung
None

Exceptions

The exception type associated with the contained error

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00866
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00866@rel:R25-11#c395e308
Content hash
c395e308
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00866
Status: valid/unmigrated Version: rel:R25-11#02430c8c Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00866@rel:R25-11#02430c8c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b509b5f62026-09-30
  • R19-11rel:R19-11#2b3715602026-10-14
  • R20-11rel:R20-11#015d6e892026-10-14
  • R21-11rel:R21-11#015d6e892026-10-14
  • R22-11rel:R22-11#3a3be3ac2026-10-14
  • R23-11rel:R23-11#1c0991192026-10-14
  • R24-11rel:R24-11#a22c0e742026-10-14
  • R25-11rel:R25-11#02430c8c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator bool [SWS_CORE_00852] Upstream: RS_AP_00130

explicit operator bool () const noexcept;

Check whether *this contains a value

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

Rückgabewert

TypBeschreibung
booltrue if *this contains a value, false otherwise

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

Record
AUTOSAR/AP/record/SWS_CORE_00852
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00852@rel:R25-11#4897578f
Content hash
4897578f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00852
Status: valid/unmigrated Version: rel:R25-11#308b54bc Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00852@rel:R25-11#308b54bc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#20945fcd2026-09-30
  • R19-11rel:R19-11#94ca04482026-10-14
  • R20-11rel:R20-11#15f004bc2026-10-14
  • R21-11rel:R21-11#4bc654032026-10-14
  • R22-11rel:R22-11#dceddefe2026-10-14
  • R23-11rel:R23-11#1bf0f6eb2026-10-14
  • R24-11rel:R24-11#e07d70b42026-10-14
  • R25-11rel:R25-11#308b54bc2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator* [SWS_CORE_00853] Upstream: RS_AP_00130

void operator* () const noexcept;

Access the contained value.

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

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00853
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00853@rel:R25-11#c9950a97
Content hash
c9950a97
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00853
Status: valid/unmigrated Version: rel:R25-11#570827f3 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00853@rel:R25-11#570827f3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0bbf5d3b2026-09-30
  • R19-11rel:R19-11#f9dde3982026-10-14
  • R20-11rel:R20-11#1f3399df2026-10-14
  • R21-11rel:R21-11#1f3399df2026-10-14
  • R22-11rel:R22-11#6b2cf1872026-10-14
  • R23-11rel:R23-11#acae00652026-10-14
  • R24-11rel:R24-11#570827f32026-10-14
  • R25-11rel:R25-11#570827f32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator= [SWS_CORE_00841] Upstream: RS_AP_00130

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

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

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

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Result &*this, containing the contents of other

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

Record
AUTOSAR/AP/record/SWS_CORE_00841
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00841@rel:R25-11#c27e4048
Content hash
c27e4048
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00841
Status: valid/unmigrated Version: rel:R25-11#4cd1fad8 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00841@rel:R25-11#4cd1fad8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6d1166182026-09-30
  • R19-11rel:R19-11#20dff6262026-10-14
  • R20-11rel:R20-11#c03d77e62026-10-14
  • R21-11rel:R21-11#38acfa3b2026-10-14
  • R22-11rel:R22-11#e977e11e2026-10-14
  • R23-11rel:R23-11#495ec7c02026-10-14
  • R24-11rel:R24-11#2d78586d2026-10-14
  • R25-11rel:R25-11#4cd1fad82026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator= [SWS_CORE_00842] Upstream: RS_AP_00130

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

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

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

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Result &*this, containing the contents ofother

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

Record
AUTOSAR/AP/record/SWS_CORE_00842
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00842@rel:R25-11#7a6548c6
Content hash
7a6548c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00842
Status: valid/unmigrated Version: rel:R25-11#7b894013 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00842@rel:R25-11#7b894013
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1757cb292026-09-30
  • R19-11rel:R19-11#b5fa5dc82026-10-14
  • R20-11rel:R20-11#215e92592026-10-14
  • R21-11rel:R21-11#215e92592026-10-14
  • R22-11rel:R22-11#385162782026-10-14
  • R23-11rel:R23-11#b1034a412026-10-14
  • R24-11rel:R24-11#035424de2026-10-14
  • R25-11rel:R25-11#7b8940132026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ~Result [SWS_CORE_00827] Upstream: RS_AP_00130

~Result () noexcept;

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

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00827
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00827@rel:R25-11#c73b1128
Content hash
c73b1128
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00827
Status: valid/unmigrated Version: rel:R25-11#7779bc25 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00827@rel:R25-11#7779bc25
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ada359e32026-09-30
  • R19-11rel:R19-11#bcc401122026-10-14
  • R20-11rel:R20-11#38c9347c2026-10-14
  • R21-11rel:R21-11#27ebdb022026-10-14
  • R22-11rel:R22-11#04a4095e2026-10-14
  • R23-11rel:R23-11#f7addf512026-10-14
  • R24-11rel:R24-11#da8ad7bd2026-10-14
  • R25-11rel:R25-11#7779bc252026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन CheckError [SWS_CORE_00865] Upstream: RS_AP_00130

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

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

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 67f5fc13d797 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Result<void, E> का टेम्पलेट सदस्य फ़ंक्शन CheckError समकालिक रूप से जांचता है कि क्या वर्तमान इंस्टेंस में कोई विशिष्ट त्रुटि है [SWS_CORE_00865]। इसके लिए, पास किए गए तर्क error को static_cast का उपयोग करके त्रुटि प्रकार E में परिवर्तित किया जाता है और आंतरिक त्रुटि स्थिति Error() के रिटर्न मान के साथ तुलना की जाती है [SWS_CORE_00865]। कॉल हेडर #include "ara/core/result.h" [SWS_CORE_00865] के माध्यम से किया जाता है।

उपयोग और कॉल संदर्भ के लिए निम्नलिखित गुण लागू होते हैं:

  • पैरामीटर और रिटर्न मान: प्रकार G&& का सार्वभौमिक संदर्भ पैरामीटर error जांच की जाने वाली त्रुटि प्राप्त करता है [SWS_CORE_00865]। यदि इंस्टेंस में error के समतुल्य कोई त्रुटि होती है, तो फ़ंक्शन true लौटाता है, अन्यथा false [SWS_CORE_00865]।
  • समवर्तीता और अपवाद सुरक्षा: ऑपरेशन को const noexcept के रूप में घोषित किया गया है, इसे अपवाद-सुरक्षित (exception safe) माना जाता है और इसे अप्रतिबंधित रूप से थ्रेड-सुरक्षित (thread-safe) तरीके से कॉल किया जा सकता है [SWS_CORE_00865]।

मॉड्यूल core के साथ परस्पर क्रिया में, CheckError के अनुरूप ओवरलोड मौजूद हैं: प्राथमिक टेम्पलेट वर्ग ara::core::Result समान हस्ताक्षर को noexcept के साथ थ्रेड-सुरक्षित और अपवाद-सुरक्षित रूप से भी प्रदान करता है [SWS_CORE_00765]। इसके विपरीत, यद्यपि संदर्भ विशेषज्ञता ara::core::Result<T&, E> में समान तुलना तंत्र है और यह थ्रेड-सुरक्षित है, फिर भी इसे स्पष्ट रूप से noexcept के बिना अपवाद-सुरक्षित नहीं (not exception safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_00937]।

यह उपयोग नोट विनिर्देश आवश्यकताओं के आधार पर स्वचालित रूप से उत्पन्न किया गया था।

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

Template-Parameter

ParameterBeschreibung
Gthe type of the error argument error

Parameter (in)

ParameterBeschreibung
errorthe error to check

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00865
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00865@rel:R25-11#97a746e2
Content hash
97a746e2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00865
Status: valid/unmigrated Version: rel:R25-11#0cc61151 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00865@rel:R25-11#0cc61151
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#629602bb2026-09-30
  • R19-11rel:R19-11#caaed37b2026-10-14
  • R20-11rel:R20-11#c831c1642026-10-14
  • R21-11rel:R21-11#38bde79d2026-10-14
  • R22-11rel:R22-11#d5b8d12d2026-10-14
  • R23-11rel:R23-11#772c40092026-10-14
  • R24-11rel:R24-11#a6e6635b2026-10-14
  • R25-11rel:R25-11#0cc611512026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

टाइप उपनामों का प्रलेखन

टाइप उपनाम error_type [SWS_CORE_00812] Upstream: RS_AP_00130

using error_type = E;

Type alias for the type E of errors

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00812
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00812@rel:R25-11#b953eed2
Content hash
b953eed2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00812
Status: valid/unmigrated Version: rel:R25-11#1fba764b Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00812@rel:R25-11#1fba764b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#32aa6a1c2026-09-30
  • R19-11rel:R19-11#344c236b2026-10-14
  • R20-11rel:R20-11#d7c47e392026-10-14
  • R21-11rel:R21-11#d7c47e392026-10-14
  • R22-11rel:R22-11#896231bd2026-10-14
  • R23-11rel:R23-11#8c3b22132026-10-14
  • R24-11rel:R24-11#8c3b22132026-10-14
  • R25-11rel:R25-11#1fba764b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

टाइप उपनाम value_type [SWS_CORE_00811] Upstream: RS_AP_00130

using value_type = void;

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

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

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

Record
AUTOSAR/AP/record/SWS_CORE_00811
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00811@rel:R25-11#c7864a13
Content hash
c7864a13
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00811
Status: valid/unmigrated Version: rel:R25-11#b5a93a85 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00811@rel:R25-11#b5a93a85
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#881c160a2026-09-30
  • R19-11rel:R19-11#f4870d0d2026-10-14
  • R20-11rel:R20-11#84ab65ba2026-10-14
  • R21-11rel:R21-11#618d46342026-10-14
  • R22-11rel:R22-11#27f9f9602026-10-14
  • R23-11rel:R23-11#19a6434e2026-10-14
  • R24-11rel:R24-11#19a6434e2026-10-14
  • R25-11rel:R25-11#b5a93a852026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill