DEENESPTFRRUARHIKOZHNL

क्लास ara::core::Variant

[SWS_CORE_01601] Upstream: RS_AP_00130

template <typename...                Types> class Variant {...};

Implementation of std::variant type from [basic.string]

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

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

सशर्त अपवाद सुरक्षा के साथ एक परिभाषित प्रकार सेट से सटीक रूप से एक मान को प्रकार-सुरक्षित रूप से संग्रहीत करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 223b5b60b80c उद्गम खुले प्रश्न (2)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

सशर्त अपवाद सुरक्षा के साथ एक परिभाषित प्रकार सेट से सटीक रूप से एक मान को प्रकार-सुरक्षित रूप से संग्रहीत करता है।

टेम्पलेट वर्ग ara::core::Variant किसी दिए गए प्रकार सेट [SWS_CORE_01649] से सटीक रूप से एक मान को संग्रहीत और प्रबंधित करने के लिए एक प्रकार-सुरक्षित यूनियन के रूप में कार्य करता है। यह लचीले निर्माण, असाइनमेंट और एम्प्लेस तंत्र का समर्थन करता है और index() [SWS_CORE_01665] के माध्यम से सक्रिय विकल्प के निर्धारण की अनुमति देता है। मानक की तुलना में सबसे महत्वपूर्ण ख़ासियत सभी संशोधित करने वाले ऑपरेशनों के संशोधित, सशर्त noexcept विनिर्देश हैं और साथ ही स्थिति valueless_by_exception() [SWS_CORE_01666] के विरुद्ध सुरक्षा है।

संदर्भ

टेम्पलेट वर्ग ara::core::Variant AUTOSAR Adaptive Platform के लिए एक प्रकार-सुरक्षित यूनियन का प्रतिनिधित्व करता है, जिसे हेडर ara/core/variant.h के माध्यम से शामिल किया जाता है। यह संकलन समय पर परिभाषित प्रकार सूची (template <typename... Types> class Variant) से सटीक रूप से एक मान के प्रबंधन को समाहित करता है। परिभाषा मूल रूप से C++ मानक [variant] से std::variant के व्यवहार पर आधारित है, लेकिन अपवाद विनिर्देश के संबंध में विशिष्ट AUTOSAR विचलन प्रस्तुत करती है। वर्ग का विवरण मेटाडेटा में [basic.string] को संदर्भित करता है; व्याख्या: यह संभवतः एक संपादकीय विसंगति है, क्योंकि सभी आवश्यकताएं लगातार मानक खंड [variant] को संदर्भित करती हैं। प्रश्न Q-809de1af74fcb689 (खुला)

जीवनचक्र

ara::core::Variant का एक उदाहरण आरंभीकरण से मान परिवर्तन के माध्यम से विनाश तक नियतात्मक जीवन चक्र चरणों से गुजरता है। निर्माण या तो पैरामीटर रहित डिफ़ॉल्ट कंस्ट्रक्टर [SWS_CORE_01649] के माध्यम से होता है, जो पहले विकल्प को प्रारंभ करता है, कॉपी और मूव कंस्ट्रक्टर [SWS_CORE_01650], [SWS_CORE_01651] के माध्यम से या सीधे मान पास करके [SWS_CORE_01652]। इसके अतिरिक्त, इनिशियलाइज़ेशन सूचियों के संयोजन में भी, in_place_type_t [SWS_CORE_01653], [SWS_CORE_01654] और in_place_index_t [SWS_CORE_01655], [SWS_CORE_01656] का उपयोग करके इन-प्लेस निर्माण के लिए ओवरलोड उपलब्ध हैं।

नियमित स्थिति में, ऑब्जेक्ट हमेशा एक मान्य विकल्प रखता है, जिसका शून्य-आधारित इंडेक्स विधि index() [SWS_CORE_01665] के साथ निर्धारित किया जा सकता है। यदि किसी अपवाद के उत्पन्न होने के कारण निर्माण या असाइनमेंट के दौरान मान परिवर्तन विफल हो जाता है, तो इंस्टेंस स्थिति valueless_by_exception() [SWS_CORE_01666] में चला जाता है। ऑब्जेक्ट इस स्थिति में तब तक बना रहता है जब तक कि सफल पुनरारंभीकरण द्वारा एक वैध विकल्प फिर से कब्जा नहीं कर लिया जाता। डिस्ट्रक्टर वर्तमान में रखे गए ऑब्जेक्ट को ठीक से नष्ट कर देता है और सशर्त रूप से अपवाद-सुरक्षित घोषित किया जाता है [SWS_CORE_01657]।

variant_lifecycle Uninitialisiert Uninitialisiert Gueltig Gueltig Uninitialisiert->Gueltig Konstruktion Gueltig->Gueltig operator= / emplace() ValuelessByException ValuelessByException Gueltig->ValuelessByException Fehlschlag Zuweisung / emplace Zerstoert Zerstoert Gueltig->Zerstoert ~Variant() ValuelessByException->Gueltig Erfolgreiches emplace() ValuelessByException->Zerstoert ~Variant()

स्थिति आरेख: प्रकार-आवेष्टित वैधता और अपवाद स्थिति के बीच एक Variant इंस्टेंस के स्थिति संक्रमण। स्रोत: [SWS_CORE_01649], [SWS_CORE_01657], [SWS_CORE_01661], [SWS_CORE_01665], [SWS_CORE_01666]

उपयोग पथ

एक विशिष्ट उपयोग प्रक्रिया में इंस्टेंसिएशन, सामग्री को असाइन करना या बदलना, स्थिति की जांच करना और मानों का आदान-प्रदान शामिल है:

  • आरंभीकरण: कंस्ट्रक्टरों में से किसी एक के माध्यम से एक इंस्टेंस का निर्माण, उदाहरण के लिए प्रत्यक्ष मान पासिंग [SWS_CORE_01652] द्वारा या स्पष्ट रूप से प्रकार से संबंधित in_place_type_t [SWS_CORE_01653] के माध्यम से।
  • मान अद्यतन और पुन: असाइनमेंट: कॉपी असाइनमेंट ऑपरेटर [SWS_CORE_01658], मूव असाइनमेंट ऑपरेटर [SWS_CORE_01659] या जेनेरिक मान असाइनमेंट [SWS_CORE_01660] के माध्यम से एक नए मान का असाइनमेंट। वैकल्पिक रूप से, मान को सीधे emplace के माध्यम से प्रकार [SWS_CORE_01661], [SWS_CORE_01662] या इंडेक्स [SWS_CORE_01663], [SWS_CORE_01664] के अनुसार इन-प्लेस पुनर्गठित किया जा सकता है।
  • स्थिति जाँच: index() [SWS_CORE_01665] के माध्यम से सक्रिय प्रकार सूचकांक की क्वेरी करना और valueless_by_exception() [SWS_CORE_01666] के माध्यम से पिछली त्रुटियों से सुरक्षा।
  • ऑब्जेक्ट स्वैप: सदस्य फ़ंक्शन swap() [SWS_CORE_01667] के माध्यम से दो Variant इंस्टेंस का कुशल विनिमय।

चूंकि वर्तमान विनिर्देशन रिकॉर्ड सेट में केवल सदस्य फ़ंक्शन शामिल हैं, इसलिए मान एक्सेस जैसे प्रत्यक्ष रीड ऑपरेशंस गायब हैं; संभवतः एक्सेस और विज़िटिंग फ़ंक्शन (std::get या std::visit के समान) नेमस्पेस ara::core में मुफ़्त सहायक फ़ंक्शन के रूप में प्रदान किए जाते हैं। प्रश्न Q-75847ac18088da57 (खुला)

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

त्रुटि प्रबंधन के केंद्र में सशर्त अपवाद सुरक्षा (conditionally exception safe) का गुण है। जबकि मानक पुस्तकालय std::variant के लिए निश्चित noexcept नियम प्रदान करता है, AUTOSAR जानबूझकर विचलित होता है: सभी कंस्ट्रक्टर [SWS_CORE_01650], [SWS_CORE_01653], असाइनमेंट ऑपरेटर [SWS_CORE_01658], emplace ऑपरेशन [SWS_CORE_01661], [SWS_CORE_01663], स्वैप फ़ंक्शन swap() [SWS_CORE_01667] और डिस्ट्रक्टर [SWS_CORE_01657] सशर्त रूप से noexcept हैं। उनकी अपवाद गारंटी सीधे अंतर्निहित प्रकार के कंस्ट्रक्टरों के noexcept गुणों पर निर्भर करती है।

यदि किसी असाइनमेंट या emplace कॉल के दौरान किसी नए मान का निर्माण अपवाद उत्पन्न करता है, तो वैरिएंट एक अमान्य मध्यवर्ती स्थिति में आ सकता है। यह valueless_by_exception() [SWS_CORE_01666] के माध्यम से संकेतित होता है। केवल दो क्वेरी फ़ंक्शन index() [SWS_CORE_01665] और valueless_by_exception() [SWS_CORE_01666] अप्रतिबंधित noexcept गारंटी प्रदान करते हैं और पूरी तरह से अपवाद-सुरक्षित हैं।

यह गाइड Adaptive Platform (रिलीज़ R25-11, मॉड्यूल core) के लिए AUTOSAR विनिर्देश पर आधारित है और इसे एक AI क्यूरेशन सहायक द्वारा तैयार किया गया था।

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

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

2

ऑपरेटर

1

क्लास आरेख

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

G nara__core__Variant465 Variant + Variant() + operator=() + ~Variant() + emplace() + swap() + index() + valueless_by_exception()

विवरण दृश्य

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

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

Variant फ़ंक्शन 8

≙ [variant]

ओवरलोड Variant 8
constexpr Variant () noexcept({<cond-noexcept-1>}); SWS_CORE_01649
Variant (const Variant &other) noexcept({<cond-noexcept-2>}); SWS_CORE_01650
Variant (Variant &&other) noexcept({<cond-noexcept-3>}); SWS_CORE_01651
template <typename T> constexpr Variant (T &&value) noexcept({<cond-noexcept-4>}); SWS_CORE_01652
template <typename T, typename... Args> explicit constexpr Variant (in_place_type_t< T > tag, Args &&... args) noexcept(std::is_nothrow_constructible< T, Args... >::value); SWS_CORE_01653
template <typename T, typename U, typename... Args> explicit constexpr Variant (in_place_type_t< T > tag, std::initializer_list< U > il, Args &&... args) noexcept(std::is_ nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01654
template <std::size_t I, typename... Args> explicit constexpr Variant (in_place_index_t< I > tag, Args &&... args) noexcept({<cond-noexcept-5>}); SWS_CORE_01655
template <std::size_t I, typename U, typename... Args> explicit constexpr Variant (in_place_index_t< I > tag, std::initializer_list< U > il, Args &&... args) noexcept( {<cond-noexcept-6>}); SWS_CORE_01656
~Variant फ़ंक्शन

except for the following deviations: 1. Function is conditionally noexcept ≙ [variant]

~Variant () noexcept({<cond-noexcept-7>});

मेथड

emplace फ़ंक्शन 4

except for the following deviations: 1. Function is conditionally noexcept ≙ [variant]

ओवरलोड emplace 4
template <typename T, typename... Args> T & emplace (Args &&... args) noexcept(std::is_nothrow_constructible< T, Args... >::value); SWS_CORE_01661
template <typename T, typename U, typename... Args> T & emplace (std::initializer_list< U > il, Args &&... args) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01662
template <std::size_t I, typename... Args> variant_alternative_t< I, Variant< Types... > > & emplace (Args &&... args) noexcept({<cond-noexcept-11>}); SWS_CORE_01663
template <std::size_t I, typename U, typename... Args> variant_alternative_t< I, Variant< Types... > > & emplace (std::initializer_list< U > il, Args &&... args) noexcept( {<cond-noexcept-12>}); SWS_CORE_01664
index फ़ंक्शन

≙ [variant]

constexpr std::size_t index () const noexcept;
swap फ़ंक्शन

except for the following deviations: 1. Conditions for the conditional exception safety are modified ≙ [variant]

void swap (Variant &other) noexcept({<cond-noexcept-13>});
valueless_by_exception फ़ंक्शन

≙ [variant]

constexpr bool valueless_by_exception () const noexcept;

ऑपरेटर

operator= फ़ंक्शन 3

except for the following deviations: 1. Function is conditionally noexcept ≙ [variant]

ओवरलोड = 3
constexpr Variant & operator= (const Variant &other) noexcept( {<cond-noexcept-8>}); SWS_CORE_01658
constexpr Variant & operator= (Variant &&other) noexcept( {<cond-noexcept-9>}); SWS_CORE_01659
template <typename T> Variant & operator= (T &&value) noexcept({<cond-noexcept-10>}); SWS_CORE_01660

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

फ़ंक्शन Variant [SWS_CORE_01649]

constexpr Variant () noexcept({<cond-noexcept-1>});

As per corresponding usage in [variant]

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01650]

Variant (const Variant &other) noexcept({<cond-noexcept-2>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01651]

Variant (Variant &&other) noexcept({<cond-noexcept-3>});

As per corresponding usage in [variant] Move constructor

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01652]

template <typename T> constexpr Variant (T &&value) noexcept({<cond-noexcept-4>});

As per corresponding usage in [variant]

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01653]

template <typename T, typename... Args> explicit constexpr Variant (in_place_type_t< T > tag, Args &&... args) noexcept(std::is_nothrow_constructible< T, Args... >::value);

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01654]

template <typename T, typename U, typename... Args> explicit constexpr Variant (in_place_type_t< T > tag, std::initializer_list< U > il, Args &&... args) noexcept(std::is_ nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value);

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01655]

template <std::size_t I, typename... Args> explicit constexpr Variant (in_place_index_t< I > tag, Args &&... args) noexcept({<cond-noexcept-5>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन Variant [SWS_CORE_01656]

template <std::size_t I, typename U, typename... Args> explicit constexpr Variant (in_place_index_t< I > tag, std::initializer_list< U > il, Args &&... args) noexcept( {<cond-noexcept-6>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन emplace [SWS_CORE_01661]

template <typename T, typename... Args> T & emplace (Args &&... args) noexcept(std::is_nothrow_constructible< T, Args... >::value);

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

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

सदस्य फ़ंक्शन emplace ara::core::Variant [SWS_CORE_01661] के मौजूदा इंस्टेंस में सीधे T प्रकार का एक वैकल्पिक मान निर्मित करता है। फ़ंक्शन हेडर फ़ाइल #include "ara/core/variant.h" के माध्यम से प्रदान किया जाता है और सिंक्रोनस रूप से निष्पादित होता है [SWS_CORE_01661]। पैरामीटर के रूप में, यह फ़ॉरवर्डिंग संदर्भ args... लेता है, जिन्हें लक्ष्य प्रकार T के कंस्ट्रक्टर को पास किया जाता है, और नव निर्मित ऑब्जेक्ट का संदर्भ लौटाता है [SWS_CORE_01661]।

त्रुटि प्रबंधन के संबंध में, ऑपरेशन को सशर्त रूप से अपवाद-सुरक्षित (“conditionally exception safe”) घोषित किया गया है [SWS_CORE_01661]। यह variant के मानक व्यवहार का अनुसरण करता है, लेकिन एक सशर्त noexcept विनिर्देश द्वारा विचलित होता है: एक अपवाद को ठीक तभी बाहर रखा जाता है जब std::is_nothrow_constructible<T, Args...>::value संतुष्ट होता है [SWS_CORE_01661]। इस बुनियादी फ़ंक्शन के लिए विशिष्ट AUTOSAR त्रुटि कोड या DET या DEM को रिपोर्ट परिभाषित नहीं हैं।

समवर्तीता और कॉल संदर्भ के संबंध में, विनिर्देश कोई भिन्न गारंटी नहीं देता है। Interpretation: बिना किसी बाहरी सिंक्रोनाइज़ेशन के emplace के माध्यम से एक ही Variant इंस्टेंस पर एकाधिक थ्रेड्स का एक साथ लेखन एक्सेस थ्रेड-सुरक्षित नहीं हो सकता है, क्योंकि AUTOSAR variant के मानक सिमेंटिक्स को संदर्भित करता है। प्रश्न Q-4d9d118b9916a3dc (खुला)

ara::core::Variant के भीतर परस्पर क्रिया में, इनिशियलाइज़ेशन सूचियों [SWS_CORE_01662] के साथ-साथ इंडेक्स-आधारित इन-प्लेस निर्माणों [SWS_CORE_01663], [SWS_CORE_01664] के लिए अतिरिक्त ओवरलोड मौजूद हैं। Core मॉड्यूल में समान emplace ऑपरेशन ara::core::Optional ([SWS_CORE_01119], [SWS_CORE_01120], [SWS_CORE_01164]) के साथ-साथ ara::core::Vector [SWS_CORE_01366] और ara::core::Map [SWS_CORE_01458] जैसे कंटेनरों के लिए भी निर्दिष्ट हैं।

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

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन emplace [SWS_CORE_01662]

template <typename T, typename U, typename... Args> T & emplace (std::initializer_list< U > il, Args &&... args) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value);

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

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

हेडर ara/core/variant.h से ara::core::Variant का सदस्य फ़ंक्शन emplace मौजूदा इंस्टेंस [SWS_CORE_01662] की मेमोरी में सीधे प्रकार T के विकल्प के समकालिक निर्माण का कार्य करता है। यहाँ प्रकार के कंस्ट्रक्टर को एक std::initializer_list<U> और अग्रेषित तर्क Args&&... args पास किए जाते हैं। रिटर्न मान के रूप में, फ़ंक्शन नए इनिशियलाइज़ किए गए ऑब्जेक्ट पर एक lvalue संदर्भ T& लौटाता है [SWS_CORE_01662]।

त्रुटि प्रबंधन और अपवाद प्रबंधन के संबंध में, फ़ंक्शन [variant] में मानक परिभाषा से भिन्न है: इसे सशर्त अपवाद-सुरक्षित (conditionally exception safe) के रूप में वर्गीकृत किया गया है और इसमें एक सशर्त noexcept विनिर्देश [SWS_CORE_01662] है। एक कॉल अपवाद-मुक्त होने की गारंटी देता है, बशर्ते std::is_nothrow_constructible<T, std::initializer_list<U>&, Args&&...>::value का मूल्यांकन true के रूप में हो [SWS_CORE_01662]। इस एलिमेंट के लिए विशिष्ट AUTOSAR त्रुटि कोड या DET और DEM को रिपोर्टिंग चैनल मौजूद नहीं हैं।

समवर्तीता (concurrency) और सीमा शर्तों के संबंध में: चूँकि emplace Variant इंस्टेंस की स्थिति को संशोधित करता है, इसलिए बाहरी सिंक्रोनाइज़ेशन के बिना समवर्ती कॉल थ्रेड-सुरक्षित नहीं हो सकती है। व्याख्या: नए ऑब्जेक्ट के निर्माण से पहले, पहले से मौजूद मान नष्ट हो जाता है, जैसा कि [variant] के सामान्य व्यवहार के अनुरूप है। प्रश्न Q-548c84cc1d327030 (खुला)

संबंधित इंटरफ़ेस के साथ परस्पर क्रिया में, यह फ़ंक्शन आरंभिक सूची के बिना ओवरलोड [SWS_CORE_01661] के साथ-साथ इंडेक्स-आधारित विकल्पों [SWS_CORE_01663] और [SWS_CORE_01664] के लिए प्रकार-आधारित समकक्ष का निर्माण करता है। समान इंटरफ़ेस अवधारणाएँ ara::core::Optional [SWS_CORE_01120] के साथ-साथ कंटेनरों जैसे कि ara::core::Vector [SWS_CORE_01366] या ara::core::Map [SWS_CORE_01458] में पाई जाती हैं, जहाँ इसके विपरीत कंटेनर emplace संचालन अपवाद-सुरक्षित नहीं होते हैं।

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

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन emplace [SWS_CORE_01663]

template <std::size_t I, typename... Args> variant_alternative_t< I, Variant< Types...                > > & emplace (Args &&... args) noexcept({<cond-noexcept-11>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

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

उपयोग

हेडर फ़ाइल ara/core/variant.h से क्लास ara::core::Variant ([SWS_CORE_01663]) का सदस्य फ़ंक्शन emplace ऑब्जेक्ट की मौजूदा मेमोरी में टेम्पलेट इंडेक्स I द्वारा निर्धारित विकल्प के सीधे निर्माण के लिए कार्य करता है। पैरामीटर के रूप में आर्ग्युमेंट्स Args&&... args पास किए जाते हैं। कॉल सिंक्रोनस रूप से निष्पादित होता है और variant_alternative_t<I, Variant<Types...>> प्रकार के नए निर्मित मान का संदर्भ लौटाता है ([SWS_CORE_01663])। इसका व्यवहार [variant] ([SWS_CORE_01663]) में दी गई परिभाषा के अनुसार होता है।

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

विनिर्देश C++ मानक से विचलन के रूप में एक सशर्त noexcept({<cond-noexcept-11>}) क्लॉज और conditionally exception safe विशेषता ([SWS_CORE_01663]) को परिभाषित करता है। संभवतः अपवादों का ट्रिगर होना इस बात पर निर्भर करता है कि अग्रेषित प्रकारों Args... के लिए लक्ष्य विकल्प का कंस्ट्रक्टर अपवाद-सुरक्षित है या नहीं। प्रश्न Q-189fe417e9ef4980 (खुला) इस फ़ंक्शन के लिए विशिष्ट त्रुटि कोड, विफलता के मामले में रिटर्न मान, या DET या DEM को सूचनाएँ निर्दिष्ट नहीं हैं।

पारस्परिक क्रिया और विकल्प

मॉड्यूल core और प्रकार ara::core::Variant के भीतर, यह फ़ंक्शन अन्य ओवरलोड के सिस्टम में अंतर्निहित है:

  • [SWS_CORE_01664] के तहत std::initializer_list के साथ इंडेक्स-आधारित आरंभीकरण।
  • [SWS_CORE_01661] का उपयोग करके प्रकार नाम T के माध्यम से या [SWS_CORE_01662] के माध्यम से std::initializer_list के संयोजन में किसी विकल्प का प्रकार-आधारित निर्माण।
  • तदनुरूप इन-प्लेस तंत्र कंटेनर स्तर पर ara::core::Optional ([SWS_CORE_01119], [SWS_CORE_01120], [SWS_CORE_01164]), ara::core::Vector ([SWS_CORE_01366]) और ara::core::Map ([SWS_CORE_01458]) में भी पाए जाते हैं।

यह उपयोग नोट रिलीज़ R25-11 के मॉड्यूल core के विनिर्देशों पर आधारित है।

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन emplace [SWS_CORE_01664]

template <std::size_t I, typename U, typename... Args> variant_alternative_t< I, Variant< Types... > > & emplace (std::initializer_list< U > il, Args &&... args) noexcept( {<cond-noexcept-12>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

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

ara/core/variant.h से सदस्य फ़ंक्शन emplace, ara::core::Variant [SWS_CORE_01664] के मौजूदा इंस्टेंस के भीतर सीधे उसी स्थान पर एक नया वैकल्पिक मान सिंक्रोनस रूप से निर्मित करता है। संबोधित किया जाने वाला प्रकार टेम्पलेट इंडेक्स I के माध्यम से निश्चित रूप से निर्धारित होता है। यह कॉल std::initializer_list<U> प्रकार की एक आरंभकर्ता सूची il और वैकल्पिक आर्ग्युमेंट्स args स्वीकार करता है और variant_alternative_t<I, Variant<Types...>>& प्रकार के नए निर्मित मान का संदर्भ लौटाता है [SWS_CORE_01664]।

त्रुटि प्रबंधन के लिए, ऑपरेशन को सशर्त रूप से अपवाद-सुरक्षित (conditionally exception safe) के रूप में वर्गीकृत किया गया है और इसे एक सशर्त noexcept प्रदान किया गया है [SWS_CORE_01664]। शर्त {<cond-noexcept-12>} का मूल्यांकन संभवतः इस बात पर निर्भर करता है कि il और args के साथ लक्ष्य प्रकार का कंस्ट्रक्टर कोई अपवाद नहीं फेंकता है। प्रश्न Q-87f90253fc61c883 (खुला) विनिर्देश में विशिष्ट त्रुटि कोड और DET या DEM को रिपोर्ट परिभाषित नहीं हैं; अपवादों पर व्यवहार noexcept घोषणा को छोड़कर [variant] [SWS_CORE_01664] के मानक व्यवहार का अनुसरण करता है।

ara::core::Variant के भीतर, यह फ़ंक्शन आरंभकर्ता सूची के बिना इंडेक्स-आधारित निर्माण [SWS_CORE_01663] के साथ-साथ दोनों प्रकार-आधारित वेरिएंट [SWS_CORE_01661] और [SWS_CORE_01662] को पूरा करता है। सीधे इन-प्लेस निर्माण के लिए अनुरूप emplace फ़ंक्शन मॉड्यूल core में ara::core::Optional ([SWS_CORE_01119], [SWS_CORE_01120], [SWS_CORE_01164]) के साथ-साथ कंटेनरों जैसे कि ara::core::Vector ([SWS_CORE_01366]) और ara::core::Map ([SWS_CORE_01458]) के लिए भी मौजूद हैं।

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

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन index [SWS_CORE_01665]

constexpr std::size_t index () const noexcept;

As per corresponding usage in [variant]

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

वर्ग ara::core::Variant का सदस्य फ़ंक्शन index विनिर्देश [SWS_CORE_01665] के अनुसार वर्तमान में रखे गए प्रकार के शून्य-आधारित इंडेक्स को समकालिक रूप से क्वेरी करने का काम करता है। यह मानक C++ प्रकार std::variant (“As per corresponding usage in [variant]”) में संगत उपयोग के अनुरूप व्यवहार करता है, कोई पैरामीटर स्वीकार नहीं करता है और वर्तमान इंडेक्स को std::size_t के रूप में लौटाता है। इसे हेडर ara/core/variant.h में घोषित किया गया है और constexpr तथा noexcept के रूप में योग्य बनाया गया है।

त्रुटि प्रबंधन और अपवाद-सुरक्षा के संबंध में, विधि को exception safe के रूप में निर्दिष्ट किया गया है [SWS_CORE_01665]। चूंकि इसे noexcept के रूप में घोषित किया गया है, यह स्वयं कोई अपवाद नहीं फेंकती है और कोई त्रुटि स्थिति उत्पन्न नहीं करती है। वैकल्पिक मानों तक पहुंचने से पहले यह सुनिश्चित करने के लिए कि ara::core::Variant में कौन सा प्रकार सक्रिय है, कॉलर्स लौटाए गए इंडेक्स का मूल्यांकन कर सकते हैं।

प्रकारित एक्सेस फ़ंक्शंस ara::core::get के साथ परस्पर क्रिया में, index एक केंद्रीय भूमिका निभाता है: lvalues और rvalues के लिए get के ओवरलोड [SWS_CORE_01613], [SWS_CORE_01614], [SWS_CORE_01615] और [SWS_CORE_01616] के अनुसार स्पष्ट रूप से शर्त variant.index() != I की जांच करते हैं। यदि इंडेक्स अनुरोधित स्थिति इंडेक्स I से मेल नहीं खाता है, तो std::bad_variant_access से विचलित होते हुए उल्लंघन IsoStdBadVariantAccessViolation ट्रिगर होता है। index() का उपयोग करके एक पूर्व मिलान रनटाइम पर इस गलत पहुंच को रोकता है।

समवर्तीता के संबंध में, विधि उसी Variant पर समवर्ती रीड एक्सेस के लिए const ऑपरेशन के रूप में सुरक्षित है, जब तक कि कोई प्रतिस्पर्धी संशोधन न हो; समानांतर राइट एक्सेस के विरुद्ध कोई आंतरिक सिंक्रोनाइज़ेशन मौजूद नहीं होना चाहिए। प्रश्न Q-12e0dad0a6b8c5d0 (खुला)

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

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitexception safe

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

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

constexpr Variant & operator= (const Variant &other) noexcept( {<cond-noexcept-8>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

constexpr Variant & operator= (Variant &&other) noexcept( {<cond-noexcept-9>});

As per corresponding usage in [variant]

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

template <typename T> Variant & operator= (T &&value) noexcept({<cond-noexcept-10>});

As per corresponding usage in [variant]

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

void swap (Variant &other) noexcept({<cond-noexcept-13>});

As per corresponding usage in [variant] except for the following deviations: 1. Conditions for the conditional exception safety are modified

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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

फ़ंक्शन valueless_by_exception [SWS_CORE_01666]

constexpr bool valueless_by_exception () const noexcept;

As per corresponding usage in [variant]

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

उपयोग

वर्ग ara::core::Variant का सदस्य फ़ंक्शन valueless_by_exception मॉड्यूल core में हेडर फ़ाइल #include "ara/core/variant.h" के माध्यम से प्रदान किया जाता है ([SWS_CORE_01666])। इसके हस्ताक्षर constexpr bool valueless_by_exception () const noexcept; के अनुसार, इसके लिए किसी कॉल पैरामीटर की आवश्यकता नहीं होती है और यह समकालिक रूप से एक बूलियन मान लौटाता है ([SWS_CORE_01666])। कार्यात्मक अर्थ [variant] के सामान्य शब्दार्थ (“As per corresponding usage in [variant]”) पर आधारित है ([SWS_CORE_01666])। व्याख्या: लौटाया गया स्टेटस true संभवतः कॉलर को संकेत देता है कि एक पूर्व मान असाइनमेंट या प्रकार परिवर्तन किसी अपवाद की घटना से निरस्त कर दिया गया था और इसलिए Variant ऑब्जेक्ट अस्थायी रूप से एक मान्य स्थिति का प्रतिनिधित्व नहीं करता है। प्रश्न Q-af7c00c7eb4ef5a1 (खुला)

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

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

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

चूंकि valueless_by_exception को एक const और constexpr विधि के रूप में निर्दिष्ट किया गया है, निष्पादन के दौरान ऑब्जेक्ट की आंतरिक स्थिति में कोई संशोधित पहुंच नहीं होती है ([SWS_CORE_01666])। व्याख्या: एकाधिक थ्रेड्स से समान इंस्टेंस की एक साथ पढ़ने की क्वेरी अलग सिंक्रोनाइज़ेशन के बिना सुरक्षित रूप से निष्पादन योग्य होनी चाहिए, जब तक कि प्रतिस्पर्धी राइट ऑपरेशनों को बाहर रखा जाए। प्रश्न Q-5c28f8cef1c1f097 (खुला)

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

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitexception safe

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

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

फ़ंक्शन ~Variant [SWS_CORE_01657]

~Variant () noexcept({<cond-noexcept-7>});

As per corresponding usage in [variant] except for the following deviations: 1. Function is conditionally noexcept

Header-Datei#include "ara/core/variant.h"
Scopeclass ara::core::Variant
Exception-Sicherheitconditionally exception safe

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

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