function hash< ara::core::Monostate [SWS_CORE_01671]
size_t operator() (ara::core::Monostate const &v) const noexcept;
Invoke the hashing function
use
The function operator() of the specialization std::hash<ara::core::Monostate> synchronously calculates the hash value for a passed ara::core::Monostate object [SWS_CORE_01671]. Header file #include "ara/core/variant.h" must be included for access [SWS_CORE_01671]. The call is made via the signature size_t operator() (ara::core::Monostate const &v) const noexcept, accepts a constant reference to the monostate value, and returns the result as size_t [SWS_CORE_01671].
Error Handling and Exception Safety
The operation is explicitly declared as noexcept and classified as exception safe (exception safe) [SWS_CORE_01671]. No specific error codes or DET/DEM messages are defined; the call does not fail and guarantees the absence of exceptions.
Concurrency and Interaction
As a side-effect-free const member function, the call is reentrant and fully safe for concurrent access from multiple threads. Since ara::core::Monostate represents an empty state type, the calculated hash value is expected to be identical for all instances. Question Q-8cbc0fc2662e1943 (open) The specialization presumably serves to seamlessly support ara::core::Monostate or variants containing this type as keys in hash-based standard containers such as std::unordered_set.
This usage note was generated automatically based on specification R25-11.
Implementer's Guide to follow (complexity 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#71dc5cdc- Content hash
71dc5cdc- 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 · German original