함수 Optional< T & [SWS_CORE_01167]
T const * operator-> () const noexcept;
As per corresponding usage in [optional]
템플릿 클래스 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" |
|---|---|
| Scope | class ara::core::Optional< T & > |
| Exception-Sicherheit | 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_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
Recorded Revisions (3):
- R25-11
rel:R25-11#453ae4da2026-09-30 - R24-11
rel:R24-11#70a745e42026-10-14 - R25-11
rel:R25-11#619d01d42026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 독일어 원문