functie hash< ara::core::Monostate [SWS_CORE_01671]
size_t operator() (ara::core::Monostate const &v) const noexcept;
Invoke the hashing function
Gebruik
De functie operator() van de specialisatie std::hash<ara::core::Monostate> berekent synchroon de hashwaarde voor een meegegeven ara::core::Monostate-object [SWS_CORE_01671]. Voor toegang moet het headerbestand #include "ara/core/variant.h" worden ingevoegd [SWS_CORE_01671]. De aanroep vindt plaats via de signatuur size_t operator() (ara::core::Monostate const &v) const noexcept, accepteert een constante referentie naar de Monostate-waarde en levert het resultaat op als size_t [SWS_CORE_01671].
Foutafhandeling en uitzonderingsveiligheid
De bewerking is expliciet gedeclareerd als noexcept en geclassificeerd als uitzonderingsveilig (exception safe) [SWS_CORE_01671]. Er zijn geen specifieke foutcodes of DET-/DEM-meldingen gedefinieerd; de aanroep mislukt niet en garandeert het uitblijven van exceptions.
Gelijktijdigheid en wisselwerking
Als neveneffectvrije const-memberfunctie is de aanroep re-entrant en onbeperkt veilig voor parallelle toegang vanuit meerdere threads. Aangezien ara::core::Monostate een leeg toestandstype voorstelt, is de berekende hashwaarde vermoedelijk voor alle instanties identiek. Vraag Q-8cbc0fc2662e1943 (open) De specialisatie dient er vermoedelijk toe om ara::core::Monostate of varianten die dit type bevatten naadloos als sleutel in hash-gebaseerde standaardcontainers zoals std::unordered_set te ondersteunen.
Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie R25-11.
Implementer's Guide volgt (complexiteit 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#ea8630a3- Content hash
ea8630a3- 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 · Duits origineel