함수 hash< ara::core::Optional< T [SWS_CORE_01199]
size_t operator() (ara::core::Optional< T > const &v) const noexcept;
Invoke the hashing function
특수화 struct std::hash<ara::core::Optional<T>>은(는) [SWS_CORE_01199]에 따라 ara::core::Optional<T> 타입의 옵셔널 객체에 대한 해시 값을 계산하는 역할을 합니다. 이를 통해 ara::core::Optional<T>을(를) std::unordered_map 또는 std::unordered_set과(와) 같은 정렬되지 않은 또는 해시 기반 표준 컨테이너의 키 타입으로 직접 사용할 수 있습니다.
사용
호출은 헤더 파일 #include "ara/core/optional.h"에 선언된 함수 호출 연산자 operator()을(를) 통해 동기식으로 수행됩니다([SWS_CORE_01199]):
- 매개변수: 옵셔널 객체
v은(는) 상수 참조ara::core::Optional<T> const &(으)로 전달됩니다([SWS_CORE_01199]). - 반환값:
size_t타입의 해시 값([SWS_CORE_01199]). - 시맨틱: 이 호출은 전달된 인스턴스에 대한 해시 함수를 실행합니다([SWS_CORE_01199]).
오류 처리 및 예외 안전성
이 연산은 noexcept(으)로 선언되어 있으며 [SWS_CORE_01199]에 따라 예외 안전(exception safe)으로 간주됩니다. 계산이 예외 없이 실패하지 않고 수행되므로 특정 AUTOSAR 오류 코드나 오류 훅(예: DET 또는 DEM)에 대한 보고는 존재하지 않습니다([SWS_CORE_01199]).
동시성 및 제약 조건
operator()이(가) const 메서드로 선언되어 있고 인수를 상수 참조로서 읽기 전용으로만 바인딩하므로, 포함된 타입 T에 대한 기본 해시 메커니즘이 부작용 없이 동작한다면 계산은 동시적이고 재진입 가능하게 실행될 수 있을 것으로 보입니다([SWS_CORE_01199]). 질문 Q-4947f900db7a4494 (열림)
이 텍스트는 AI에 의해 작성되었으며 R25-11 사양 버전을 기반으로 합니다.
| Header-Datei | #include "ara/core/optional.h" |
|---|---|
| Scope | struct std::hash< ara::core::Optional< T > > |
| Exception-Sicherheit | exception safe |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CORE_01199- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_01199@rel:R25-11#8eac3262- Content hash
8eac3262- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01199
Status: valid/unmigrated
Version: rel:R25-11#bfc5a921
Versionshistorie & Revisions (1 transition)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_CORE_01199@rel:R25-11#bfc5a921
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 · 독일어 원문