函数 flip [SWS_CORE_01712] Upstream: RS_AP_00130
reference & ara::core::Bitset< N >::reference::flip () noexcept;
As per corresponding usage in [bitset]
使用
代理类 ara::core::Bitset::reference 的同步成员函数 flip 用于翻转当前引用的位 [SWS_CORE_01712]。它通过头文件 ara/core/bitset.h 声明。该调用在现有引用实例上无参数直接进行。作为返回值,该函数返回对已修改 reference 对象(reference&)的引用。解读:根据规范说明“As per corresponding usage in [bitset]”,其行为推测符合 std::bitset::reference::flip,从而对位值取反并返回 *this。 问题 Q-23d82576a1b93125 (未决)
错误处理与异常安全性
该接口被声明为 noexcept 并被指定为异常安全(exception safe)[SWS_CORE_01712]。由于不传递参数且无需范围检查,因此不会出现特定的错误状态或错误码。
模块内的相互作用
在 ara::core::Bitset 内部,该函数补充了该模块的其他翻转操作:
ara::core::Bitset::reference::flip定向翻转通过引用寻址的单个位 [SWS_CORE_01712]。ara::core::Bitset::flip()在无参数的情况下同步翻转整个 Bitset 的所有位,并返回对该 Bitset 的引用 [SWS_CORE_01730]。ara::core::Bitset::flip(std::size_t pos)翻转索引位置pos处的位,并返回一个Result,在索引无效时其因IsoStdOutOfRangeViolation而失败 [SWS_CORE_01731]。
本文由 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#15e28d25- Content hash
15e28d25- 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 · 德文原文