함수 hash< ara::core::Monostate [SWS_CORE_01671]
size_t operator() (ara::core::Monostate const &v) const noexcept;
Invoke the hashing function
사용
특수화 std::hash<ara::core::Monostate>의 함수 operator()는 전달된 ara::core::Monostate 객체에 대한 해시 값을 동기식으로 계산합니다 [SWS_CORE_01671]. 접근을 위해서는 헤더 파일 #include "ara/core/variant.h"를 포함해야 합니다 [SWS_CORE_01671]. 호출은 시그니처 size_t operator() (ara::core::Monostate const &v) const noexcept를 통해 이루어지며, Monostate 값에 대한 const 참조를 전달받아 결과를 size_t로 반환합니다 [SWS_CORE_01671].
오류 처리 및 예외 안전성
이 연산은 명시적으로 noexcept로 선언되어 있으며 예외 안전(exception safe)으로 분류됩니다 [SWS_CORE_01671]. 특정 오류 코드나 DET/DEM 알림은 정의되어 있지 않으며, 호출은 실패하지 않고 예외가 발생하지 않음을 보장합니다.
동시성 및 상호 작용
부작용이 없는 const 멤버 함수로서, 이 호출은 재진입 가능하며 여러 스레드에서의 병렬 접근에 전적으로 안전합니다. ara::core::Monostate는 빈 상태 타입을 나타내므로 계산된 해시 값은 모든 인스턴스에서 동일할 것으로 보입니다. 질문 Q-8cbc0fc2662e1943 (열림) 이 특수화는 ara::core::Monostate 또는 이 타입을 포함하는 Variant를 std::unordered_set와 같은 해시 기반 표준 컨테이너에서 키로 원활하게 지원하기 위한 것으로 보입니다.
이 사용 지침은 사양 R25-11을 바탕으로 자동 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/core/variant.h" |
|---|---|
| Scope | struct std::hash< ara::core::Monostate > |
| Exception-Sicherheit | exception safe |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CORE_01671- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_01671@rel:R25-11#8939fc57- Content hash
8939fc57- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01671
Status: valid/unmigrated
Version: rel:R25-11#f23dc3e8
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_01671@rel:R25-11#f23dc3e8
Recorded Revisions (3):
- R25-11
rel:R25-11#71dc5cdc2026-09-30 - R24-11
rel:R24-11#f5ed16732026-10-14 - R25-11
rel:R25-11#f23dc3e82026-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 · 독일어 원문