function flip [SWS_CORE_01712] Upstream: RS_AP_00130
reference & ara::core::Bitset< N >::reference::flip () noexcept;
As per corresponding usage in [bitset]
use
The synchronous member function flip of the proxy class ara::core::Bitset::reference serves to invert the currently referenced bit [SWS_CORE_01712]. It is declared via the header file ara/core/bitset.h. The call is parameterless directly on an existing reference instance. As return value, the function returns a reference to the modified reference object (reference&). Interpretation: According to the specification statement “As per corresponding usage in [bitset]”, the behavior is likely to correspond to that of std::bitset::reference::flip, whereby the bit value is negated and *this is returned. Question Q-23d82576a1b93125 (open)
Error Handling and Exception Safety
The interface is declared as noexcept and specified as exception safe (exception safe) [SWS_CORE_01712]. Specific error states or error codes do not occur, since no parameters are passed and no range checks are required.
Interplay in the module
Within ara::core::Bitset, the function complements the other inversion operations of the module:
ara::core::Bitset::reference::flipspecifically flips the single bit addressed via the reference [SWS_CORE_01712].ara::core::Bitset::flip()synchronously inverts all bits of the entire bitset without parameters and returns a reference to the bitset [SWS_CORE_01730].ara::core::Bitset::flip(std::size_t pos)inverts the bit at index positionposand returns aResult, which fails withIsoStdOutOfRangeViolationif the index is invalid [SWS_CORE_01731].
This text was created and curated by an AI.
| Header-Datei | #include "ara/core/bitset.h" |
|---|---|
| Scope | class ara::core::Bitset::reference |
| Exception-Sicherheit | exception safe |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CORE_01712- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_01712@rel:R25-11#aa62487c- Content hash
aa62487c- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01712
Status: valid/unmigrated
Version: rel:R25-11#aa62487c
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_01712@rel:R25-11#aa62487c
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