DEENESPTFRRUARHIKOZHNL

클래스 ara::core::Optional< T & >

[SWS_CORE_01150]

template <typename T> class Optional< T & > final {...};

Specialization of for type T&

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

사용자 가이드AI 생성

객체에 대한 선택적 참조를 캡슐화하고 동적 메모리 할당 없이 안전한 접근을 가능하게 합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 7a73f15cddcd 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

객체에 대한 선택적 참조를 캡슐화하고 동적 메모리 할당 없이 안전한 접근을 가능하게 합니다.

특수화 ara::core::Optional<T &>은(는) 요소 타입 T & [SWS_CORE_01151]을(를) 갖는 선택적 lvalue 참조를 위한 타입 안전 컨테이너 역할을 합니다. 동적 메모리 할당 없이 런타임에 참조를 재할당하거나 리셋할 수 있습니다 [SWS_CORE_01164], [SWS_CORE_01165]. 역참조 연산자 또는 잠재적으로 예외를 발생시키는 접근 메서드 value()을(를) 통해 접근하기 전에 유효한 대상 객체의 존재 여부를 반드시 확인해야 합니다 [SWS_CORE_01172], [SWS_CORE_01173].

컨텍스트

템플릿 특수화 ara::core::Optional<T &>은(는) 선택적 lvalue 참조를 위한 타입 안전 컨테이너를 제공합니다. 기본 요소 타입은 타입 별칭 value_type에 의해 T &(으)로 정의됩니다 [SWS_CORE_01151]. 값 타입을 위한 기본 템플릿과 달리 이 특수화는 T 타입의 기존 객체를 가리키거나 비어 있는 상태를 나타내는 재사용 가능하고 다시 바인딩 가능한 참조(Rebindable Reference) 역할을 합니다. 동적 메모리를 할당하지 않고 호출하는 소프트웨어 컴포넌트 및 참조 대상 객체와 직접 상호작용합니다.

수명 주기

ara::core::Optional<T &>의 인스턴스는 항상 잘 제어된 두 가지 상태 중 하나에 있습니다: 비어 있음(비점유) 또는 점유됨(객체를 참조함). 비어 있는 상태는 기본 생성자 [SWS_CORE_01152] 또는 nullopt_t [SWS_CORE_01153](으)로 초기화하여 전환됩니다. 참조에 대한 바인딩은 생성 시 호환 가능한 값 또는 참조를 전달하여([SWS_CORE_01156]) 이루어지며 변환 생성자([SWS_CORE_01157])를 통해서도 가능합니다. 복사 및 이동 생성자는 원본 컨테이너의 상태를 전송합니다 [SWS_CORE_01154], [SWS_CORE_01155].

런타임에 상태를 동적으로 수정할 수 있습니다: 값이나 참조를 할당하면 Optional이(가) 전달된 대상 객체에 다시 바인딩되며 [SWS_CORE_01162], 이는 다른 Optional 컨테이너의 할당 연산자 [SWS_CORE_01159], [SWS_CORE_01160], [SWS_CORE_01163] 또는 메서드 emplace [SWS_CORE_01164]을(를) 통해서도 일어납니다. 비어 있는 상태로의 전이는 reset [SWS_CORE_01165]을(를) 호출하거나 nullopt_t [SWS_CORE_01161]을(를) 할당하여 수행됩니다. 또한 swap은(는) 두 인스턴스의 원자적 교환을 허용합니다 [SWS_CORE_01166]. 기본 소멸자는 래퍼 인스턴스의 수명을 종료하지만 [SWS_CORE_01158], 참조가 의미상 소유권을 설정하지 않으므로 참조된 원본 객체에는 영향을 미치지 않는 것으로 보입니다. 질문 Q-3ba25e19c4b098ed (열림)

diag_lifecycle Leer Leer (disengaged) Leer->Leer operator=(nullopt) reset() Belegt Belegt (engaged) Leer->Belegt Optional(u) emplace() operator=(u) Belegt->Leer reset() operator=(nullopt) Belegt->Belegt emplace() operator=(u)

상태 다이어그램: ara::core::Optional<T &> 인스턴스의 상태 및 상태 전이. 출처: [SWS_CORE_01152], [SWS_CORE_01153], [SWS_CORE_01156], [SWS_CORE_01161], [SWS_CORE_01162], [SWS_CORE_01164], [SWS_CORE_01165].

사용 경로

일반적인 애플리케이션 수명 주기에는 참조된 대상의 생성, 유효성 검증, 읽기 또는 수정 접근이 포함됩니다:

  1. 초기화: 인스턴스는 비어 있는 상태로 생성되거나 [SWS_CORE_01152] 기존 객체에 대한 참조로 채워집니다 [SWS_CORE_01156].
  2. 상태 확인: 역참조 전에 호출자는 명시적 변환 연산자 operator bool [SWS_CORE_01171] 또는 메서드 has_value [SWS_CORE_01172]을(를) 통해 참조의 존재 여부를 확인합니다.
  3. 접근: 참조가 확인되면 역참조 연산자 operator* [SWS_CORE_01169], [SWS_CORE_01170] 또는 화살표 연산자 operator-> [SWS_CORE_01167], [SWS_CORE_01168]을(를) 통해 참조된 객체에 접근합니다. 대안으로 value_or은(는) 참조된 값 또는 지정된 기본값을 반환합니다 [SWS_CORE_01175].
  4. 리셋: 처리가 완료된 후 필요한 경우 reset을(를) 통해 참조를 명시적으로 제거합니다 [SWS_CORE_01165].
Nutzungsablauf von Optional<T &>호출자OptionalZielobjektOptional(ziel)Instanz erzeugthas_value()trueopthas_value() == trueoperator*()참조 확인(역참조)T &reset()void

시퀀스 다이어그램: 선택적 참조의 초기화, 확인 및 역참조의 일반적인 절차. 출처: [SWS_CORE_01156], [SWS_CORE_01165], [SWS_CORE_01170], [SWS_CORE_01172].

오류 시나리오

오류는 주로 비어 있는 인스턴스에 대한 조기 또는 유효하지 않은 접근 시도 시 발생합니다. 객체에 값이 포함되어 있지 않은 상태에서 value()이(가) 호출되면 IsoStdBadOption-alAccessViolation 타입의 위반이 발생합니다 [SWS_CORE_01173], [SWS_CORE_01174]. 이에 따라 value()은(는) 클래스의 대부분의 다른 작업과 달리 명시적으로 예외 안전(not exception safe)으로 분류되지 않습니다.

인스턴스가 참조를 유지하지 않는 경우 operator* [SWS_CORE_01169], [SWS_CORE_01170] 및 operator-> [SWS_CORE_01167], [SWS_CORE_01168]을(를) 통한 직접 역참조도 IsoStdBadOption-alAccessViolation 범주의 위반을 문서화합니다. 이러한 연산자는 noexcept(으)로 선언되었지만, 사용하려면 유효한 참조가 존재해야 한다는 전제 조건을 반드시 준수해야 합니다.

이 가이드는 AUTOSAR Adaptive R25-11의 명세 요구사항을 기반으로 AI 시스템에 의해 작성되었습니다.

멤버 맵

클래스 다이어그램

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

G nara__core__Optional__T____62 Optional< T & > + Optional() + operator=() + ~Optional() + emplace() + reset() + swap() + has_value() + operator bool() + operator*() + Optional< T &() + value() + value_or()

상세 보기

개요에서 항목을 선택하세요.

생성자 및 소멸자

Optional 함수 6

≙ [optional]

오버로드 Optional 6
constexpr Optional () noexcept; SWS_CORE_01152
constexpr Optional (nullopt_t) noexcept; SWS_CORE_01153
constexpr Optional (const Optional &other) noexcept=default; SWS_CORE_01154
constexpr Optional (Optional &&other) noexcept=default; SWS_CORE_01155
template <typename U = T> explicit constexpr Optional (U &&u) noexcept; SWS_CORE_01156
template <typename U> explicit constexpr Optional (Optional< U > const &other) noexcept; SWS_CORE_01157
~Optional 함수

≙ [optional]

~Optional () noexcept=default;

메서드

emplace 함수

≙ [optional]

template <typename U = T> constexpr Optional & emplace (U &&u) noexcept;
has_value 함수

≙ [optional]

constexpr bool has_value () const noexcept;
Optional< T & 함수 2

≙ [optional]

오버로드 Optional< T & 2
T const * operator-> () const noexcept; SWS_CORE_01167
T * operator-> () noexcept; SWS_CORE_01168
reset 함수

≙ [optional]

constexpr void reset () noexcept;
swap 함수

≙ [optional]

constexpr void swap (Optional &other) noexcept;
value 함수 2

≙ [optional]

오버로드 value 2
constexpr T & value (); SWS_CORE_01173
constexpr T const & value () const; SWS_CORE_01174
value_or 함수

≙ [optional]

template <typename U> constexpr T value_or (U &&u) const noexcept;

연산자

≙ [optional]

explicit constexpr operator bool () const noexcept;
operator* 함수 2

≙ [optional]

오버로드 * 2
constexpr T const & operator* () const noexcept; SWS_CORE_01169
constexpr T & operator* () noexcept; SWS_CORE_01170
operator= 함수 5

≙ [optional]

오버로드 = 5
constexpr Optional & operator= (const Optional &other) & noexcept=default; SWS_CORE_01159
constexpr Optional & operator= (Optional &&other) & noexcept=default; SWS_CORE_01160
constexpr Optional & operator= (nullopt_t) & noexcept; SWS_CORE_01161
template <typename U = T> constexpr Optional & operator= (U &&u) & noexcept; SWS_CORE_01162
template <typename U = T> Optional & operator= (const Optional< U > &other) & noexcept; SWS_CORE_01163

타입 별칭

value_type 타입 별칭

≙ [optional]

using value_type = T&;

메서드 문서

함수 Optional< T & [SWS_CORE_01167]

T const * operator-> () const noexcept;

As per corresponding usage in [optional]

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 89692a8124d3 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

템플릿 클래스 ara::core::Optional<T &>의 멤버 접근 연산자 operator->은 참조된 객체의 멤버에 동기적으로 접근하는 역할을 합니다 [SWS_CORE_01167]. 이 함수는 헤더 #include "ara/core/optional.h"에 정의되어 있으며, ara::core::Optional<T &>의 스코프에 속하고 매개변수를 받지 않습니다 [SWS_CORE_01167]. 반환값으로 T const * 유형의 포인터가 제공되어 기본 대상 객체에 대한 직접 읽기 접근을 가능하게 합니다 [SWS_CORE_01167]. 따라서 반환 유형은 상수 데이터에 대한 포인터에 해당하므로 이 연산자를 통한 수정 접근은 차단됩니다.

오류 처리와 관련하여 이 메서드는 noexcept(으)로 선언되고 exception safe(으)로 분류됩니다 [SWS_CORE_01167]. 그러나 인스턴스에 값이 포함되어 있지 않은 경우(If *this does not contain a value), 사양에서는 위반 사항으로 IsoStdBadOptionalAccessViolation을 명시하고 있습니다 [SWS_CORE_01167]. 따라서 런타임 오류 상태를 확실하게 방지하기 위해 애플리케이션 소프트웨어는 역참조 전에 선택적 참조가 유효하게 채워져 있는지 확인해야 합니다.

동시성 및 호출 컨텍스트에 대해 사양에서는 별도의 보호 메커니즘을 명시하지 않으며, const 연산은 경쟁 수정에 대한 내부 동기화를 제공하지 않는 것으로 추정됩니다 [SWS_CORE_01167]. 질문 Q-0ebf3ed1284fc0c1 (열림) 일반적인 동작은 사양에 따라 옵셔널 유형에 대한 C++ 표준의 해당 사용법(As per corresponding usage in [optional])을 따릅니다 [SWS_CORE_01167].

이 사용 지침은 AUTOSAR R25-11 사양을 바탕으로 자동 생성되었습니다.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01167
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01167@rel:R25-11#ceba56a9
Content hash
ceba56a9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01167
Status: valid/unmigrated Version: rel:R25-11#619d01d4 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_01167@rel:R25-11#619d01d4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#453ae4da2026-09-30
  • R24-11rel:R24-11#70a745e42026-10-14
  • R25-11rel:R25-11#619d01d42026-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

함수 Optional< T & [SWS_CORE_01168]

T * operator-> () noexcept;

As per corresponding usage in [optional]

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: f85c6d08317d 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

특수화 ara::core::Optional<T &>의 오버로딩 연산자 operator->은(는) 캡슐화된 참조에 대한 동기식 멤버 접근을 가능하게 합니다([SWS_CORE_01168]). 이 함수는 헤더 파일 ara/core/optional.h을(를) 통해 제공되며 호출 매개변수를 요구하지 않습니다. 호출 시 참조된 대상 객체에 대한 T * 타입의 포인터를 반환하여 인스턴스의 멤버를 직접 지정할 수 있도록 합니다([SWS_CORE_01168]). 이때 시맨틱은 C++ 표준의 [optional] 사용과 일치합니다([SWS_CORE_01168]).

오류 안전성 측면에서 이 연산자는 noexcept(으)로 선언되어 있으며 예외 안전(“exception safe”)(으)로 분류됩니다([SWS_CORE_01168]). 인스턴스에 값이 포함되어 있지 않은 경우(*this does not contain a value), IsoStdBadOptionalAccessViolation 범주의 접근 위반이 발생합니다([SWS_CORE_01168]). 해석: 시그니처가 noexcept(으)로 선언되어 있으므로, 이 잘못된 상태는 일반적인 C++ 예외를 발생시켜 처리되는 것이 아니라 표준화된 오류 처리 또는 프로그램 종료로 이어질 것으로 보입니다. 질문 Q-c3ef91b84a00cae8 (열림)

호출 조건으로서 개발자는 실행 전에 Optional 객체에 실제로 값이 포함되어 있는지 확인해야 합니다. 채워진 상태를 사전에 확인하지 않는 보호되지 않은 접근은 연산자의 선행 조건을 위반합니다([SWS_CORE_01168]).

이 텍스트는 자동으로 생성되었습니다. 전문적인 진술은 사양에 대한 참조로 뒷받침됩니다.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01168
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01168@rel:R25-11#355f0cea
Content hash
355f0cea
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01168
Status: valid/unmigrated Version: rel:R25-11#df3c1201 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_01168@rel:R25-11#df3c1201
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#62076e1a2026-09-30
  • R24-11rel:R24-11#3761249b2026-10-14
  • R25-11rel:R25-11#df3c12012026-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

함수 Optional [SWS_CORE_01152]

constexpr Optional () noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01152@rel:R25-11#20dbd20c
Content hash
20dbd20c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01152
Status: valid/unmigrated Version: rel:R25-11#bd774096 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_01152@rel:R25-11#bd774096
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#203f559e2026-09-30
  • R24-11rel:R24-11#5f8d3df42026-10-14
  • R25-11rel:R25-11#bd7740962026-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

함수 Optional [SWS_CORE_01153]

constexpr Optional (nullopt_t) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01153@rel:R25-11#aeb5e274
Content hash
aeb5e274
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01153
Status: valid/unmigrated Version: rel:R25-11#a42355d6 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_01153@rel:R25-11#a42355d6
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d49495ac2026-09-30
  • R24-11rel:R24-11#4189d3352026-10-14
  • R25-11rel:R25-11#a42355d62026-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

함수 Optional [SWS_CORE_01154]

constexpr Optional (const Optional &other) noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01154@rel:R25-11#492be1f7
Content hash
492be1f7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01154
Status: valid/unmigrated Version: rel:R25-11#6343a19e 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_01154@rel:R25-11#6343a19e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c9cbf44b2026-09-30
  • R24-11rel:R24-11#67a352912026-10-14
  • R25-11rel:R25-11#6343a19e2026-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

함수 Optional [SWS_CORE_01155]

constexpr Optional (Optional &&other) noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01155
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01155@rel:R25-11#76782d0b
Content hash
76782d0b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01155
Status: valid/unmigrated Version: rel:R25-11#63fd67a5 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_01155@rel:R25-11#63fd67a5
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1cfb040f2026-09-30
  • R24-11rel:R24-11#4e8aeb8f2026-10-14
  • R25-11rel:R25-11#63fd67a52026-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

함수 Optional [SWS_CORE_01156]

template <typename U = T> explicit constexpr Optional (U &&u) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01156
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01156@rel:R25-11#97e85c07
Content hash
97e85c07
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01156
Status: valid/unmigrated Version: rel:R25-11#20a661bc 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_01156@rel:R25-11#20a661bc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f57f8ec42026-09-30
  • R24-11rel:R24-11#e42ae9492026-10-14
  • R25-11rel:R25-11#20a661bc2026-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

함수 Optional [SWS_CORE_01157]

template <typename U> explicit constexpr Optional (Optional< U > const &other) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01157
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01157@rel:R25-11#5d7ec2ff
Content hash
5d7ec2ff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01157
Status: valid/unmigrated Version: rel:R25-11#9d72d212 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_01157@rel:R25-11#9d72d212
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#818d85522026-09-30
  • R24-11rel:R24-11#4a2fbbd72026-10-14
  • R25-11rel:R25-11#9d72d2122026-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_01164]

template <typename U = T> constexpr Optional & emplace (U &&u) noexcept;

As per corresponding usage in [optional]

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: eb9f72cc598f 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::core::Optional<T&> 특수화의 템플릿 멤버 함수 emplace은(는) 선택적 컨테이너([SWS_CORE_01164])에서 참조를 할당하거나 설정하는 역할을 합니다. 이 함수는 헤더 파일 #include "ara/core/optional.h"을(를) 통해 정의됩니다([SWS_CORE_01164]).

사용법 및 의미론

호출은 동기식으로 이루어지며 매개변수로 U&& 타입(기본적으로 U = T)의 전달 참조 u을(를) 받습니다([SWS_CORE_01164]). 해석: 새 객체가 생성되지 않고 인수 u이(가) Optional에 유지된 참조에 다시 바인딩될 것으로 보입니다. 질문 Q-55c9eca385e9e496 (열림) 반환값으로 emplace은(는) Optional 인스턴스 자체에 대한 lvalue 참조를 반환하므로(Optional &), 연산 연결(체이닝)이 가능합니다([SWS_CORE_01164]). constexpr(으)로 선언되어 있어 컴파일 타임 상수 표현식에서도 호출이 평가될 수 있습니다([SWS_CORE_01164]).

오류 처리 및 예외 안전성

이 작업은 noexcept(으)로 선언되어 있으며 exception safe 분류를 갖습니다([SWS_CORE_01164]). 명세 발췌본에는 특정 오류 코드, DET 또는 DEM 메시지가 정의되어 있지 않으며, C++ 예외로 인한 실패는 배제됩니다([SWS_CORE_01164]).

상호작용 및 구분

포함된 객체를 인플레이스(in-place) 생성하고 T& 참조를 반환하며 조건부 예외 안전(conditionally exception safe) 또는 조건부 noexcept([SWS_CORE_01119], [SWS_CORE_01120])에 불과한 값 타입용 ara::core::Optional<T>의 기본 템플릿 변형과 달리, Optional<T&>에 대한 이 오버로드는 엄격한 무예외성을 보장합니다([SWS_CORE_01164]). ara::core::Vector([SWS_CORE_01366]), ara::core::Map([SWS_CORE_01458]) 또는 ara::core::Variant([SWS_CORE_01661])과(와) 같은 모듈의 다른 컨테이너도 emplace 메서드를 제공하지만, 독자적인 시맨틱과 상이한 안전 수준을 갖습니다.

이 사용 지침은 AUTOSAR Adaptive R25-11 명세를 바탕으로 자동 생성되었습니다.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01164@rel:R25-11#a2549de5
Content hash
a2549de5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01164
Status: valid/unmigrated Version: rel:R25-11#ae44b1d3 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_01164@rel:R25-11#ae44b1d3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#30e3d4342026-09-30
  • R24-11rel:R24-11#62874e892026-10-14
  • R25-11rel:R25-11#ae44b1d32026-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

함수 has_value [SWS_CORE_01172]

constexpr bool has_value () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01172
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01172@rel:R25-11#6f125225
Content hash
6f125225
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01172
Status: valid/unmigrated Version: rel:R25-11#401f0d0a 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_01172@rel:R25-11#401f0d0a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a395f6112026-09-30
  • R24-11rel:R24-11#fd763aff2026-10-14
  • R25-11rel:R25-11#401f0d0a2026-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_01171]

explicit constexpr operator bool () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01171
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01171@rel:R25-11#13ed2c17
Content hash
13ed2c17
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01171
Status: valid/unmigrated Version: rel:R25-11#35eaa065 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_01171@rel:R25-11#35eaa065
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f211fcbd2026-09-30
  • R24-11rel:R24-11#59297dd12026-10-14
  • R25-11rel:R25-11#35eaa0652026-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_01169]

constexpr T const & operator* () const noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01169
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01169@rel:R25-11#a0d9cfbd
Content hash
a0d9cfbd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01169
Status: valid/unmigrated Version: rel:R25-11#7af50405 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_01169@rel:R25-11#7af50405
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5244c30f2026-09-30
  • R24-11rel:R24-11#058fa3292026-10-14
  • R25-11rel:R25-11#7af504052026-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_01170]

constexpr T & operator* () noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01170
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01170@rel:R25-11#3cf415fe
Content hash
3cf415fe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01170
Status: valid/unmigrated Version: rel:R25-11#cf473125 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_01170@rel:R25-11#cf473125
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#fbc1818d2026-09-30
  • R24-11rel:R24-11#036016592026-10-14
  • R25-11rel:R25-11#cf4731252026-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_01159]

constexpr Optional & operator= (const Optional &other) & noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01159
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01159@rel:R25-11#8c6be74d
Content hash
8c6be74d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01159
Status: valid/unmigrated Version: rel:R25-11#3efb9211 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_01159@rel:R25-11#3efb9211
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0ceb335f2026-09-30
  • R24-11rel:R24-11#7729a6cc2026-10-14
  • R25-11rel:R25-11#3efb92112026-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_01160]

constexpr Optional & operator= (Optional &&other) & noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01160@rel:R25-11#b542ab74
Content hash
b542ab74
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01160
Status: valid/unmigrated Version: rel:R25-11#df5ae80f 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_01160@rel:R25-11#df5ae80f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a47c96572026-09-30
  • R24-11rel:R24-11#7fccea222026-10-14
  • R25-11rel:R25-11#df5ae80f2026-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_01161]

constexpr Optional & operator= (nullopt_t) & noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01161
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01161@rel:R25-11#3c0c77eb
Content hash
3c0c77eb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01161
Status: valid/unmigrated Version: rel:R25-11#47d11828 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_01161@rel:R25-11#47d11828
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#224804b32026-09-30
  • R24-11rel:R24-11#07da73332026-10-14
  • R25-11rel:R25-11#47d118282026-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_01162]

template <typename U = T> constexpr Optional & operator= (U &&u) & noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01162@rel:R25-11#2ae42294
Content hash
2ae42294
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01162
Status: valid/unmigrated Version: rel:R25-11#48bce027 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_01162@rel:R25-11#48bce027
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#043f8bfa2026-09-30
  • R24-11rel:R24-11#e310521a2026-10-14
  • R25-11rel:R25-11#48bce0272026-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_01163]

template <typename U = T> Optional & operator= (const Optional< U > &other) & noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01163@rel:R25-11#a23af52b
Content hash
a23af52b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01163
Status: valid/unmigrated Version: rel:R25-11#13eb961a 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_01163@rel:R25-11#13eb961a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#963c28f12026-09-30
  • R24-11rel:R24-11#5bc3f9cf2026-10-14
  • R25-11rel:R25-11#13eb961a2026-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

함수 reset [SWS_CORE_01165]

constexpr void reset () noexcept;

As per corresponding usage in [optional]

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: b70ef11c6c14 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

특수화 ara::core::Optional<T&>의 멤버 함수 reset은 [SWS_CORE_01165]에 따라 옵셔널 참조 객체를 재설정하는 역할을 합니다. 이 함수는 헤더 #include "ara/core/optional.h"을 통해 선언되고, 매개변수를 받지 않으며 반환값이 없습니다(void). constexpr 함수로서 컴파일 타임 평가에서도 사용될 수 있으며, 실행은 동기식으로 이루어집니다. 해석: [optional]의 사용에 대한 일반적인 참조에 따르면, 호출 시 인스턴스가 바인딩된 참조가 없는 상태(disengaged)로 전환되어 객체가 이후 더 이상 값을 포함하지 않게 될 것으로 보입니다. 질문 Q-edf521c7744139d2 (열림)

오류 처리와 관련하여 이 함수는 [SWS_CORE_01165]에 따라 식별자 noexcept이(가) 부여되어 있으며 예외 안전("exception safe")으로 분류됩니다. 따라서 호출 시 예외를 던지지 않고 오류 코드를 보고하지 않습니다. 이 함수에 대한 페이로드에는 특정 DET 또는 DEM 메시지가 제공되지 않습니다.

모듈 컨텍스트에서 이 구현은 [SWS_CORE_01136]에 따른 일반 템플릿 클래스 ara::core::Optional과 구별되며, 해당 클래스의 reset 메서드는 constexpr(으)로 선언되지 않았습니다. 모듈 내의 다른 reset 함수는 ara::core::Bitset에 대해 존재하며, 여기서 reset()은 [SWS_CORE_01727]에 따라 객체에 대한 참조를 반환하거나 [SWS_CORE_01728]에 따라 위치 지정 시 ara::core::Result을(를) 반환하고 유효하지 않은 인덱스에 대해 IsoStdOutOfRangeViolation을(를) 발생시킵니다.

이 텍스트는 사양 데이터를 기반으로 AI 시스템에 의해 생성되었습니다.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01165@rel:R25-11#19664471
Content hash
19664471
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01165
Status: valid/unmigrated Version: rel:R25-11#96b9362b 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_01165@rel:R25-11#96b9362b
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c553061a2026-09-30
  • R24-11rel:R24-11#a55359f52026-10-14
  • R25-11rel:R25-11#96b9362b2026-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_01166]

constexpr void swap (Optional &other) noexcept;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01166
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01166@rel:R25-11#dc307dcd
Content hash
dc307dcd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01166
Status: valid/unmigrated Version: rel:R25-11#47897cb1 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_01166@rel:R25-11#47897cb1
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#036ffd582026-09-30
  • R24-11rel:R24-11#c68cc8362026-10-14
  • R25-11rel:R25-11#47897cb12026-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_01173]

constexpr T & value ();

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01173
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01173@rel:R25-11#4db3e660
Content hash
4db3e660
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01173
Status: valid/unmigrated Version: rel:R25-11#bb97e429 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_01173@rel:R25-11#bb97e429
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a59124572026-09-30
  • R24-11rel:R24-11#c5e7fb242026-10-14
  • R25-11rel:R25-11#bb97e4292026-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_01174]

constexpr T const & value () const;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdBadOption- If *this does not contain a value alAccessViolation

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

Record
AUTOSAR/AP/record/SWS_CORE_01174
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01174@rel:R25-11#38f881ee
Content hash
38f881ee
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01174
Status: valid/unmigrated Version: rel:R25-11#3d7b55ac 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_01174@rel:R25-11#3d7b55ac
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ded2d5c12026-09-30
  • R24-11rel:R24-11#9a78cd172026-10-14
  • R25-11rel:R25-11#3d7b55ac2026-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_or [SWS_CORE_01175]

template <typename U> constexpr T value_or (U &&u) const noexcept;

As per corresponding usage in [optional]

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 6b4e9a7193a7 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

특수화 ara::core::Optional<T&>의 멤버 함수 value_or은 헤더 파일 #include "ara/core/optional.h"를 통해 제공됩니다 [SWS_CORE_01175]. 템플릿 함수로서 매개변수 U&& u를 대체 값으로 취하고 동기적으로 T 타입의 결과 값을 반환합니다. 해석: 사양 설명인 “As per corresponding usage in [optional]”에 따르면, 이 함수는 객체가 값을 보유하고 있는 경우 참조가 유지하는 값을 반환하고, 그렇지 않은 경우 폴백 값 u을 반환할 것으로 추정됩니다. 질문 Q-c050380198abf06b (열림)

오류 처리와 관련하여 사양은 완전한 예외 안전성(exception safe)을 보장하며 해당 메서드를 noexcept [SWS_CORE_01175]로 선언합니다. 이 연산에는 오류 코드나 오류/진단 모니터에 대한 알림이 모두 정의되어 있지 않습니다. 또한 멤버 함수가 constexpr 및 const로 한정되어 있으므로, 객체의 수정 없이 컴파일 타임의 상수 표현식에서도 평가될 수 있습니다 [SWS_CORE_01175].

모듈 core의 맥락에서 이 함수는 비참조형 타입을 위한 일반 오버로드와 밀접한 관련이 있습니다. ara::core::Optional<T&>에 대한 [SWS_CORE_01175]이 exception safe으로 선언된 반면, 사양에서는 기본 템플릿 ara::core::Optional의 해당 변형들(const lvalue 오버로드 [SWS_CORE_01134] 및 rvalue 오버로드 [SWS_CORE_01135] 모두)을 각각 not exception safe로 분류합니다.

이 사용법 안내는 명세를 기반으로 AI에 의해 작성되었습니다.

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01175
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01175@rel:R25-11#f48ec2a9
Content hash
f48ec2a9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01175
Status: valid/unmigrated Version: rel:R25-11#b15a3240 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_01175@rel:R25-11#b15a3240
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#07a50f3f2026-09-30
  • R24-11rel:R24-11#b275cdd32026-10-14
  • R25-11rel:R25-11#b15a32402026-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

함수 ~Optional [SWS_CORE_01158]

~Optional () noexcept=default;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_01158
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01158@rel:R25-11#7ecdc124
Content hash
7ecdc124
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01158
Status: valid/unmigrated Version: rel:R25-11#9f329d75 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_01158@rel:R25-11#9f329d75
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5583615b2026-09-30
  • R24-11rel:R24-11#8b55e5d62026-10-14
  • R25-11rel:R25-11#9f329d752026-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_01151]

using value_type = T&;

As per corresponding usage in [optional]

Header-Datei#include "ara/core/optional.h"
Scopeclass ara::core::Optional< T & >
Symbolvalue_type

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

Record
AUTOSAR/AP/record/SWS_CORE_01151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01151@rel:R25-11#1512ed77
Content hash
1512ed77
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01151
Status: valid/unmigrated Version: rel:R25-11#53609b21 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_01151@rel:R25-11#53609b21
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#ec6b63872026-09-30
  • R24-11rel:R24-11#03a4e1d12026-10-14
  • R25-11rel:R25-11#53609b212026-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