DEENESPTFRRUARHIKOZHNL

类 ara::core::Vector

[SWS_CORE_01301]

template <typename T, typename Allocator = {<fq-allocator>}> class Vector {...};

Implementation of std::pmr::vector container from [vector]

Header-Datei#include "ara/core/vector.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

用户指南人工智能生成

面向自适应应用程序、具有多态分配器支持的动态管理顺序存储容器。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 221750794e81 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

面向自适应应用程序、具有多态分配器支持的动态管理顺序存储容器。

ara::core::Vector 是面向 AUTOSAR Adaptive Platform 的顺序容器,提供具有多态分配器支持的动态数组 [SWS_CORE_01303]。该类支持在连续内存中通过迭代器或访问运算符灵活插入、管理和随机寻址元素。该实现通过诸如 IsoStdOutOfRangeViolation [SWS_CORE_01354] 等平台特定违例(Violation)而非传统 C++ 标准异常来指示越界违规。在已定义前置条件之外的错误访问很可能会导致未定义行为。 问题 Q-656c6bf029de714e (未决)

上下文

类 ara::core::Vector 代表 AUTOSAR Adaptive Platform 的顺序容器实现,其参考了 std::pmr::vector。它在连续内存区域中管理类型为 value_type [SWS_CORE_01302] 的元素,并直接与应用程序以及类型为 allocator_type [SWS_CORE_01303] 的可配置分配器进行交互。通过集成多态分配器,该类可实现具有确定性且节省资源的内存管理。底层分配器可通过方法 get_allocator [SWS_CORE_01331] 查询。为了嵌入标准化 C++ 算法,该类提供了诸如 pointer [SWS_CORE_01304]、const_pointer [SWS_CORE_01305]、reference [SWS_CORE_01306]、const_reference [SWS_CORE_01307]、size_type [SWS_CORE_01308] 和 difference_type [SWS_CORE_01309] 等基础类型定义。

生命周期

实例的创建通过丰富的构造函数选择来进行:

所有权关系可通过复制或移动来转移。复制构造函数 [SWS_CORE_01314] 以及复制赋值运算符 [SWS_CORE_01315] 会复制数据,并且在元素类型可无异常复制的前提下是有条件的 noexcept;此外还提供带分配器的复制重载 [SWS_CORE_01323]。移动构造函数 [SWS_CORE_01316] 和移动赋值运算符 [SWS_CORE_01317] 可实现节省资源的所有权转移,其 Noexcept 保证取决于分配器的特性;此处同样存在带分配器赋值的变体 [SWS_CORE_01324]。用于后续重新赋值的是 assign [SWS_CORE_01328] [SWS_CORE_01329] [SWS_CORE_01330] 的方法重载以及针对初始化列表的赋值运算符 [SWS_CORE_01327]。

两个 vector 的内容可通过 swap [SWS_CORE_01374] 进行交换。在调用 clear [SWS_CORE_01375] 时,所包含的全部元素都会被析构,但保留已预留的容量。在生命周期结束时,析构函数 ~Vector [SWS_CORE_01326] 会释放全部资源;它被保证声明为 noexcept。

使用路径

典型的使用路径包括实例化、预分配、填充以及随后的访问:

  1. 构造与预留:创建实例,优选传入分配器 [SWS_CORE_01319]。在已知目标大小的情况下,可预先调用 reserve [SWS_CORE_01347],以避免后续的动态重新分配。
  2. 填充:元素通过 push_back 以复制 [SWS_CORE_01363] 或移动 [SWS_CORE_01364] 方式追加。利用 emplace_back [SWS_CORE_01362] 可以直接在内存中构造对象。针对性的插入操作可通过 insert [SWS_CORE_01367] [SWS_CORE_01368] [SWS_CORE_01369] [SWS_CORE_01370] [SWS_CORE_01371] 或 emplace [SWS_CORE_01366] 实现。
  3. 状态查询:占用情况通过 empty [SWS_CORE_01344] 查询,元素数量通过 size [SWS_CORE_01345] 查询,而预留的内存通过 capacity [SWS_CORE_01348] 查询。分配限制由 max_size [SWS_CORE_01346] 提供。
  4. 访问与迭代:对于随机访问,提供 operator[] [SWS_CORE_01352] [SWS_CORE_01353] 以及方法 at [SWS_CORE_01354] [SWS_CORE_01355]。边界元素通过 front [SWS_CORE_01356] [SWS_CORE_01357] 和 back [SWS_CORE_01358] [SWS_CORE_01359] 寻址;裸数据指针可通过 data [SWS_CORE_01360] [SWS_CORE_01361] 获取。遍历通过前向迭代器(如 begin [SWS_CORE_01332] [SWS_CORE_01333]、end [SWS_CORE_01334] [SWS_CORE_01335])、常量迭代器 cbegin [SWS_CORE_01340]、cend [SWS_CORE_01341] 或逆向迭代器 [SWS_CORE_01336] [SWS_CORE_01337] [SWS_CORE_01338] [SWS_CORE_01339] [SWS_CORE_01342] [SWS_CORE_01343] 并利用 iterator [SWS_CORE_01310]、const_iterator [SWS_CORE_01311]、reverse_iterator [SWS_CORE_01312] 和 const_reverse_iterator [SWS_CORE_01313] 进行。
  5. 缩减与清理:使用 pop_back [SWS_CORE_01365] 或 erase [SWS_CORE_01372] [SWS_CORE_01373] 移除单个元素。未使用的容量可通过 shrink_to_fit [SWS_CORE_01349] 释放。
Typischer Nutzungsablauf von ara::core::Vector应用VectorAllocatorUse Case: 初始化与内存预留Vector(alloc)Allokator registrierenreserve(n)Speicher anfordernSpeicher bereitgestelltUse Case: 添加元素push_back(elem) / emplace_back(...)在内存中构造元素Use Case: Elementzugriffat(i)alti < size()元素的引用i >= size()IsoStdOutOfRangeViolationUse Case: Bereinigungclear()析构元素

时序图:从分配、填充到访问的容器使用典型流程。来源:[SWS_CORE_01319]、[SWS_CORE_01347]、[SWS_CORE_01363]、[SWS_CORE_01354]、[SWS_CORE_01375]

错误场景

不同于标准 C++ 行为,ara::core::Vector 通过平台特定的违例而非常规 C++ 异常来指示错误状态:

本指南由 AI 系统基于 AUTOSAR Adaptive R25-11 的规范要求生成。

成员图

类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__Vector473 Vector + Vector() + operator=() + ~Vector() + capacity() + empty() + max_size() + reserve() + shrink_to_fit() + size() + at() + back() + data() + front() + operator[]() + begin() + cbegin() … 17 weitere

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

Vector 函数 10

except for the following deviations: 1. The function is noexcept ≙ [vector]

重载 Vector 10
Vector (const Vector &other) noexcept(std::is_nothrow_copy_ constructible< T >::value)=default; SWS_CORE_01314
Vector (Vector &&other) noexcept(std::allocator_traits< Allocator >::propagate_on_container_move_assignment::value||std::allocator_ traits< Allocator >::is_always_equal::value)=default; SWS_CORE_01316
Vector () noexcept(noexcept(Allocator())); SWS_CORE_01318
explicit Vector (const Allocator &) noexcept; SWS_CORE_01319
explicit Vector (size_type n, const Allocator &=Allocator()); SWS_CORE_01320
Vector (size_type n, const T &value, const Allocator &=Allocator()); SWS_CORE_01321
template <class InputIterator> Vector (InputIterator first, InputIterator last, const Allocator &=Allocator()); SWS_CORE_01322
Vector (const Vector &, const Allocator &); SWS_CORE_01323
Vector (Vector &&, const Allocator &); SWS_CORE_01324
~Vector 函数

except for the following deviations: 1. The function is noexcept ≙ [vector]

~Vector () noexcept;

方法

assign 函数 3

≙ [vector]

重载 assign 3
template <class InputIterator> void assign (InputIterator first, InputIterator last); SWS_CORE_01328
void assign (size_type n, const T &u); SWS_CORE_01329
at 函数 2

except for the following deviations: 1. if (n >= size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [vector]

重载 at 2
back 函数 2

≙ [vector]

重载 back 2
begin 函数 2

≙ [vector]

重载 begin 2
iterator begin () noexcept; SWS_CORE_01332
const_iterator begin () const noexcept; SWS_CORE_01333
capacity 函数

≙ [vector]

size_type capacity () const noexcept;
cbegin 函数

≙ [vector]

const_iterator cbegin () const noexcept;
cend 函数

≙ [vector]

const_iterator cend () const noexcept;
clear 函数

≙ [vector]

void clear () noexcept;
crbegin 函数

≙ [vector]

const_reverse_iterator crbegin () const noexcept;
crend 函数

≙ [vector]

const_reverse_iterator crend () const noexcept;
data 函数 2

≙ [vector]

重载 data 2
T * data () noexcept; SWS_CORE_01360
const T * data () const noexcept; SWS_CORE_01361
emplace 函数

≙ [vector]

template <class... Args> iterator emplace (const_iterator position, Args &&... args);

≙ [vector]

template <class... Args> reference emplace_back (Args &&... args);
empty 函数

≙ [vector]

bool empty () const noexcept;
end 函数 2

≙ [vector]

重载 end 2
iterator end () noexcept; SWS_CORE_01334
const_iterator end () const noexcept; SWS_CORE_01335
erase 函数 2

≙ [vector]

重载 erase 2
front 函数 2

≙ [vector]

重载 front 2

≙ [vector]

allocator_type get_allocator () const noexcept;
insert 函数 5

≙ [vector]

重载 insert 5
iterator insert (const_iterator position, const T &x); SWS_CORE_01367
iterator insert (const_iterator position, T &&x); SWS_CORE_01368
iterator insert (const_iterator position, size_type n, const T &x); SWS_CORE_01369
template <class InputIterator> iterator insert (const_iterator position, InputIterator first, Input Iterator last); SWS_CORE_01370
max_size 函数

≙ [vector]

size_type max_size () const noexcept;
pop_back 函数

≙ [vector]

void pop_back ();
push_back 函数 2

except for the following deviations: 1. Function is conditionally noexcept: (see [vector.modifiers]) ≙ [vector]

重载 push_back 2
void push_back (const T &x) noexcept(std::is_nothrow_copy_assignable< T >::value); SWS_CORE_01363
void push_back (T &&x) noexcept(std::is_nothrow_move_assignable< T >::value); SWS_CORE_01364
rbegin 函数 2

≙ [vector]

重载 rbegin 2
reverse_iterator rbegin () noexcept; SWS_CORE_01336
const_reverse_iterator rbegin () const noexcept; SWS_CORE_01337
rend 函数 2

≙ [vector]

重载 rend 2
const_reverse_iterator rend () const noexcept; SWS_CORE_01339
reserve 函数

except for the following deviations: 1. if (n < max_size()) IsoStdLengthErrorViolation is raised instead of std:: length_error ≙ [vector]

void reserve (size_type n);
resize 函数 2

except for the following deviations: 1. if (sz > max_size()) IsoStdLengthErrorViolation is raised instead of std:: length_error ≙ [vector]

重载 resize 2
void resize (size_type sz); SWS_CORE_01350
void resize (size_type sz, const T &c); SWS_CORE_01351

≙ [vector]

void shrink_to_fit ();
size 函数

≙ [vector]

size_type size () const noexcept;
swap 函数

≙ [vector]

void swap (Vector &) noexcept(std::allocator_traits< Allocator >::propagate_on_container_swap::value||std::allocator_traits< Allocator >::is_always_equal::value);

运算符

operator= 函数 3

except for the following deviations: 1. Function is conditionally noexcept Implementation {<may-throw-on-allocate>} shall be an implementation-defined type ≙ [vector]

重载 = 3
Vector & operator= (const Vector &other) noexcept(std::is_nothrow_ copy_assignable< T >::value)=default; SWS_CORE_01315
Vector & operator= (Vector &&x) noexcept(std::allocator_traits< Allocator >::propagate_on_container_move_ assignment::value||std::allocator_traits< Allocator >::is_always_ equal::value); SWS_CORE_01317
operator[] 函数 2

≙ [vector]

重载 [] 2

类型别名

allocator_type 类型别名

≙ [vector]

using allocator_type = Allocator;
const_iterator 类型别名

Implementation {<const-iterator-type>} shall be an implementation-defined type ≙ [vector]

using const_iterator = {<const-iterator-type>};
const_pointer 类型别名

≙ [vector]

using const_pointer = typename std::allocator_ traits<Allocator>::const_pointer;
const_reference 类型别名

≙ [vector]

using const_reference = const value_type&;

≙ [vector]

using const_reverse_iterator = std::reverse_iterator<const_iterator>;
difference_type 类型别名

Implementation {<difference-type>} shall be an implementation-defined type ≙ [vector]

using difference_type = {<difference-type>};
iterator 类型别名

Implementation {<iterator-type>} shall be an implementation-defined type ≙ [vector]

using iterator = {<iterator-type>};
pointer 类型别名

≙ [vector]

using pointer = typename std::allocator_traits<Allocator>::pointer;
reference 类型别名

≙ [vector]

reverse_iterator 类型别名

≙ [vector]

using reverse_iterator = std::reverse_iterator<iterator>;
size_type 类型别名

Implementation {<size-type>} shall be an implementation-defined type ≙ [vector]

using size_type = {<size-type>};
value_type 类型别名

≙ [vector]

using value_type = T;

方法文档

函数 Vector [SWS_CORE_01314] Upstream: RS_AP_00145

Vector (const Vector &other) noexcept(std::is_nothrow_copy_ constructible< T >::value)=default;

As per corresponding usage in [vector] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01314
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01314@rel:R25-11#f0767177
Content hash
f0767177
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01314
Status: valid/unmigrated Version: rel:R25-11#6bbbafe4 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_01314@rel:R25-11#6bbbafe4
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01316] Upstream: RS_AP_00145

Vector (Vector &&other) noexcept(std::allocator_traits< Allocator >::propagate_on_container_move_assignment::value||std::allocator_ traits< Allocator >::is_always_equal::value)=default;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01316
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01316@rel:R25-11#fdf4ab41
Content hash
fdf4ab41
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01316
Status: valid/unmigrated Version: rel:R25-11#8b422c0e 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_01316@rel:R25-11#8b422c0e
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01318]

Vector () noexcept(noexcept(Allocator()));

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01318
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01318@rel:R25-11#2c425890
Content hash
2c425890
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01318
Status: valid/unmigrated Version: rel:R25-11#c06f4fa7 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_01318@rel:R25-11#c06f4fa7
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01319]

explicit Vector (const Allocator &) noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01319
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01319@rel:R25-11#6b09d5c6
Content hash
6b09d5c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01319
Status: valid/unmigrated Version: rel:R25-11#9f488945 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_01319@rel:R25-11#9f488945
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01320]

explicit Vector (size_type n, const Allocator &=Allocator());

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01320
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01320@rel:R25-11#ec18da78
Content hash
ec18da78
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01320
Status: valid/unmigrated Version: rel:R25-11#3a7c29ca 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_01320@rel:R25-11#3a7c29ca
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01321]

Vector (size_type n, const T &value, const Allocator &=Allocator());

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01321
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01321@rel:R25-11#fa10157c
Content hash
fa10157c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01321
Status: valid/unmigrated Version: rel:R25-11#45272b85 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_01321@rel:R25-11#45272b85
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01322]

template <class InputIterator> Vector (InputIterator first, InputIterator last, const Allocator &=Allocator());

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01322
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01322@rel:R25-11#d8685c20
Content hash
d8685c20
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01322
Status: valid/unmigrated Version: rel:R25-11#8322ba24 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_01322@rel:R25-11#8322ba24
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01323]

Vector (const Vector &, const Allocator &);

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01323
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01323@rel:R25-11#f57a8a58
Content hash
f57a8a58
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01323
Status: valid/unmigrated Version: rel:R25-11#bc405188 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_01323@rel:R25-11#bc405188
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01324]

Vector (Vector &&, const Allocator &);

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01324
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01324@rel:R25-11#3d90fb74
Content hash
3d90fb74
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01324
Status: valid/unmigrated Version: rel:R25-11#a4a30907 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_01324@rel:R25-11#a4a30907
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 Vector [SWS_CORE_01325]

Vector (std::initializer_list< T >, const Allocator &=Allocator());

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01325
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01325@rel:R25-11#4ea5a405
Content hash
4ea5a405
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01325
Status: valid/unmigrated Version: rel:R25-11#b7002f8f 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_01325@rel:R25-11#b7002f8f
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 assign [SWS_CORE_01328]

template <class InputIterator> void assign (InputIterator first, InputIterator last);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 196b7382f846 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与调用上下文

针对 ara::core::Vector 的模板成员函数 assign 根据 std::vector [SWS_CORE_01328] 中的相应用法,使用范围 [first, last) 的元素替换向量的当前内容。该函数在头文件 #include "ara/core/vector.h" 中定义,接收两个输入迭代器且不返回值(void)[SWS_CORE_01328]。

错误处理与异常安全性

该赋值函数被归类为非异常安全(not exception safe)[SWS_CORE_01328]。如果在元素处理期间或在必要的内部内存分配时发生异常,容器可能会停留在未完成的状态,且没有已定义的安全保证。

并发性与边界条件

对于并发调用,在同时使用相同的 ara::core::Vector 实例时可能需要外部同步,因为规范不保证线程安全。 问题 Q-5ada879738b3856d (未决)此外,无误运行的前提是 first 和 last 构成有效的迭代器范围。

core 模块内的协作

除了通过迭代器进行范围赋值外,在 ara::core::Vector 中还提供了带有数量和参考值的重载 [SWS_CORE_01329] 以及针对 std::initializer_list<T> [SWS_CORE_01330] 的重载,它们同样声明为非异常安全。在 ara::core::BasicString [SWS_CORE_03091] 的模块上下文中也存在可比的赋值模式。

此使用说明为自动生成,完全基于 R25-11 规范的陈述。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01328
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01328@rel:R25-11#30e5a4fb
Content hash
30e5a4fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01328
Status: valid/unmigrated Version: rel:R25-11#f5f38b86 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_01328@rel:R25-11#f5f38b86
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 assign [SWS_CORE_01329]

void assign (size_type n, const T &u);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c2495d7f215c 来源 未决问题(3)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

函数 assign 属于容器类 ara::core::Vector,并通过头文件 #include "ara/core/vector.h" 提供 [SWS_CORE_01329]。它采用签名 void assign (size_type n, const T &u);,将 vector 的当前内容完全替换为 n 个值为 u 的元素。该调用同步进行且没有返回值(void)。根据规范,其行为取决于标准容器 [vector] [SWS_CORE_01329] 中的对应用法,这可能是指 std::vector::assign 的语义。 问题 Q-3630162224047ee0 (未决)

错误处理

在故障安全性方面,该函数被明确归类为 not exception safe [SWS_CORE_01329]。未定义 AUTOSAR 特定的错误代码、错误类或向 DET 即 DEM 的报告。如果在内存分配期间或在赋值元素时发生异常,该函数可能不提供恢复原始对象状态的保证。 问题 Q-f4eb9afa74847bf7 (未决)

并发性与限制

由于 assign 会修改容器实例的状态并可能修改其容量,因此在同一实例上的调用不是可重入的。鉴于规范中没有单独的线程安全承诺,在没有外部同步的情况下,对同一 Vector 对象的并发读或写访问可能不是线程安全的。 问题 Q-1df95afd2340ec57 (未决)

相互作用

该函数与类 ara::core::Vector 的其他重载一起构成了重新填充 vector 内容的接口:

  • 根据 [SWS_CORE_01328] 基于迭代器在范围 assign(InputIterator first, InputIterator last) 上的赋值。
  • 根据 [SWS_CORE_01330] 通过初始化列表 assign(std::initializer_list<T>) 进行赋值。

这两种替代重载与 [SWS_CORE_01329] 具有相同的特性,即被指定为 not exception safe。

本文由 AI 创建,仅供参考。唯有 AUTOSAR 文档的规范具有约束力。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01329
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01329@rel:R25-11#6ab16138
Content hash
6ab16138
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01329
Status: valid/unmigrated Version: rel:R25-11#a45711a8 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_01329@rel:R25-11#a45711a8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 assign [SWS_CORE_01330]

void assign (std::initializer_list< T >);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a53aaf2941a9 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::Vector 的成员函数 assign 通过提供的初始化列表 std::initializer_list<T> 的元素同步替换 vector 实例的全部原有内容([SWS_CORE_01330])。在此过程中,功能行为遵循 [vector]([SWS_CORE_01330])中标准容器的对应用法。该函数没有返回值(void),并通过头文件 ara/core/vector.h 声明([SWS_CORE_01330])。

对于错误处理,规定该方法被归类为 not exception safe([SWS_CORE_01330])。解释:如果在内存分配期间或在复制或移动元素时发生异常,该实现可能不提供强异常安全性;vector 可能会保持在修改后的或不完整的状态。 问题 Q-ac196ecfba85d821 (未决)

在与 ara::core::Vector 的其他接口交互中,该函数补充了其他赋值重载,例如通过迭代器范围进行初始化([SWS_CORE_01328])和重复赋值单个值([SWS_CORE_01329])。所有这些 assign 变体都具有非异常安全的特性。在核心库中,通过 std::initializer_list 的类似赋值语义也存在于 ara::core::BasicString([SWS_CORE_03092])中。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01330@rel:R25-11#a3b09039
Content hash
a3b09039
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01330
Status: valid/unmigrated Version: rel:R25-11#9e0314c2 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_01330@rel:R25-11#9e0314c2
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 at [SWS_CORE_01354]

const_reference at (size_type n) const;

As per corresponding usage in [vector] except for the following deviations: 1. if (n >= size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7e8643f8168a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与语义

成员函数 at 提供在指定索引 n 处对容器 ara::core::Vector 元素的同步读访问,并返回对该元素的 const_reference [SWS_CORE_01354]。该声明通过头文件 ara/core/vector.h 可用 [SWS_CORE_01354]。其语义对应于 C++ 标准中标准的 std::vector::at 函数,但在错误处理方面有所不同 [SWS_CORE_01354]。

错误处理与边界条件

如果请求达到或超出容器大小的索引(n >= size()),将触发 IsoStdOutOfRangeViolation 而不是标准异常 std::out_of_range [SWS_CORE_01354]。该函数声明为 not exception safe [SWS_CORE_01354]。解释:由于没有抛出 C++ 异常,触发违规可能会导致程序流中止,这可能会与诸如 AddAbortHandler 之类的处理机制相互作用 [SWS_CORE_00054]。 问题 Q-2182d648ff4a28b8 (未决)

模块内的相互作用

对于修改性访问,提供了返回值为 reference 的非常量重载,该重载遵循相同的错误路径 [SWS_CORE_01355]。带有 IsoStdOutOfRangeViolation 的相同偏离行为也存在于其他 Core 数据类型中,如 ara::core::Array [SWS_CORE_01273] [SWS_CORE_01274] 和 ara::core::BasicString [SWS_CORE_03063]。

此使用说明是根据 AUTOSAR 规范 R25-11 自动创建的。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01354
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01354@rel:R25-11#20672c9d
Content hash
20672c9d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01354
Status: valid/unmigrated Version: rel:R25-11#50ad7bab 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_01354@rel:R25-11#50ad7bab
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 at [SWS_CORE_01355]

reference at (size_type n);

As per corresponding usage in [vector] 1. if (n >= size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: dee504db9fff 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

通过头文件 #include "ara/core/vector.h" 提供的类 ara::core::Vector([SWS_CORE_01355])的成员函数 at 支持对向量中单个元素进行带索引的读写访问。该函数接受类型为 size_type 的位置索引 n,并返回对指定位置元素的易变引用(reference)。其语义遵循 [vector] 中的相应实现。解释:由于该接口按照 C++ 标准声明为同步,执行可能直接在调用线程上下文中阻塞进行。 问题 Q-81f43622c244ce91 (未决)

与 ISO C++ 标准向量不同,当索引越界(n >= size())时,该函数会触发违规 IsoStdOutOfRangeViolation,而非标准异常 std::out_of_range([SWS_CORE_01355])。在规范中,该函数被归类为非异常安全(not exception safe)([SWS_CORE_01355])。解释:由于未针对此向量访问指定同步机制,对同一实例不受保护的并发访问可能不是线程安全的。 问题 Q-e65ae0c574610719 (未决)

对于常量只读访问,可使用重载 const_reference at(size_type n) const,它同样会报告 IsoStdOutOfRangeViolation 且被视为非异常安全([SWS_CORE_01354])。Core 库中的相关容器和类型在错误访问时也使用相同的违规语义,包括 ara::core::Array([SWS_CORE_01273]、[SWS_CORE_01274])、ara::core::Map([SWS_CORE_01456]、[SWS_CORE_01457])、ara::core::StringView([SWS_CORE_02133])以及 ara::core::BasicString([SWS_CORE_03063]、[SWS_CORE_03064])。

本文本由 AI 生成,仅供参考。唯一具有约束力的是 AUTOSAR 文档规范。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdOut- Description as per std::out_of_range. OfRangeViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01355
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01355@rel:R25-11#c62a40de
Content hash
c62a40de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01355
Status: valid/unmigrated Version: rel:R25-11#bbf1c84b 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_01355@rel:R25-11#bbf1c84b
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 back [SWS_CORE_01358]

reference back ();

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01358
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01358@rel:R25-11#c49b6d7e
Content hash
c49b6d7e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01358
Status: valid/unmigrated Version: rel:R25-11#323e405e 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_01358@rel:R25-11#323e405e
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 back [SWS_CORE_01359]

const_reference back () const;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01359
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01359@rel:R25-11#427313e6
Content hash
427313e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01359
Status: valid/unmigrated Version: rel:R25-11#65fcdf20 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_01359@rel:R25-11#65fcdf20
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 begin [SWS_CORE_01332]

iterator begin () noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01332
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01332@rel:R25-11#9fc6a78d
Content hash
9fc6a78d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01332
Status: valid/unmigrated Version: rel:R25-11#926f35ff 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_01332@rel:R25-11#926f35ff
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 begin [SWS_CORE_01333]

const_iterator begin () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01333
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01333@rel:R25-11#7ffd3120
Content hash
7ffd3120
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01333
Status: valid/unmigrated Version: rel:R25-11#ef39435a 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_01333@rel:R25-11#ef39435a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 capacity [SWS_CORE_01348]

size_type capacity () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01348
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01348@rel:R25-11#fa1b4ea4
Content hash
fa1b4ea4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01348
Status: valid/unmigrated Version: rel:R25-11#b841ad32 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_01348@rel:R25-11#b841ad32
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 cbegin [SWS_CORE_01340]

const_iterator cbegin () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01340
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01340@rel:R25-11#a0cb56e0
Content hash
a0cb56e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01340
Status: valid/unmigrated Version: rel:R25-11#46ec5f29 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_01340@rel:R25-11#46ec5f29
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 cend [SWS_CORE_01341]

const_iterator cend () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01341
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01341@rel:R25-11#67da99e0
Content hash
67da99e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01341
Status: valid/unmigrated Version: rel:R25-11#2835708f 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_01341@rel:R25-11#2835708f
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 clear [SWS_CORE_01375]

void clear () noexcept;

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: de070e9c410a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与语义

类 ara::core::Vector 的方法 clear() 用于根据 [SWS_CORE_01375] 完全清空 vector。该函数在头文件 ara/core/vector.h 中声明,可同步调用,不接收参数且不返回值(void)。其功能语义遵循 [vector] 的相应规范。解释:这可能意味着 vector 中存在的所有元素都将被析构,元素数量降为 0,而分配的内存容量大概保持不变。 问题 Q-ecde315e61455c32 (未决)

错误处理与异常安全性

该调用适用标识 noexcept,并根据 [SWS_CORE_01375] 归类为异常安全(exception safe)。由于该方法保证不抛出异常,因此不存在特定的错误码,并且在出错时既不发送 DET 错误消息,也不发送 DEM 错误消息。

与相关容器的交互

异常安全的 clear() 函数的概念在 ara::core 中被一致地推广到了其他数据结构。因此,头文件 ara/core/map.h 中的 ara::core::Map 根据 [map] 提供了相同的 clear() 方法 [SWS_CORE_01485]。同样,头文件 ara/core/string.h 中的 ara::core::BasicString 根据 [basic.string] 提供了等效的 clear() 操作 [SWS_CORE_03057]。

本使用说明由自动化生成,完全基于所传入有效载荷的规范。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01375
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01375@rel:R25-11#5c63e80b
Content hash
5c63e80b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01375
Status: valid/unmigrated Version: rel:R25-11#228a1711 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_01375@rel:R25-11#228a1711
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 crbegin [SWS_CORE_01342]

const_reverse_iterator crbegin () const noexcept;

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f17de2d5c630 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CORE_01342],ara::core::Vector 的成员函数 crbegin 提供指向序列最后一个元素的常量反向迭代器(const_reverse_iterator)。该调用为同步且无参数调用,通过头文件 ara/core/vector.h 提供。其行为符合底层标准 C++ 库对 [vector] 的规范。对于空容器,返回的迭代器可能对应于 crend() 的值(基于 [vector] 的解释)。 问题 Q-a2badba87f86486c (未决)

在错误处理方面,该接口带有标识符 noexcept,并被声明为异常安全(exception safe)([SWS_CORE_01342])。调用不会抛出异常,也不会向运行时或诊断监视机制报告错误。

关于并发与限制,该方法被限定为 const。只要没有针对该 vector 执行并发写操作,从多个线程对同一实例进行并发读访问就应该是可重入且线程安全的(类比 C++ 容器模型的解释)。 问题 Q-094ba5878c1adc74 (未决)

在模块 core 中,常量反向迭代的概念在各种类型中得到了一致实现。类似的接口存在于 ara::core::Array ([SWS_CORE_01260])、ara::core::Map ([SWS_CORE_01450])、ara::core::Span ([SWS_CORE_01978])、ara::core::StringView ([SWS_CORE_02126]) 以及 ara::core::BasicString ([SWS_CORE_03049])。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01342
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01342@rel:R25-11#88560382
Content hash
88560382
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01342
Status: valid/unmigrated Version: rel:R25-11#aedebe1d 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_01342@rel:R25-11#aedebe1d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 crend [SWS_CORE_01343]

const_reverse_iterator crend () const noexcept;

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b6ed373b1e91 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::Vector 的成员函数 crend 提供一个常量反向迭代器,该迭代器指向 vector 第一个元素之前的理论元素 [SWS_CORE_01343]。其语义遵循 C++ 标准中针对 std::vector 的相应用法(“As per corresponding usage in [vector]”)[SWS_CORE_01343]。

使用与行为

  • 调用上下文与参数:该方法无参数且声明为 const,因此可以在 ara::core::Vector 的常量及非常量实例上同步调用 [SWS_CORE_01343]。
  • 返回值:返回一个 const_reverse_iterator,用于标记反向迭代的逻辑终点 [SWS_CORE_01343]。

错误处理与异常安全性

该函数指定了 noexcept,根据规范被视为异常安全(“exception safe”)[SWS_CORE_01343]。不返回特定错误代码,且不会发生异常。

与相关容器的交互

指向反向迭代终点的常量反向迭代器概念在 ara::core 中跨容器统一提供。具有相同异常处理(noexcept)的类似接口还存在于 ara::core::Array [SWS_CORE_01261]、ara::core::Map [SWS_CORE_01451]、ara::core::Span [SWS_CORE_01979]、ara::core::StringView [SWS_CORE_02127] 以及 ara::core::BasicString [SWS_CORE_03050] 等。

本使用说明由 AI 生成,并基于 Release R25-11 的规范要求。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01343
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01343@rel:R25-11#e52d6ff1
Content hash
e52d6ff1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01343
Status: valid/unmigrated Version: rel:R25-11#40033501 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_01343@rel:R25-11#40033501
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 data [SWS_CORE_01360]

T * data () noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01360
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01360@rel:R25-11#e05a59ad
Content hash
e05a59ad
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01360
Status: valid/unmigrated Version: rel:R25-11#050c30ae 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_01360@rel:R25-11#050c30ae
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 data [SWS_CORE_01361]

const T * data () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01361
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01361@rel:R25-11#57475d47
Content hash
57475d47
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01361
Status: valid/unmigrated Version: rel:R25-11#9fee8265 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_01361@rel:R25-11#9fee8265
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 emplace [SWS_CORE_01366]

template <class... Args> iterator emplace (const_iterator position, Args &&...     args);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: bec6ec9ae706 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

函数 emplace 通过转发传入的参数,在指定位置直接将元素插入到 ara::core::Vector 中 [SWS_CORE_01366]。声明位于头文件 #include "ara/core/vector.h" 中,并遵循 [vector] 中的相应用法 [SWS_CORE_01366]。

使用

对 emplace 的调用同步进行,并接收类型为 const_iterator 的位置迭代器 position 以及类型为 Args&&... 的参数包 args 作为参数 [SWS_CORE_01366]。作为返回值,该函数提供指向新构造元素的 iterator [SWS_CORE_01366]。

错误处理与并发

对于 ara::core::Vector 中的 emplace,异常安全性被明确指定为 not exception safe [SWS_CORE_01366]。标准中未定义特定的错误代码、DET 或 DEM 消息。解释:由于缺乏内部同步机制,在没有外部保护的情况下,对同一实例并发调用 emplace 可能不是线程安全的。 问题 Q-d72278df37e86c8a (未决)

相互作用

在 ara::core 内部,emplace 的异常安全性因类型而异:

本使用说明基于规范 R25-11 自动生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01366
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01366@rel:R25-11#a8d87e9c
Content hash
a8d87e9c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01366
Status: valid/unmigrated Version: rel:R25-11#1c9b4811 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_01366@rel:R25-11#1c9b4811
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 emplace_back [SWS_CORE_01362]

template <class... Args> reference emplace_back (Args &&...       args);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: ee506cbddbcf 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

根据 [SWS_CORE_01362],类 ara::core::Vector 的模板方法 emplace_back 用于直接在向量末尾构造一个新元素。传递参数 Args&&... args 按照 [vector] 的语义直接转发给元素类型的构造函数。作为返回值,该函数返回对新创建元素的引用(reference)。使用时必须包含头文件 #include "ara/core/vector.h" [SWS_CORE_01362]。

错误处理与异常安全性

在异常安全性方面,该操作在 [SWS_CORE_01362] 中被显式声明为 not exception safe。规范中未定义特定错误码、回退值或向错误服务(如 DET 或 DEM)发送的通知。

限制与行为

由于 not exception safe 特性以及参考 [vector],在发生错误时(例如内存分配或构造失败),可能无法保证保留容器先前的状态(推测)。 问题 Q-ca44b2f27d8ae1c8 (未决)因此,调用方必须确保预先避免可能的错误条件。

该文本由 AI 生成,用作参考指引。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01362
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01362@rel:R25-11#f5b1fcb2
Content hash
f5b1fcb2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01362
Status: valid/unmigrated Version: rel:R25-11#663f1bd8 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_01362@rel:R25-11#663f1bd8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 empty [SWS_CORE_01344]

bool empty () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01344
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01344@rel:R25-11#7bd004a6
Content hash
7bd004a6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01344
Status: valid/unmigrated Version: rel:R25-11#c71e9f70 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_01344@rel:R25-11#c71e9f70
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 end [SWS_CORE_01334]

iterator end () noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01334
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01334@rel:R25-11#b74b4f45
Content hash
b74b4f45
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01334
Status: valid/unmigrated Version: rel:R25-11#e50f7083 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_01334@rel:R25-11#e50f7083
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 end [SWS_CORE_01335]

const_iterator end () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01335
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01335@rel:R25-11#76b5e98a
Content hash
76b5e98a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01335
Status: valid/unmigrated Version: rel:R25-11#d0dd0453 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_01335@rel:R25-11#d0dd0453
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 erase [SWS_CORE_01372]

iterator erase (const_iterator position);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 64de7076f3b2 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CORE_01372],类 ara::core::Vector 的函数 erase 用于同步移除参数 position (const_iterator) 所指定位置处的单个元素。作为返回值,它返回指向后续元素(如果被删除元素位于最后一个位置,则指向容器末尾)的 iterator,这与 [vector] 中引用的语义一致。该函数在头文件 #include "ara/core/vector.h" 中声明。

关于错误处理,该操作在规范中被明确指定为非异常安全(“not exception safe”)[SWS_CORE_01372]。未定义特定的错误返回值、DET 或 DEM 消息;因此,无效或不可解引用的迭代器可能会导致未定义行为。 问题 Q-efa4c40e48a6f98d (未决)作为解释:假定由于 vector 中元素的移动,后续迭代器和引用将失效,这符合 [vector] 的标准语义。

在 ara::core::Vector 内的交互中,除在单个位置进行删除外,还存在根据 [SWS_CORE_01373] 针对整个范围的重载 erase(first, last)。在 Adaptive 核心库的其他容器中也可以找到类似的移除条目接口:ara::core::Map 提供了基于位置和基于键的重载([SWS_CORE_01480]、[SWS_CORE_01481]、[SWS_CORE_01482]、[SWS_CORE_01483]),而 ara::core::BasicString 则包含基于索引和基于迭代器的变体([SWS_CORE_03102]、[SWS_CORE_03103]、[SWS_CORE_03104])。

本使用说明自动生成,并基于规范的要求。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01372
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01372@rel:R25-11#560263b7
Content hash
560263b7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01372
Status: valid/unmigrated Version: rel:R25-11#4c162b79 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_01372@rel:R25-11#4c162b79
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 erase [SWS_CORE_01373]

iterator erase (const_iterator first, const_iterator last);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 494dc0882ae6 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据规范 [SWS_CORE_01373],类 ara::core::Vector 的成员函数 erase 用于从 vector 中移除一个元素范围。该声明可通过头文件 ara/core/vector.h 获取。其语义遵循标准 vector 中的相应用法(“As per corresponding usage in [vector]”)。作为参数,传入了两个用于界定待删除范围的迭代器 first 和 last;返回指向后续元素的 iterator。

关于错误处理和异常安全性,该操作在规范中被明确归类为“not exception safe”[SWS_CORE_01373]。与其他容器操作不同,该函数未定义特定的错误代码或错误违规(Violations)。若在执行过程中发生错误,推测会使容器处于不一致状态。 问题 (未决)

关于并发和限制,规范未作说明;然而,对 ara::core::Vector 的修改操作可能不是可重入的,在多线程操作中预计需要外部保护。 问题 Q-07fc291a523a82f1 (未决)

在与 Core 模块其他接口的交互中,该函数补充了通过 iterator erase(const_iterator position) [SWS_CORE_01372] 移除特定位置单个元素的重载。遵循相同模式的对应范围删除也通过 [SWS_CORE_01483] 为关联容器(如 ara::core::Map)以及通过 [SWS_CORE_03104] 为 ara::core::BasicString 中的字符串进行了定义。

本使用说明由 AI 基于 AUTOSAR R25-11 生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01373
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01373@rel:R25-11#73151c16
Content hash
73151c16
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01373
Status: valid/unmigrated Version: rel:R25-11#f6978dd1 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_01373@rel:R25-11#f6978dd1
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 front [SWS_CORE_01356]

reference front ();

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01356
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01356@rel:R25-11#4641a49c
Content hash
4641a49c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01356
Status: valid/unmigrated Version: rel:R25-11#348c328a 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_01356@rel:R25-11#348c328a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 front [SWS_CORE_01357]

const_reference front () const;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01357
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01357@rel:R25-11#4aeb6a55
Content hash
4aeb6a55
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01357
Status: valid/unmigrated Version: rel:R25-11#d31b25f8 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_01357@rel:R25-11#d31b25f8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 get_allocator [SWS_CORE_01331]

allocator_type get_allocator () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01331
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01331@rel:R25-11#548b9957
Content hash
548b9957
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01331
Status: valid/unmigrated Version: rel:R25-11#9e59de22 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_01331@rel:R25-11#9e59de22
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 insert [SWS_CORE_01367]

iterator insert (const_iterator position, const T &x);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a3ba159fb66f 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::core::Vector 的成员函数 insert 用于在指定位置同步插入元素 [SWS_CORE_01367]。它在头文件 #include "ara/core/vector.h" 中定义 [SWS_CORE_01367]。该函数接收一个标记目标位置的 const_iterator 类型迭代器 position,以及对要插入的 const T & 类型对象的常量引用 x 作为参数 [SWS_CORE_01367]。返回值是一个指向新插入元素的 iterator [SWS_CORE_01367]。其功能行为遵循在标准 vector 中的相应用法(“As per corresponding usage in [vector]”)[SWS_CORE_01367]。

错误处理与限制

规范明确将该函数归类为非异常安全(“not exception safe”)[SWS_CORE_01367]。未定义特定的错误代码、错误情况下的返回值或向 DET 或 DEM 发送的消息。解释:如果内部内存分配或元素复制失败,大概率无法保证容器状态的保持或迭代器的有效性。 问题 Q-d2b5552bb124d16e (未决)

相互作用

在 ara::core::Vector 内部存在 insert 的多个重载,以提供备选的插入操作:

在模块 core 中,关联容器(如 ara::core::Map [SWS_CORE_01460])以及字符串类(如 ara::core::BasicString [SWS_CORE_03093])也定义了类似的 insert 方法。

本使用说明由自动生成。它完全基于 AUTOSAR 版本 R25-11 的规范。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01367
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01367@rel:R25-11#54c0a951
Content hash
54c0a951
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01367
Status: valid/unmigrated Version: rel:R25-11#fab990fd 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_01367@rel:R25-11#fab990fd
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 insert [SWS_CORE_01368]

iterator insert (const_iterator position, T &&x);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 60fc9467623b 来源 未决问题(3)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

符合 [SWS_CORE_01368] 的方法 insert 在头文件 #include "ara/core/vector.h" 中被定义为类 ara::core::Vector 的成员函数。它用于通过右值引用(T&& x)在迭代器 position 之前的位置同步插入元素。根据对 [vector] 的引用,该函数可能会通过移动语义将 x 的内容传输到 vector 中,并返回指向新插入元素的 iterator。 问题 Q-97f2551da8fd303f (未决)

错误处理与限制

规范将 [SWS_CORE_01368] 中的该函数归类为 not exception safe。未定义特定的错误代码、用于指示错误的返回值或向 DET 或 DEM 发送的消息。解释:如果内部内存分配或元素移动失败,则可能无法保证异常安全性,这可能会使容器处于不一致状态或导致中止。 问题 Q-297ef8ff6f6eb76b (未决)此外,可能不存在内部并发保护,因此并发访问必须在外部进行同步。

相互作用

右值变体 [SWS_CORE_01368] 与 ara::core::Vector 的其他 insert 重载构成一个连贯的接口:

  • [SWS_CORE_01367]:使用左值引用拷贝插入值(const T& x)。
  • [SWS_CORE_01369]:插入某个值的 n 个副本(size_type n, const T& x)。
  • [SWS_CORE_01370]:通过迭代器范围插入序列(InputIterator first, InputIterator last)。
  • [SWS_CORE_01371]:使用 std::initializer_list<T> 插入列表。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01368
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01368@rel:R25-11#3ff285c7
Content hash
3ff285c7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01368
Status: valid/unmigrated Version: rel:R25-11#6bdd4b3c 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_01368@rel:R25-11#6bdd4b3c
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 insert [SWS_CORE_01369]

iterator insert (const_iterator position, size_type n, const T &x);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7edeb5bda5f6 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

来自 [SWS_CORE_01369] 的成员函数 insert 属于类 ara::core::Vector,并通过头文件 #include "ara/core/vector.h" 提供。该同步操作用于插入多个相同的元素。理解:根据指定的引用“As per corresponding usage in [vector]”,该调用应该刚好在迭代器位置 position 之前将传入值 x 的 n 个副本插入到向量中,并返回指向第一个新插入元素的 iterator。 问题 Q-c92add148c490868 (未决)

关于错误处理和健壮性,该函数在 [SWS_CORE_01369] 中被明确归类为“not exception safe”。未为此方法调用定义特定的 AUTOSAR 错误代码或向 DET 或 DEM 发送的消息。

关于并发性和调用条件,规范未包含单独的保证。推测修改容器与标准向量一样需要外部同步,因为并发的写或读访问可能不是线程安全的。 问题 (未决)

在 ara::core::Vector 内部,除了用于重复值的该重载外,还存在 insert 的其他变体:

本文由 AI 创建;无法保证准确性。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01369
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01369@rel:R25-11#47811c44
Content hash
47811c44
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01369
Status: valid/unmigrated Version: rel:R25-11#8a8e7dc8 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_01369@rel:R25-11#8a8e7dc8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 insert [SWS_CORE_01370]

template <class InputIterator> iterator insert (const_iterator position, InputIterator first, Input Iterator last);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1d6a2d4c594c 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

头文件 #include "ara/core/vector.h" 中顺序容器 ara::core::Vector([SWS_CORE_01370])的模板成员函数 insert 同步向向量中插入元素序列。要插入的范围由输入迭代器 first 和 last 确定,并恰好放置在由 position(类型 const_iterator)指定的位置之前。作为返回值,该函数提供一个指向第一个插入元素的 iterator。业务语义在规范方面被描述为“As per corresponding usage in [vector]”([SWS_CORE_01370]);理解:这应该对应于 std::vector 的标准化范围插入行为。 问题 Q-c6cd06fb1964ead6 (未决)

关于错误处理和健壮性,该函数被明确指定为 not exception safe([SWS_CORE_01370])。规范范围内未规定特殊错误代码、异常或向错误和诊断监控器(如 DET 或 DEM)发送的消息。

在 ara::core::Vector 接口的框架内,该范围重载对其他插入方法进行了补充:

向量内部所有提到的重载都有一个共同的限制,即不具备异常安全性([SWS_CORE_01367]、[SWS_CORE_01371])。

本文由 AI 系统基于 AUTOSAR 规范生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01370
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01370@rel:R25-11#cd65b590
Content hash
cd65b590
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01370
Status: valid/unmigrated Version: rel:R25-11#b38a72f9 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_01370@rel:R25-11#b38a72f9
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 insert [SWS_CORE_01371]

iterator insert (const_iterator position, std::initializer_list< T > il);

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 87bda45bd96f 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::core::Vector 的同步成员函数 insert 将初始化列表的元素插入到容器中的预定位置 [SWS_CORE_01371]。它在头文件 ara/core/vector.h 中声明 [SWS_CORE_01371]。作为参数,该函数需要一个标记插入位置的类型为 const_iterator 的迭代器 position,以及类型为 std::initializer_list<T> 的 il [SWS_CORE_01371]。返回值是指向第一个插入元素的 iterator,或者在列表为空时指向 position [SWS_CORE_01371]。

关于错误处理和健壮性,规范将此操作明确归类为“not exception safe”[SWS_CORE_01371]。未提供特定的 AUTOSAR 错误代码或错误消息(DET/DEM)。Interpretation:通过引用“As per corresponding usage in [vector]”,包括可能发生的重新分配以及由此导致的现有迭代器失效在内的运行时行为,应符合 std::vector::insert 的语义 [SWS_CORE_01371]。 问题 Q-67ac8e3de4d4ce7a (未决)未规范用于并发访问的特殊同步机制。

在模块 core 中,该函数属于 ara::core::Vector 的其他插入操作上下文:

ara::core::Vector 中的所有重载均具有非异常安全的特性 [SWS_CORE_01367]、[SWS_CORE_01368]、[SWS_CORE_01369]、[SWS_CORE_01370]。

本使用说明基于 AUTOSAR Adaptive 规范 R25-11 自动生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01371
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01371@rel:R25-11#4d27dc00
Content hash
4d27dc00
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01371
Status: valid/unmigrated Version: rel:R25-11#4c759099 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_01371@rel:R25-11#4c759099
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 max_size [SWS_CORE_01346]

size_type max_size () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01346
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01346@rel:R25-11#17d1c64b
Content hash
17d1c64b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01346
Status: valid/unmigrated Version: rel:R25-11#cef91386 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_01346@rel:R25-11#cef91386
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator= [SWS_CORE_01315] Upstream: RS_AP_00145

Vector & operator= (const Vector &other) noexcept(std::is_nothrow_ copy_assignable< T >::value)=default;

As per corresponding usage in [vector] except for the following deviations: 1. Function is conditionally noexcept Implementation {<may-throw-on-allocate>} shall be an implementation-defined type

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01315
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01315@rel:R25-11#4964ae9e
Content hash
4964ae9e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01315
Status: valid/unmigrated Version: rel:R25-11#b20c14c8 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_01315@rel:R25-11#b20c14c8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator= [SWS_CORE_01317] Upstream: RS_AP_00145

Vector & operator= (Vector &&x) noexcept(std::allocator_traits< Allocator >::propagate_on_container_move_ assignment::value||std::allocator_traits< Allocator >::is_always_ equal::value);

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01317
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01317@rel:R25-11#80b993e4
Content hash
80b993e4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01317
Status: valid/unmigrated Version: rel:R25-11#e4d91702 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_01317@rel:R25-11#e4d91702
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator= [SWS_CORE_01327]

Vector & operator= (std::initializer_list< T >);

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01327
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01327@rel:R25-11#079cc910
Content hash
079cc910
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01327
Status: valid/unmigrated Version: rel:R25-11#c2b0d48a 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_01327@rel:R25-11#c2b0d48a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator[] [SWS_CORE_01352]

reference operator[] (size_type n);

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01352
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01352@rel:R25-11#5683d754
Content hash
5683d754
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01352
Status: valid/unmigrated Version: rel:R25-11#44d311c8 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_01352@rel:R25-11#44d311c8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 operator[] [SWS_CORE_01353]

const_reference operator[] (size_type n) const;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01353
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01353@rel:R25-11#138fe2d4
Content hash
138fe2d4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01353
Status: valid/unmigrated Version: rel:R25-11#5fbfd4ba 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_01353@rel:R25-11#5fbfd4ba
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 pop_back [SWS_CORE_01365]

void pop_back ();

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: deefee9625de 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与语义

容器 ara::core::Vector 的成员函数 pop_back 用于同步移除最后一个元素 [SWS_CORE_01365]。该函数在头文件 ara/core/vector.h 中声明,具有签名 void pop_back () [SWS_CORE_01365]。AUTOSAR 在功能行为方面显式引用了 [vector] 中的相应用法,因此无需传递参数且不存在返回值 [SWS_CORE_01365]。

错误处理与异常安全性

在错误处理方面,规范将其标注为 not exception safe [SWS_CORE_01365]。由于未在有效负载中定义特定的错误代码、返回值或检查机制,因此在非法调用时不存在内置的错误处理 [SWS_CORE_01365]。Interpretation:调用前调用者必须确保 vector 非空;在空实例上调用大概会导致未定义行为,类似于 [vector]。 问题 Q-add313a489db4726 (未决)

协作与相关要求

在 ara/core/string.h 的类 ara::core::BasicString 中可以找到对应的模式,其函数 pop_back 根据 [basic.string] 移除最后一个字符,且同样被指定为 not exception safe [SWS_CORE_03105]。这两种定义统一了模块 core([SWS_CORE_01365]、[SWS_CORE_03105])中顺序数据结构的修改方式。

本使用说明由 AI 基于 AUTOSAR Adaptive R25-11 规范生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01365
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01365@rel:R25-11#7e6b0b43
Content hash
7e6b0b43
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01365
Status: valid/unmigrated Version: rel:R25-11#0244f396 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_01365@rel:R25-11#0244f396
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 push_back [SWS_CORE_01363]

void push_back (const T &x) noexcept(std::is_nothrow_copy_assignable< T >::value);

As per corresponding usage in [vector] except for the following deviations: 1. Function is conditionally noexcept: (see [vector.modifiers])

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a852a13f9301 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

ara::core::Vector 作用域内的成员函数 push_back 通过复制将传入的元素插入到容器末尾 [SWS_CORE_01363]。它通过头文件 #include "ara/core/vector.h" 定义,接受对常量值的引用 const T &x,且没有返回值(void)[SWS_CORE_01363]。调用在调用者的上下文中同步进行。

错误处理与异常安全性

规范与 [vector] 的不同之处在于,该函数被声明为有条件 noexcept:当且仅当 std::is_nothrow_copy_assignable<T>::value 成立时,才保证不抛出异常 [SWS_CORE_01363]。相应地,异常安全性被定义为“conditionally exception safe”[SWS_CORE_01363]。对于该函数,未定义特定错误代码以及通过 DET 或 DEM 的错误消息。

协作与相关要求

对于可移动对象,ara::core::Vector 提供了重载 void push_back(T &&x),其 noexcept 特性同样与 std::is_nothrow_move_assignable<T>::value 绑定 [SWS_CORE_01364]。相比之下,ara::core::BasicString 中的 push_back 没有 noexcept 保证,并被归类为“not exception safe”[SWS_CORE_03083]。

Interpretation:除特定的 noexcept 声明外,插入时的内部内存和重新分配行为大概遵循 C++ 标准对 [vector] 的规定。 问题 Q-202fb07b334cde64 (未决)

本使用说明基于 AUTOSAR Adaptive 在 Release R25-11 中的规范。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01363
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01363@rel:R25-11#17bcd76a
Content hash
17bcd76a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01363
Status: valid/unmigrated Version: rel:R25-11#bc0d56eb 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_01363@rel:R25-11#bc0d56eb
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 push_back [SWS_CORE_01364]

void push_back (T &&x) noexcept(std::is_nothrow_move_assignable< T >::value);

As per corresponding usage in [vector] except for the following deviations: 1. Function is conditionally noexcept: (see [vector.modifiers])

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0ab7b8ba5428 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

ara::core::Vector 的成员函数 push_back 用于利用移动语义([SWS_CORE_01364])将元素同步追加到 vector 的末尾。它通过头文件 #include "ara/core/vector.h" 提供,接受右值引用 T &&x,且没有返回值(void)([SWS_CORE_01364])。

关于错误处理和异常行为,以下属性适用:

  • 该方法被归类为有条件异常安全(conditionally exception safe)([SWS_CORE_01364])。
  • noexcept 保证与类型绑定:noexcept(std::is_nothrow_move_assignable<T>::value)([SWS_CORE_01364])。如果 T 的移动赋值运算符未声明为无异常,则在内存分配或元素移动时可能会出现异常。 问题 Q-3b8b58d0b218fe21 (未决)

其工作机制遵循 [vector] 中的常规语义,但因有条件的 noexcept 声明而有所不同([SWS_CORE_01364])。由于该操作会修改容器,因此在没有外部同步的情况下并发访问同一实例大概不是线程安全的。 问题 (未决)

在接口的相互协作中,该移动变体补充了同样与 is_nothrow_copy_assignable 绑定的复制重载 push_back(const T &x)([SWS_CORE_01363])。与之相区分的是 ara::core::BasicString 中的同名成员函数([SWS_CORE_03083]),该函数用于追加单个字符,且被定义为非异常安全。

此使用说明是自动生成的,基于规范的规定。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01364
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01364@rel:R25-11#26417f21
Content hash
26417f21
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01364
Status: valid/unmigrated Version: rel:R25-11#310b773d 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_01364@rel:R25-11#310b773d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 rbegin [SWS_CORE_01336]

reverse_iterator rbegin () noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01336
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01336@rel:R25-11#09ce82c1
Content hash
09ce82c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01336
Status: valid/unmigrated Version: rel:R25-11#c7116a42 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_01336@rel:R25-11#c7116a42
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 rbegin [SWS_CORE_01337]

const_reverse_iterator rbegin () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01337
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01337@rel:R25-11#eab81ad5
Content hash
eab81ad5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01337
Status: valid/unmigrated Version: rel:R25-11#41352c38 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_01337@rel:R25-11#41352c38
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 rend [SWS_CORE_01338]

reverse_iterator rend () noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01338
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01338@rel:R25-11#ef02b63f
Content hash
ef02b63f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01338
Status: valid/unmigrated Version: rel:R25-11#82d3ac2e 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_01338@rel:R25-11#82d3ac2e
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 rend [SWS_CORE_01339]

const_reverse_iterator rend () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01339
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01339@rel:R25-11#57b0d37b
Content hash
57b0d37b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01339
Status: valid/unmigrated Version: rel:R25-11#67cef15a 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_01339@rel:R25-11#67cef15a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 reserve [SWS_CORE_01347]

void reserve (size_type n);

As per corresponding usage in [vector] except for the following deviations: 1. if (n < max_size()) IsoStdLengthErrorViolation is raised instead of std:: length_error

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1fc59f941a26 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CORE_01347],类 ara::core::Vector 的成员函数 reserve 用于为 vector 实例保留内存。它是同步调用的,并通过头文件 ara/core/vector.h 提供。该函数接受类型为 size_type 的参数 n,且没有返回值。其基本行为符合 ISO C++ 标准中 std::vector::reserve 的常规语义。

错误处理与违规

与 ISO C++ 标准不同,出错时不会抛出 std::length_error 类型的异常,而是会触发 IsoStdLengthErrorViolation [SWS_CORE_01347]。规范为此给出了条件 n < max_size(),其中大概是指超出了最大容量。 问题 Q-8d4dbf516b7b87b7 (未决)此外,根据规范,该操作被明确声明为非异常安全(not exception safe)[SWS_CORE_01347]。

交互与约束条件

触发 IsoStdLengthErrorViolation 符合 ara::core 中统一的错误概念,且在 ara::core::BasicString::reserve 中也可找到类似处理(根据 [SWS_CORE_03054])。由于调用 reserve 可能会触发内部重新分配,因此在对同一实例进行并发访问时,该函数不是线程安全的,需要外部同步。

本使用说明由 AI 系统基于 AUTOSAR 规范 R25-11 创建。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdLengthEr- Description as per std::length_error rorViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01347
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01347@rel:R25-11#cb3bec6c
Content hash
cb3bec6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01347
Status: valid/unmigrated Version: rel:R25-11#f0cbdb62 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_01347@rel:R25-11#f0cbdb62
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 resize [SWS_CORE_01350]

void resize (size_type sz);

As per corresponding usage in [vector] except for the following deviations: 1. if (sz > max_size()) IsoStdLengthErrorViolation is raised instead of std:: length_error

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: e1f4cdbd6da3 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

成员函数 resize 同步将容器中包含的元素数量调整为所需的目标大小 sz([SWS_CORE_01350])。它属于类 ara::core::Vector,并通过头文件 #include "ara/core/vector.h" 引入([SWS_CORE_01350])。功能行为参考 std::vector 的 ISO C++ 规范:如果容器缩小,则多余的元素被删除;如果容器增大,则通过值初始化创建附加元素。

在错误情况下,该函数特意偏离标准库的行为:如果请求的大小 sz 大于 max_size(),则引发 IsoStdLengthErrorViolation 而不是 std::length_error([SWS_CORE_01350])。该规范将该函数标记为非异常安全(not exception safe)([SWS_CORE_01350])。因此,调用方必须确保遵守容量限制,以避免运行时违规。

关于并发性,该方法对于同一实例不是可重入的:在没有外部同步的情况下,对同一对象的修改性并行调用可能会导致数据损坏(解释:类似于 ISO C++ 容器的线程安全规则)。 问题 Q-1283cb9616fde934 (未决)如果新添加的元素不进行默认初始化,而是填充给定值的副本,则应选择带有参数 const T& 的重载变体([SWS_CORE_01351])。类 ara::core::BasicString 提供了一对具有相同限值超出错误处理的相应类似接口([SWS_CORE_03058]、[SWS_CORE_03059])。

本使用说明基于 AUTOSAR R25-11 规范自动生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdLengthEr- Description as per std::length_error rorViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01350
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01350@rel:R25-11#4eb1f1bb
Content hash
4eb1f1bb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01350
Status: valid/unmigrated Version: rel:R25-11#410be37a 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_01350@rel:R25-11#410be37a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 resize [SWS_CORE_01351]

void resize (size_type sz, const T &c);

As per corresponding usage in [vector] except for the following deviations: 1. if (sz > max_size()) IsoStdLengthErrorViolation is raised instead of std:: length_error

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 2eadecd4d26f 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件 #include "ara/core/vector.h" 的类 ara::core::Vector([SWS_CORE_01351])的成员函数 resize 将容器中的元素数量更改为指定的目标大小 sz。在增大的情况下,该函数使用传入值 c 的副本初始化新添加的元素([SWS_CORE_01351])。该调用同步处理且没有返回值(void)。

错误处理与异常安全性

该行为很大程度上与标准容器 std::vector 相符,但在错误情况下特意有所不同:如果参数 sz 超过最大值 max_size(),则引发 IsoStdLengthErrorViolation 而不是标准异常 std::length_error([SWS_CORE_01351])。该规范明确将该函数标记为 not exception safe([SWS_CORE_01351])。如果在分配期间或在复制 c 时发生错误,则不存在恢复原始对象状态的保证。

限制与交互

由于缺乏异常安全性,失败可能会导致容器处于不一致状态,因此调用方应事先检查是否有足够的可用容量。 问题 Q-9701a24a177cbb21 (未决)如果新元素改为默认构造,则提供了不带初始化值的重载 resize(size_type sz)([SWS_CORE_01350])。引发 IsoStdLengthErrorViolation 且被归类为非异常安全的相同错误行为在 ara::core::BasicString 中也类似存在([SWS_CORE_03058]、[SWS_CORE_03059])。

本文件由人工智能根据 AUTOSAR 规范生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdLengthEr- Description as per std::length_error rorViolation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01351
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01351@rel:R25-11#c4be284f
Content hash
c4be284f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01351
Status: valid/unmigrated Version: rel:R25-11#99da6e90 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_01351@rel:R25-11#99da6e90
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 shrink_to_fit [SWS_CORE_01349]

void shrink_to_fit ();

As per corresponding usage in [vector]

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 57a8d094a016 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_CORE_01349],类 ara::core::Vector 的成员函数 shrink_to_fit() 用于根据规定 [vector] 将内存容量减少到当前元素所需的程度。该函数通过头文件 #include "ara/core/vector.h" 声明,不接收任何参数,且不提供返回值(void)[SWS_CORE_01349]。调用在实例上同步进行。

在错误行为方面,未定义错误码或错误消息(DET/DEM)。该函数在规范中被明确归类为 not exception safe [SWS_CORE_01349]。理解:如果内部内存重新分配失败,推测对保留先前的容器状态不提供任何保证。 问题 Q-b4b5bef83f265ceb (未决)

并发性和调用上下文遵循顺序数据结构的限制:在没有外部同步的情况下,同一实例上的并发调用可能不可重入或非线程安全。 问题 (未决)在执行期间,不得对向量进行并行的读取或写入访问。

[SWS_CORE_03056] 中为字符串定义了直接相关的行为:类 ara::core::BasicString 也通过 #include "ara/core/string.h" 提供了一个函数 shrink_to_fit(),该函数参考了 [basic.string],并且同样被归类为 not exception safe [SWS_CORE_03056]。

本文由 AI 基于 AUTOSAR Adaptive R25-11 规范生成。

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01349
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01349@rel:R25-11#fa1046cd
Content hash
fa1046cd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01349
Status: valid/unmigrated Version: rel:R25-11#11fa8bdb 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_01349@rel:R25-11#11fa8bdb
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 size [SWS_CORE_01345]

size_type size () const noexcept;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01345
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01345@rel:R25-11#c95f83bd
Content hash
c95f83bd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01345
Status: valid/unmigrated Version: rel:R25-11#eaa8d6b2 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_01345@rel:R25-11#eaa8d6b2
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 swap [SWS_CORE_01374]

void swap (Vector &) noexcept(std::allocator_traits< Allocator >::propagate_on_container_swap::value||std::allocator_traits< Allocator >::is_always_equal::value);

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitconditionally exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01374
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01374@rel:R25-11#2c7b7dfd
Content hash
2c7b7dfd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01374
Status: valid/unmigrated Version: rel:R25-11#352f9213 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_01374@rel:R25-11#352f9213
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 ~Vector [SWS_CORE_01326]

~Vector () noexcept;

As per corresponding usage in [vector] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01326
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01326@rel:R25-11#260f697a
Content hash
260f697a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01326
Status: valid/unmigrated Version: rel:R25-11#250094e8 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_01326@rel:R25-11#250094e8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名文档

类型别名 allocator_type [SWS_CORE_01303]

using allocator_type = Allocator;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolallocator_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01303
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01303@rel:R25-11#e7a75c96
Content hash
e7a75c96
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01303
Status: valid/unmigrated Version: rel:R25-11#14a4f35e 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_01303@rel:R25-11#14a4f35e
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 const_iterator [SWS_CORE_01311]

using const_iterator = {<const-iterator-type>};

As per corresponding usage in [vector] Implementation {<const-iterator-type>} shall be an implementation-defined type

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolconst_iterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01311
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01311@rel:R25-11#a6d1e4cc
Content hash
a6d1e4cc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01311
Status: valid/unmigrated Version: rel:R25-11#d5a60edd 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_01311@rel:R25-11#d5a60edd
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 const_pointer [SWS_CORE_01305]

using const_pointer = typename std::allocator_ traits<Allocator>::const_pointer;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolconst_pointer

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01305
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01305@rel:R25-11#daa06150
Content hash
daa06150
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01305
Status: valid/unmigrated Version: rel:R25-11#09992969 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_01305@rel:R25-11#09992969
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 const_reference [SWS_CORE_01307]

using const_reference = const value_type&;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolconst_reference

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01307
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01307@rel:R25-11#3a71c2db
Content hash
3a71c2db
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01307
Status: valid/unmigrated Version: rel:R25-11#73db31d8 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_01307@rel:R25-11#73db31d8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 const_reverse_iterator [SWS_CORE_01313]

using const_reverse_iterator = std::reverse_iterator<const_iterator>;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolconst_reverse_iterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01313@rel:R25-11#8e84754b
Content hash
8e84754b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01313
Status: valid/unmigrated Version: rel:R25-11#94270dd2 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_01313@rel:R25-11#94270dd2
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 difference_type [SWS_CORE_01309]

using difference_type = {<difference-type>};

As per corresponding usage in [vector] Implementation {<difference-type>} shall be an implementation-defined type

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symboldifference_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01309
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01309@rel:R25-11#7847fffc
Content hash
7847fffc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01309
Status: valid/unmigrated Version: rel:R25-11#2b997bdc 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_01309@rel:R25-11#2b997bdc
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 iterator [SWS_CORE_01310]

using iterator = {<iterator-type>};

As per corresponding usage in [vector] Implementation {<iterator-type>} shall be an implementation-defined type

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symboliterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01310
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01310@rel:R25-11#eb544fe0
Content hash
eb544fe0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01310
Status: valid/unmigrated Version: rel:R25-11#d2e1e94c 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_01310@rel:R25-11#d2e1e94c
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 pointer [SWS_CORE_01304]

using pointer = typename std::allocator_traits<Allocator>::pointer;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolpointer

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01304
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01304@rel:R25-11#8efc0bcb
Content hash
8efc0bcb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01304
Status: valid/unmigrated Version: rel:R25-11#6794750d 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_01304@rel:R25-11#6794750d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 reference [SWS_CORE_01306]

using reference = value_type&;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolreference

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01306
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01306@rel:R25-11#19722526
Content hash
19722526
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01306
Status: valid/unmigrated Version: rel:R25-11#832d34ca 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_01306@rel:R25-11#832d34ca
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 reverse_iterator [SWS_CORE_01312]

using reverse_iterator = std::reverse_iterator<iterator>;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolreverse_iterator

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01312
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01312@rel:R25-11#8bf40366
Content hash
8bf40366
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01312
Status: valid/unmigrated Version: rel:R25-11#3dc4afa1 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_01312@rel:R25-11#3dc4afa1
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 size_type [SWS_CORE_01308]

using size_type = {<size-type>};

As per corresponding usage in [vector] Implementation {<size-type>} shall be an implementation-defined type

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolsize_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01308
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01308@rel:R25-11#afa3b258
Content hash
afa3b258
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01308
Status: valid/unmigrated Version: rel:R25-11#70a8b8eb 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_01308@rel:R25-11#70a8b8eb
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 value_type [SWS_CORE_01302]

using value_type = T;

As per corresponding usage in [vector]

Header-Datei#include "ara/core/vector.h"
Scopeclass ara::core::Vector
Symbolvalue_type

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_01302
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_01302@rel:R25-11#c13a8e85
Content hash
c13a8e85
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_01302
Status: valid/unmigrated Version: rel:R25-11#5bb862fe 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_01302@rel:R25-11#5bb862fe
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill