DEENESPTFRRUARHIKOZHNL

class ara::core::BasicString

[SWS_CORE_03000]

template <typename Allocator = {<fq-allocator>}> class BasicString {...};

Implementation of std::pmr::basic_string type from [basic.string]

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

User GuideAI-GENERATED

Manages dynamic character strings via allocators and seamlessly integrates StringView views.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a5b143bf326f Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Manages dynamic character strings via allocators and seamlessly integrates StringView views.

In the module core, the class ara::core::BasicString provides a memory-allocator-aware string implementation based on the C++ PMR standard [SWS_CORE_03005]. It handles dynamic buffer management, supports operations from reservation to appending, and interacts seamlessly with StringView. As an essential safety-relevant constraint, erroneous accesses are reported not by STL exceptions, but by AUTOSAR-specific violations such as IsoStdOutOfRangeViolation [SWS_CORE_03063].

Context

In module core of the AUTOSAR Adaptive Platform, the class ara::core::BasicString represents an implementation of the C++ standard type std::pmr::basic_string (defined in the header file #include "ara/core/string.h"). It represents a dynamic string class template that is parameterized via the type parameter Allocator [SWS_CORE_03005]. Compared to the general standard [basic.string], the AUTOSAR specification exhibits significant specializations: The character type traits_type is bindingly fixed to std::char_traits<char> [SWS_CORE_03003], size_type is specialized to std::size_t [SWS_CORE_03012], and charT is replaced by value_type [SWS_CORE_03004]. Key interaction partners are the allocating memory manager (via allocator_type) and the reference class StringView, with which BasicString collaborates closely via direct conversion operators [SWS_CORE_03301] and constructors [SWS_CORE_03302].

Lifecycle

The lifecycle of an instance begins with its construction. In addition to the default construction [SWS_CORE_03024], a specific allocator can be explicitly passed [SWS_CORE_03025]. Strings can also be created from C strings [SWS_CORE_03029], substrings [SWS_CORE_03026], initializer lists [SWS_CORE_03032], iterators [SWS_CORE_03031], or views such as StringView [SWS_CORE_03302]. Copy operations [SWS_CORE_03020] request new dynamic memory via the allocator. For resource-efficient transfers of ownership, a move construction is available, which is declared as noexcept [SWS_CORE_03022].

During its lifetime, the instance manages its memory area autonomously. The content can be modified via assignments ([SWS_CORE_03021], [SWS_CORE_03084]), size adjustments via resize ([SWS_CORE_03058], [SWS_CORE_03059]), or resetting by means of clear [SWS_CORE_03057]. Two strings can be swapped efficiently via swap, which is conditionally exception-safe [SWS_CORE_03412]. At the end of the lifecycle, the destructor ~BasicString() [SWS_CORE_03038] releases the allocated memory via the assigned allocator. Regarding concurrency, BasicString does not provide thread synchronization of its own; concurrent modifying accesses to the same instance therefore require external protection.

Usage Path

A typical usage path includes instantiation, optional buffer reservation, stepwise modification, and final read access or passing:

Typischer Nutzungspfad von BasicStringApplicationBasicStringAllocatorBasicString(alloc)allocate(...)Speicher bereitgestelltInstanz bereitreserve(64)append(sv)operator StringView()StringView Instanz

Sequence diagram: Typical interaction sequence from initialization via buffer reservation and text modification to view conversion. Sources: [SWS_CORE_03025], [SWS_CORE_03054], [SWS_CORE_03308], [SWS_CORE_03301].

Error Scenarios

For invalid calls, the specification defines specific violation types instead of standard exceptions:

Regarding exception safety, most allocating and modifying methods are designated as not exception safe, since memory shortages or faulty parameters can result in the failure of the operation. Exception guarantees are primarily provided by operations declared noexcept, such as move construction [SWS_CORE_03022] as well as conditionally move assignment [SWS_CORE_03023] and swap [SWS_CORE_03412]. The replacement of standard exceptions by IsoStdOutOfRangeViolation and IsoStdLengthErrorViolation is likely due to the platform-wide approach of deterministically mapping errors in safety-relevant execution environments. Question Q-0406eab8e8556fcd (open)

This guide is based on the specification for ara::core::BasicString in AUTOSAR Adaptive Platform R25-11.

Member map

Class diagram

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

G nara__core__BasicString716 BasicString + npos + BasicString() + Basic() + operator=() + ~BasicString() + capacity() + clear() + empty() + length() + max_size() + reserve() + resize() + shrink_() + size() + at() + back() + c_str() … 32 weitere

Detail view

Select an entry in the outline.

Constructors and destructor

BasicString function 4

≙ [basic.string]

Overloads BasicString 4
BasicString (const BasicString &str); SWS_CORE_03020
BasicString (BasicString &&str) noexcept=default; SWS_CORE_03022
explicit BasicString (StringView sv, const Allocator &a=Allocator()); SWS_CORE_03302
template <class T> BasicString (const T &t, size_type pos, size_type n, const Allocator &a=Allocator()); SWS_CORE_03303
~BasicString function

≙ [basic.string]

Methods

append function 9

≙ [basic.string]

Overloads append 9
BasicString & append (const BasicString &str); SWS_CORE_03076
template <class InputIterator> BasicString & append (InputIterator first, InputIterator last); SWS_CORE_03081
template <class T> BasicString & append (const T &t, size_type pos, size_type n=npos); SWS_CORE_03309
assign function 10

≙ [basic.string]

Overloads assign 10
BasicString & assign (const BasicString &str); SWS_CORE_03084
BasicString & assign (BasicString &&str) noexcept(std::allocator_ traits< Allocator >::propagate_on_container_move_ assignment::value||std::allocator_traits< Allocator >::is_always_ equal::value); SWS_CORE_03085
template <class InputIterator> BasicString & assign (InputIterator first, InputIterator last); SWS_CORE_03091
template <class T> BasicString & assign (const T &t, size_type pos, size_type n=npos); SWS_CORE_03306
at function 2

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

Overloads at 2
back function 2

≙ [basic.string]

Overloads back 2
Basic function 16

≙ [basic.string]

Overloads Basic 16
begin function 2

≙ [basic.string]

Overloads begin 2
iterator begin () noexcept; SWS_CORE_03039
const_iterator begin () const noexcept; SWS_CORE_03040
c_str function

except for the following deviations: 1. charT replaced with value_type ≙ [basic.string]

const value_type * c_str () const noexcept;
capacity function

≙ [basic.string]

size_type capacity () const noexcept;
cbegin function

≙ [basic.string]

const_iterator cbegin () const noexcept;
cend function

≙ [basic.string]

const_iterator cend () const noexcept;
clear function

≙ [basic.string]

void clear () noexcept;
compare function 9

≙ [basic.string]

Overloads compare 9
int compare (StringView sv) const noexcept; SWS_CORE_03321
int compare (size_type pos1, size_type n1, StringView sv) const; SWS_CORE_03322
template <typename T> int compare (size_type pos1, size_type n1, const T &t, size_type pos2, size_type n2=npos) const; SWS_CORE_03323
int compare (const BasicString &str) const noexcept; SWS_CORE_03346
int compare (size_type pos1, size_type n1, const BasicString &str) const; SWS_CORE_03347
int compare (size_type pos1, size_type n1, const BasicString &str, size_type pos2, size_type n2=npos) const; SWS_CORE_03348
int compare (const value_type *s) const; SWS_CORE_03349
int compare (size_type pos1, size_type n1, const value_type *s) const; SWS_CORE_03350
int compare (size_type pos1, size_type n1, const value_type *s, size_type n2) const; SWS_CORE_03351
copy function

except for the following deviations: 1. charT replaced with value_type 2. if ( pos > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [basic.string]

size_type copy (value_type *s, size_type n, size_type pos=0) const;
crbegin function

≙ [basic.string]

const_reverse_iterator crbegin () const noexcept;
crend function

≙ [basic.string]

const_reverse_iterator crend () const noexcept;
data function 2

except for the following deviations: 1. charT replaced with value_type ≙ [basic.string]

Overloads data 2
const value_type * data () const noexcept; SWS_CORE_03070
value_type * data () noexcept; SWS_CORE_03071
empty function

≙ [basic.string]

bool empty () const noexcept;
end function 2

≙ [basic.string]

Overloads end 2
iterator end () noexcept; SWS_CORE_03041
const_iterator end () const noexcept; SWS_CORE_03042
erase function 3

except for the following deviations: 1. charT replaced with value_type 2. if ( pos > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [basic.string]

Overloads erase 3
find function 5

except for the following deviations: 1. charT replaced with value_type ≙ [basic.string]

Overloads find 5
size_type find (StringView sv, size_type pos=0) const noexcept; SWS_CORE_03315
size_type find (const BasicString &str, size_type pos=0) const noexcept; SWS_CORE_03407
size_type find (const value_type *s, size_type pos=0) const; SWS_CORE_03408
size_type find (const value_type *s, size_type pos, size_type n) const; SWS_CORE_03409
find_first_ function 8

≙ [basic.string]

Overloads find_first_ 8
size_type find_first_of (const BasicString &str, size_type pos=0) const noexcept; SWS_CORE_03329
size_type find_first_of (const value_type *s, size_type pos, size_type n) const; SWS_CORE_03330
size_type find_first_of (const value_type *s, size_type pos=0) const; SWS_CORE_03331
size_type find_first_of (value_type c, size_type pos=0) const; SWS_CORE_03332
size_type find_first_not_of (const BasicString &str, size_type pos=0) const noexcept; SWS_CORE_03337
size_type find_first_not_of (const value_type *s, size_type pos, size_type n) const; SWS_CORE_03338
size_type find_first_not_of (const value_type *s, size_type pos=0) const; SWS_CORE_03339
size_type find_first_not_of (value_type c, size_type pos=0) const; SWS_CORE_03340

≙ [basic.string]

size_type find_first_not_of (StringView sv, size_type pos=0) const noexcept;
find_first_of function

except for the following deviations: 1. charT replaced with value_type ≙ [basic.string]

size_type find_first_of (StringView sv, size_type pos=0) const noexcept;
find_last_ function 8

≙ [basic.string]

Overloads find_last_ 8
size_type find_last_of (const BasicString &str, size_type pos=npos) const noexcept; SWS_CORE_03333
size_type find_last_of (const value_type *s, size_type pos, size_type n) const; SWS_CORE_03334
size_type find_last_of (const value_type *s, size_type pos=npos) const; SWS_CORE_03335
size_type find_last_of (value_type c, size_type pos=npos) const; SWS_CORE_03336
size_type find_last_not_of (const BasicString &str, size_type pos=npos) const noexcept; SWS_CORE_03341
size_type find_last_not_of (const value_type *s, size_type pos, size_type n) const; SWS_CORE_03342
size_type find_last_not_of (const value_type *s, size_type pos=npos) const; SWS_CORE_03343
size_type find_last_not_of (value_type c, size_type pos=npos) const; SWS_CORE_03344

≙ [basic.string]

size_type find_last_not_of (StringView sv, size_type pos=npos) const noexcept;
find_last_of function

≙ [basic.string]

size_type find_last_of (StringView sv, size_type pos=npos) const noexcept;
front function 2

≙ [basic.string]

Overloads front 2
get_allocator function

≙ [basic.string]

allocator_type get_allocator () const noexcept;
insert function 11

≙ [basic.string]

Overloads insert 11
BasicString & insert (size_type pos, const BasicString &str); SWS_CORE_03093
template <class InputIterator> iterator insert (const_iterator p, InputIterator first, InputIterator last); SWS_CORE_03100
template <class T> BasicString & insert (size_type pos1, const T &t, size_type pos2, size_type n=npos); SWS_CORE_03311
length function

≙ [basic.string]

size_type length () const noexcept;
max_size function

≙ [basic.string]

size_type max_size () const noexcept;
pop_back function

≙ [basic.string]

void pop_back ();
push_ function

≙ [basic.string]

void push_back (value_type c);
rbegin function 2

≙ [basic.string]

Overloads rbegin 2
reverse_iterator rbegin () noexcept; SWS_CORE_03043
const_reverse_iterator rbegin () const noexcept; SWS_CORE_03044
rend function 2

≙ [basic.string]

Overloads rend 2
const_reverse_iterator rend () const noexcept; SWS_CORE_03046
replace function 14

≙ [basic.string]

Overloads replace 14
reserve function

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

void reserve (size_type res_arg=0);
resize function 2

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

Overloads resize 2
void resize (size_type sz); SWS_CORE_03058
void resize (size_type sz, value_type c); SWS_CORE_03059
rfind function 5

except for the following deviations: 1. charT replaced with value_type ≙ [basic.string]

Overloads rfind 5
size_type rfind (StringView sv, size_type pos=npos) const noexcept; SWS_CORE_03316
size_type rfind (const BasicString &str, size_type pos=npos) const noexcept; SWS_CORE_03325
size_type rfind (const value_type *s, size_type pos, size_type n) const; SWS_CORE_03326
size_type rfind (const value_type *s, size_type pos=npos) const; SWS_CORE_03327
shrink_ function

≙ [basic.string]

void shrink_to_fit ();
size function

≙ [basic.string]

size_type size () const noexcept;
substr function

except for the following deviations: 1. if ( pos > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range ≙ [basic.string]

BasicString substr (size_type pos=0, size_type n=npos) const;
swap function

≙ [basic.string]

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

Operators

operator= function 6

≙ [basic.string]

Overloads = 6
BasicString & operator= (const BasicString &str); SWS_CORE_03021
BasicString & operator= (BasicString &&str) noexcept(std::allocator_ traits< Allocator >::propagate_on_container_move_ assignment::value||std::allocator_traits< Allocator >::is_always_ equal::value); SWS_CORE_03023
BasicString & operator= (const value_type *s); SWS_CORE_03035
operator[] function 2

≙ [basic.string]

Overloads [] 2

≙ [basic.string]

operator StringView () const noexcept;

Type aliases

allocator_type type alias

≙ [basic.string]

using allocator_type = Allocator;
const_iterator type alias

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

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

≙ [basic.string]

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

≙ [basic.string]

using const_reference = const value_type&;

≙ [basic.string]

using const_reverse_iterator = std::reverse_iterator<const_iterator>;
difference_type type alias

≙ [basic.string]

using difference_type = typename std::allocator_ traits<Allocator>::difference_type;
iterator type alias

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

using iterator = {<iterator-type>};
pointer type alias

≙ [basic.string]

using pointer = typename std::allocator_traits<Allocator>::pointer;
reference type alias

≙ [basic.string]

reverse_iterator type alias

≙ [basic.string]

using reverse_iterator = std::reverse_iterator<iterator>;
size_type type alias

As per corresponding member in [basic.string] except for the following deviations: 1. Type shall be specialized to std::size_t ≙ std::size_t

using size_type = typename std::allocator_traits<Allocator>::size_ type;
traits_type type alias

except for the following deviations: 1. Type shall be specialized to std::char_traits<char> ≙ std::char_traits

using traits_type = typename std::char_traits<char>;
value_type type alias

except for the following deviations: 1. Type shall be specialized to std::allocator_traits<Allocator>::value_type ≙ std::allocator_traits

using value_type = typename std::allocator_traits<Allocator>::value_ type;

Constants

npos variable

≙ [basic.string]

static constexpr size_type const npos = size_type(-1);

Method documentation

function Basic [SWS_CORE_03072]

BasicString & operator+= (const BasicString &str);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 85ab692334d0 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The assignment operator operator+= of class ara::core::BasicString ([SWS_CORE_03072] from #include "ara/core/string.h") synchronously appends the content of a passed BasicString instance to the current object. The functional semantics follow the corresponding usage in [basic.string] ([SWS_CORE_03072]). The call returns a reference to the modified instance (*this), enabling assignment chaining.

Regarding error handling, the operation is explicitly declared as "not exception safe" in the specification ([SWS_CORE_03072]). Specific error codes or notification mechanisms via DET or DEM are not defined for this element. Should an internal memory allocation fail, the method therefore provides no exception safety guarantee.

Regarding concurrency and constraints, it should be noted that the call modifies the state of the instance directly. Since the payload does not mention any synchronization mechanisms, concurrent read or write access to the same object across multiple threads is likely not thread-safe without external synchronization. Question Q-352f9d72ad3dfdbd (open)

Together with further overloads of operator+=, the operator forms the interface for string appending, for instance for single characters ([SWS_CORE_03074]), raw character pointers ([SWS_CORE_03073]), initializer lists ([SWS_CORE_03075]), and StringView ([SWS_CORE_03307]). All of these modifying operators share the "not exception safe" property and complement the basic constructors of ara::core::BasicString ([SWS_CORE_03024], [SWS_CORE_03025]).

This usage note was generated automatically based on the AUTOSAR specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03072
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03072@rel:R25-11#62f771f6
Content hash
62f771f6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03072
Status: valid/unmigrated Version: rel:R25-11#62f771f6 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_03072@rel:R25-11#62f771f6
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

function Basic [SWS_CORE_03073]

BasicString & operator+= (const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c1622bf20737 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

Assignment operator operator+= of class ara::core::BasicString synchronously appends a pointer-based string to the existing string and returns a reference to the modified object [SWS_CORE_03073]. The function is included via header file #include "ara/core/string.h" and accepts a pointer s of type const value_type * as parameter [SWS_CORE_03073]. The functional semantics follow the standardized definition from [basic.string], with the standard character type charT being replaced by value_type as the essential deviation [SWS_CORE_03073].

Error Handling and Restrictions

Regarding exception safety, the member function is explicitly declared as not exception safe ("not exception safe") [SWS_CORE_03073]. Specific error codes, return values for error indication, or error reports to DET or DEM are not specified for this operator. Interpretation: If necessary internal memory allocations fail during the expansion of the string, a consistent object state is consequently unlikely to be guaranteed, and no separate error channel exists in the AUTOSAR Adaptive environment. Question Q-a1498ddbc09bcfa9 (open)

Interaction

The method complements the other assignment operators within ara::core::BasicString that implement the appending of full string instances [SWS_CORE_03072], single characters [SWS_CORE_03074], initializer lists [SWS_CORE_03075], or StringView objects [SWS_CORE_03307]. As with the constructors for raw character pointers [SWS_CORE_03028] [SWS_CORE_03029], all of these variants are specified as not exception safe.

This text was generated by an AI and serves as guidance.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03073
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03073@rel:R25-11#8d3dfe7e
Content hash
8d3dfe7e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03073
Status: valid/unmigrated Version: rel:R25-11#8d3dfe7e 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_03073@rel:R25-11#8d3dfe7e
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

function Basic [SWS_CORE_03074]

BasicString & operator+= (value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7bef935de49f Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Member function operator+= of class ara::core::BasicString enables synchronous appending of a single character c of type value_type to the calling string object [SWS_CORE_03074]. The declaration is contained in header ara/core/string.h [SWS_CORE_03074]. The behavior corresponds to the specification in [basic.string], with parameter type charT deviatingly replaced by value_type [SWS_CORE_03074]. A reference to the modified object (BasicString &) is provided as return value, which supports chained calls.

Regarding robustness and error handling, the operation is classified as not exception safe [SWS_CORE_03074]. Specific error codes and reports to DET or DEM are not defined for this function. Interpretation: The classification as not exception safe is likely based on the fact that if the current buffer capacity is exceeded, a dynamic allocation via the underlying allocator must be triggered, which may fail in case of insufficient memory. Question Q-d74ec80829327ce0 (open)

Regarding concurrency and constraints, the function modifies the instance directly; concurrent read or write accesses without external synchronization are therefore not safe. In interplay with other interfaces, the operator complements instantiation via constructors such as [SWS_CORE_03024] or [SWS_CORE_03025] as well as alternative compound assignments for entire strings [SWS_CORE_03072], string pointers [SWS_CORE_03073], initializer lists [SWS_CORE_03075], and string views [SWS_CORE_03307].

This text was generated by an AI based on the AUTOSAR specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03074
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03074@rel:R25-11#ee3b429e
Content hash
ee3b429e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03074
Status: valid/unmigrated Version: rel:R25-11#ee3b429e 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_03074@rel:R25-11#ee3b429e
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

function Basic [SWS_CORE_03075]

BasicString & operator+= (std::initializer_list< value_type >);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 394052a9aabb Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Member function operator+= of ara::core::BasicString ([SWS_CORE_03075]) appends the characters of an std::initializer_list<value_type> synchronously to the existing string object. As return value, the method returns a reference to the modified string (*this). The behavior follows the C++ standard for [basic.string], with charT replaced by value_type ([SWS_CORE_03075]). To use it, header ara/core/string.h must be included ([SWS_CORE_03075]).

Regarding error handling and robustness, the function is classified as not exception safe ([SWS_CORE_03075]). Interpretation: It is to be assumed that exceptions can be thrown in the event of insufficient memory during a necessary reallocation without a strong exception guarantee being assured for the previous buffer contents. Question Q-0f3d6328fb6bfd73 (open)

Regarding concurrency and constraints, the call takes place synchronously in the context of the calling thread. Since the called instance is modified directly, concurrent access by multiple threads without external synchronization is not thread-safe.

In interplay with other interfaces, this overload complements the further append operators of ara::core::BasicString, including appending strings ([SWS_CORE_03072]), character arrays ([SWS_CORE_03073]), single characters ([SWS_CORE_03074]), or a StringView ([SWS_CORE_03307]). In addition, the initializer list corresponds semantically to the corresponding constructor ([SWS_CORE_03032]).

This text was generated by an AI based on the specification of AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03075
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03075@rel:R25-11#5930a5a9
Content hash
5930a5a9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03075
Status: valid/unmigrated Version: rel:R25-11#5930a5a9 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_03075@rel:R25-11#5930a5a9
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

function Basic [SWS_CORE_03307]

BasicString & operator+= (StringView sv);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 79c8e0f386bb Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function operator+= of class ara::core::BasicString synchronously appends a character sequence passed via StringView sv to the calling string object and returns a reference to this modified object [SWS_CORE_03307]. The operation is defined via the header file #include "ara/core/string.h", with functional behavior following the general conventions from [basic.string] [SWS_CORE_03307].

Error Handling and Concurrency

With respect to execution, the function is explicitly classified as not exception safe [SWS_CORE_03307]. No specific error codes are prescribed for DET or DEM. Should an internal memory allocation fail when extending the string, the internal state of the instance is likely not guaranteed to remain unchanged. Due to a lack of integrated synchronization mechanisms, a lack of thread safety is to be assumed in the event of concurrent write or read access to the same instance by multiple threads (interpretation). Question Q-1bed85bd42475f62 (open)

Interaction

The operator fits seamlessly into the structure of class ara::core::BasicString and complements the alternative overloads of operator+= for complete strings [SWS_CORE_03072], character pointers const value_type* [SWS_CORE_03073], single characters [SWS_CORE_03074], and initializer lists [SWS_CORE_03075]. Creation of the involved string instances is performed via the corresponding constructors of the class, such as the default constructor [SWS_CORE_03024] or copy and move constructors [SWS_CORE_03033], [SWS_CORE_03034].

This text was generated by an AI system based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03307
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03307@rel:R25-11#dff07d2b
Content hash
dff07d2b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03307
Status: valid/unmigrated Version: rel:R25-11#49ff1728 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03307@rel:R25-11#49ff1728
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#dff07d2b2026-09-30
  • R19-11rel:R19-11#f3a51ca72026-10-14
  • R20-11rel:R20-11#eb9911662026-10-14
  • R21-11rel:R21-11#643b959e2026-10-14
  • R22-11rel:R22-11#62cca0c72026-10-14
  • R23-11rel:R23-11#94c578d72026-10-14
  • R24-11rel:R24-11#7d330f2f2026-10-14
  • R25-11rel:R25-11#49ff17282026-10-14 active
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

function Basic [SWS_CORE_03024]

BasicString () noexcept(noexcept(Allocator()));

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: bcf3bfdce1e1 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The function BasicString() from header file #include "ara/core/string.h" is the parameterless default constructor of class ara::core::BasicString ([SWS_CORE_03024]). The call is synchronous and, as a constructor, has no return value. The behavior follows the corresponding definition in [basic.string] ([SWS_CORE_03024]); the created instance is therefore expected to represent an empty string. Question Q-f36b11fa590a6111 (open)

Error Handling and Exception Safety

The element is specified as conditionally exception safe (conditionally exception safe) ([SWS_CORE_03024]). Specific error codes, DET, or DEM messages do not exist according to the specification. Via the signature BasicString () noexcept(noexcept(Allocator()));, exception safety is directly linked to the default constructor of the allocator ([SWS_CORE_03024]). If creating Allocator() throws no exception, construction of BasicString is also guaranteed to be exception-free.

Interaction and Constraints

In the context of the other interfaces of ara::core::BasicString, the following dependencies are relevant:

This usage note was generated automatically based on specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03024
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03024@rel:R25-11#fdd55184
Content hash
fdd55184
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03024
Status: valid/unmigrated Version: rel:R25-11#fdd55184 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_03024@rel:R25-11#fdd55184
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

function Basic [SWS_CORE_03025]

explicit BasicString (const Allocator &a) noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c52494bbcbe6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The explicit constructor BasicString(const Allocator &a) from the header file #include "ara/core/string.h" initializes an empty instance of ara::core::BasicString using the passed allocator [SWS_CORE_03025]. The semantic behavior follows C++ standard section [basic.string] [SWS_CORE_03025]. The keyword explicit prevents inadvertent implicit type conversions from an allocator instance [SWS_CORE_03025].

Regarding error handling and exception handling, the function is declared as noexcept and specified as exception safe (exception safe) [SWS_CORE_03025]. In contrast to the default constructor [SWS_CORE_03024], whose exception safety conditionally depends on noexcept(noexcept(Allocator())), this call always guarantees error-free creation without exceptions [SWS_CORE_03025], [SWS_CORE_03024]. Interpretation: The unconditional exception safety is likely due to the fact that no memory-intensive allocation steps have to be performed when initializing an empty string. Question Q-88df57e7a9c2abda (open)

In interaction with other constructors of the class such as [SWS_CORE_03026] or [SWS_CORE_03028], which copy data and are classified as not exception safe (not exception safe), this constructor serves as a safe entry point. The created string can subsequently be dynamically expanded via modifiers such as operator+= ([SWS_CORE_03072], [SWS_CORE_03307]) or used as input for types such as Bitset [SWS_CORE_01749].

This text was created by an AI and serves as a curated usage guide. All normative requirements are to be taken from the referenced AUTOSAR specifications.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03025
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03025@rel:R25-11#bb11bc8e
Content hash
bb11bc8e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03025
Status: valid/unmigrated Version: rel:R25-11#bb11bc8e 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_03025@rel:R25-11#bb11bc8e
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

function Basic [SWS_CORE_03026]

BasicString (const BasicString &str, size_type pos, const Allocator &a=Allocator());

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8c286c13c48e Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The function Basic represents a constructor of the class ara::core::BasicString, which is provided via the header file #include "ara/core/string.h" [SWS_CORE_03026]. It synchronously creates a new string as a substring from the source object str starting from the index position pos according to the semantics of [basic.string] [SWS_CORE_03026]. The following parameters are processed:

  • str: Reference to the source instance to be copied of type BasicString [SWS_CORE_03026].
  • pos: Zero-based start position of the substring of type size_type [SWS_CORE_03026].
  • a: Allocator for memory management, which defaults to Allocator() [SWS_CORE_03026].

Error Handling and Exception Safety

The property not exception safe is specified for the function [SWS_CORE_03026]. Neither specific error codes nor DET or DEM messages are defined. Interpretation: Since the constructor follows the standard behavior of [basic.string] and does not guarantee exception safety, invalid index values for pos as well as failing memory allocations should lead to exceptions being thrown [SWS_CORE_03026]. Question Q-7ea120ac992dc5ac (open)

Interplay and Related Requirements

Within ara::core::BasicString, this constructor complements the variant with an additional length restriction n [SWS_CORE_03027] as well as overloads for pointers, iterators, and initializer lists [SWS_CORE_03028], [SWS_CORE_03031], [SWS_CORE_03032]. In contrast to the constructors without a source string, which are conditionally exception-safe [SWS_CORE_03024] or declared as noexcept [SWS_CORE_03025], dynamically taking over substrings requires special consideration of potential allocation errors. In addition, BasicString serves as a parameter basis in other module components such as Bitset [SWS_CORE_01749].

This text was created by an AI and is based exclusively on the specification data of AUTOSAR release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03026
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03026@rel:R25-11#e528204d
Content hash
e528204d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03026
Status: valid/unmigrated Version: rel:R25-11#e528204d 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_03026@rel:R25-11#e528204d
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

function Basic [SWS_CORE_03027]

BasicString (const BasicString &str, size_type pos, size_type n, const Allocator &a=Allocator());

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9364badb8a33 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The constructor [SWS_CORE_03027] of class ara::core::BasicString serves for the synchronous creation of a new string as a subsequence from a source string str. Starting from index pos, up to n characters are adopted. Via the optional parameter a, a user-defined allocator can be passed; otherwise, a default allocator instance is created by default. The definition is provided via the header #include "ara/core/string.h".

Regarding robustness, the function is declared as not exception safe ([SWS_CORE_03027]). According to the specification per [basic.string], this constructor is likely to fail if pos exceeds the length of the initial string or if allocation of the new buffer fails. Question Q-31041ea019720daf (open) This is in contrast to default and allocator constructors such as [SWS_CORE_03024] and [SWS_CORE_03025], which are specified as conditionally exception safe or explicitly with noexcept.

In interaction within ara::core::BasicString, the function complements alternative overloads: While [SWS_CORE_03026] copies the substring starting from pos to the end of the string, [SWS_CORE_03027] allows the explicit length restriction. Further alternatives for creation are provided by iterator-based ([SWS_CORE_03031]) or pointer-based initializations ([SWS_CORE_03028]). In addition, the same substring pattern with pos and n is also used in related classes such as Bitset in [SWS_CORE_01749].

This usage note was automatically generated based on AUTOSAR R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03027
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03027@rel:R25-11#596b1658
Content hash
596b1658
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03027
Status: valid/unmigrated Version: rel:R25-11#596b1658 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_03027@rel:R25-11#596b1658
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

function Basic [SWS_CORE_03028]

BasicString (const value_type *s, size_type n, const Allocator &a=Allocator());

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2697d3c78a29 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The constructor function of class ara::core::BasicString from header ara/core/string.h synchronously creates a string from a pointer s to a character array and an explicit length specification n [SWS_CORE_03028]. Via parameter a, a custom allocator can optionally be passed, which defaults to Allocator() [SWS_CORE_03028]. The semantics correspond to the specification in [basic.string], with the deviation that the parameter type charT is replaced by value_type [SWS_CORE_03028].

In the specification, the function is designated as not exception safe (not exception safe) [SWS_CORE_03028]. This distinguishes it from exception-safe initializations such as the allocator constructor [SWS_CORE_03025] or the conditionally exception-safe default constructor [SWS_CORE_03024]. Specific error codes, return values, or diagnostic messages to DEM or DET are not provided. As an essential precondition, the caller presumably must ensure (interpretation) that s points to a valid memory area with at least n contiguous elements to prevent undefined behavior. Question Q-957a57c885a2e702 (open)

Within class ara::core::BasicString, this overload complements the construction without length specification for null-terminated strings [SWS_CORE_03029] as well as constructors for sequences of identical characters [SWS_CORE_03030] or substrings [SWS_CORE_03027]. After creation, the object can be modified by assignment and concatenation operators [SWS_CORE_03072]. In addition, the resulting string serves as input for interfaces of related data types, for example for the initialization of a Bitset [SWS_CORE_01749].

This text was created by an AI and is based exclusively on the specifications of release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03028
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03028@rel:R25-11#57c33e8e
Content hash
57c33e8e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03028
Status: valid/unmigrated Version: rel:R25-11#57c33e8e 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_03028@rel:R25-11#57c33e8e
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

function Basic [SWS_CORE_03029]

BasicString (const value_type *s, const Allocator &a=Allocator());

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 99cfbd7fa673 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Constructor [SWS_CORE_03029] initializes an instance of ara::core::BasicString from a null-terminated pointer to strings of type const value_type* and an optional allocator. Its semantics follow the standard definition from [basic.string], with charT replaced by value_type [SWS_CORE_03029]. The header file is #include "ara/core/string.h" [SWS_CORE_03029].

Regarding error behavior and exception safety, the function is explicitly specified as not exception safe [SWS_CORE_03029]. If a memory allocation or error occurs during construction, no exception guarantee is provided. In contrast, standard constructors such as [SWS_CORE_03025] are classified as noexcept and exception safe or [SWS_CORE_03024] as conditionally exception safe (conditionally exception safe).

The specification defines the interplay within the BasicString constructor family:

Callers must ensure that pointer s is valid and properly null-terminated (interpretation: since without length specification, termination serves to determine length according to standard behavior). Question Q-7e0172674e115dea (open) Because the constructor is executed synchronously, it should be considered in safety-critical contexts that dynamic memory may potentially be obtained via the allocator.

This text was generated by an AI system based on AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03029
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03029@rel:R25-11#4190fa76
Content hash
4190fa76
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03029
Status: valid/unmigrated Version: rel:R25-11#4190fa76 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_03029@rel:R25-11#4190fa76
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

function Basic [SWS_CORE_03030]

BasicString (size_type n, value_type c, const Allocator &a=Allocator());

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a67c236a4439 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The constructor [SWS_CORE_03030] of class ara::core::BasicString (defined in header ara/core/string.h) synchronously creates a string from n copies of character c of type value_type. The functional behavior follows the C++ standard specification [basic.string] with the deviation that charT is replaced by value_type. Optionally, a user-defined allocator a can be passed, for which Allocator() is instantiated by default.

Error Handling and Exception Safety

The specification classifies this constructor as not exception safe, which distinguishes it from guaranteed noexcept constructors such as [SWS_CORE_03025] or the conditionally safe default constructor [SWS_CORE_03024]. Interpretation: The lack of exception safety is likely attributable primarily to failures during dynamic memory allocation for n characters. Question Q-87ae8b5cae690fdb (open) Specific AUTOSAR error codes or messages to DET or DEM are not specified for this call.

Concurrency and Interaction

Concurrent accesses by multiple threads to the same instance without external synchronization are not thread-safe. After creation, the string can be modified via concatenation operators such as operator+= for single characters ([SWS_CORE_03074]) or strings ([SWS_CORE_03072]). The created string can also serve to initialize ara::core::Bitset according to [SWS_CORE_01749]. For alternative creations, constructors via pointers ([SWS_CORE_03028], [SWS_CORE_03029]) or initializer lists ([SWS_CORE_03032]) are available.

This text was generated by an AI and serves as guidance. The AUTOSAR specification is authoritative.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03030
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03030@rel:R25-11#7b6ae55f
Content hash
7b6ae55f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03030
Status: valid/unmigrated Version: rel:R25-11#7b6ae55f 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_03030@rel:R25-11#7b6ae55f
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

function Basic [SWS_CORE_03031]

template <class InputIterator> BasicString (InputIterator begin, InputIterator end, const Allocator &a=Allocator());

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 01aca61c51c6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The template function represents the range constructor of class ara::core::BasicString in header <ara/core/string.h> [SWS_CORE_03031]. It serves for the synchronous initialization of a string from a sequence defined by input iterators begin and end of type InputIterator [SWS_CORE_03031]. Optionally, a user-defined allocator instance can be passed via parameter a; if this parameter remains unset, default instance Allocator() is created [SWS_CORE_03031]. The functional semantics follow the requirements of the C++ standard for [basic.string] [SWS_CORE_03031].

Error Handling and Exception Safety

The specification explicitly declares the function as not exception safe [SWS_CORE_03031]. No AUTOSAR-specific DET or DEM reports are issued, since the behavior corresponds to that of the C++ standard library [SWS_CORE_03031]. Interpretation: The lack of exception safety is likely attributable to possible memory allocation failures by the allocator or failing operations of the passed iterators. Question Q-676411ee17d37217 (open)

Concurrency and Limitations

The call occurs synchronously in the context of the calling thread. Unlike default constructor [SWS_CORE_03024] or the pure allocator constructor [SWS_CORE_03025], this constructor is not declared as noexcept. Callers must therefore ensure that range [begin, end) is valid and the referenced elements can be read without errors.

Interaction

The function complements the alternative constructors of ara::core::BasicString, including substring [SWS_CORE_03026], character array [SWS_CORE_03028], and initializer list overloads [SWS_CORE_03032], which exhibit the same exception classification. After construction, the instance can be modified via concatenation operators such as operator+= [SWS_CORE_03072] or serve to initialize dependent types such as Bitset [SWS_CORE_01749].

This usage note was generated automatically based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03031
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03031@rel:R25-11#3f9323cf
Content hash
3f9323cf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03031
Status: valid/unmigrated Version: rel:R25-11#3f9323cf 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_03031@rel:R25-11#3f9323cf
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

function Basic [SWS_CORE_03032]

BasicString (std::initializer_list< value_type >, const Allocator &=Allocator());

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8cadff4d7e13 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The constructor BasicString serves the synchronous initialization of an instance of ara::core::BasicString using an initializer list ([SWS_CORE_03032]). Declaration takes place via header file #include "ara/core/string.h" in the scope of class ara::core::BasicString ([SWS_CORE_03032]). The behavior follows the definition in [basic.string], replacing charT by value_type in standard-compliant fashion ([SWS_CORE_03032]). As parameters, an std::initializer_list<value_type> and optionally an allocator are passed ([SWS_CORE_03032]).

Regarding error handling and exception handling, the constructor is specified as not exception safe ([SWS_CORE_03032]). This distinguishes it from the default constructor ([SWS_CORE_03024]) or the explicit allocator constructor ([SWS_CORE_03025]), which are declared as exception safe or noexcept, respectively. Specific AUTOSAR error codes, DET or DEM messages are not defined for this constructor. Interpretation: In case of insufficient memory, object creation is likely to fail because dynamic memory must be allocated for the elements of the initializer list. Question Q-7ecc7431c1c2f54c (open)

In interaction with module core, the function complements alternative construction methods, such as creation from substrings ([SWS_CORE_03026], [SWS_CORE_03027]), pointers ([SWS_CORE_03028], [SWS_CORE_03029]), or iterators ([SWS_CORE_03031]). For subsequently extending an existing string by an initializer list, the corresponding operator+= is available ([SWS_CORE_03075]). In addition, created BasicString instances can be used to initialize related data types such as Bitset ([SWS_CORE_01749]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03032
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03032@rel:R25-11#3a2876ba
Content hash
3a2876ba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03032
Status: valid/unmigrated Version: rel:R25-11#3a2876ba 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_03032@rel:R25-11#3a2876ba
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

function Basic [SWS_CORE_03033]

BasicString (const BasicString &, const Allocator &);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: bbcb0ccca6c8 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The copy constructor [SWS_CORE_03033] of class ara::core::BasicString serves to synchronously create a new string as a copy of an existing instance with explicit passing of an allocator. The function declaration BasicString (const BasicString &, const Allocator &); is provided via header #include "ara/core/string.h" [SWS_CORE_03033]. The functional semantics adhere to the corresponding usage in the standard pattern [basic.string] [SWS_CORE_03033].

With regard to error handling, the constructor function is explicitly classified in the specification as not exception safe [SWS_CORE_03033]. Specific AUTOSAR error codes or notifications to diagnostic modules such as DET or DEM do not exist for this call; exceptions during dynamic memory allocation by the allocator are therefore likely subject to the general behavior of [basic.string]. Question Q-496b847c39fc25ae (open)

Regarding concurrency and constraints, passing the source instance via const BasicString & requires that the source object is not modified concurrently during the copy operation. Concurrent read accesses from multiple threads are permissible, whereas unprotected parallel write accesses presumably lead to data inconsistencies. Question Q-daa5ef2c4672b657 (open)

In interaction with related specification elements, the constructor stands alongside alternative initialization paths such as the move constructor with allocator [SWS_CORE_03034], the default constructor [SWS_CORE_03024], or the allocator constructor [SWS_CORE_03025]. The created object can be modified seamlessly via operators such as operator+= [SWS_CORE_03072] or used to initialize dependent types such as Bitset [SWS_CORE_01749].

This text was generated by an AI system and serves as a usage note for the AUTOSAR specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03033
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03033@rel:R25-11#6cb3251d
Content hash
6cb3251d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03033
Status: valid/unmigrated Version: rel:R25-11#6cb3251d 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_03033@rel:R25-11#6cb3251d
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

function Basic [SWS_CORE_03034]

BasicString (BasicString &&, const Allocator &);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7f6e4732e351 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The move constructor [SWS_CORE_03034] of class ara::core::BasicString is provided via header file #include "ara/core/string.h". It synchronously creates a new string by taking over the data of an existing instance and binding it to an explicitly specified allocator. The semantic behavior and requirements correspond to the definitions of the ISO C++ standard in [basic.string].

In the call context, the function requires two parameters: an rvalue reference to a source object (BasicString&&) as well as an allocator instance (const Allocator&). The source object remains in a valid but modified state after the move operation. Regarding error handling, the function in [SWS_CORE_03034] is classified as not exception safe. Interpretation: This is likely attributable to the fact that with a differing or incompatible allocator, new memory must be allocated and the elements must be copied, which can fail in case of memory shortage. Question Q-2a89ad749ae1b2f6 (open) This distinguishes the constructor from strictly exception-safe overloads such as [SWS_CORE_03025] or conditionally exception-safe variants such as [SWS_CORE_03024].

In interaction within core, the signature complements the range of creation methods alongside the copy constructor with allocator [SWS_CORE_03033] and substring initializers such as [SWS_CORE_03026]. After successful instantiation, the string can be modified, for example by appending content via operator+= ([SWS_CORE_03072], [SWS_CORE_03307]), or serve as input for dependent data types such as Bitset according to [SWS_CORE_01749].

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03034
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03034@rel:R25-11#27dac459
Content hash
27dac459
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03034
Status: valid/unmigrated Version: rel:R25-11#27dac459 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_03034@rel:R25-11#27dac459
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

function BasicString [SWS_CORE_03020] Upstream: RS_AP_00145

BasicString (const BasicString &str);

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03020
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03020@rel:R25-11#853f7549
Content hash
853f7549
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03020
Status: valid/unmigrated Version: rel:R25-11#853f7549 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_03020@rel:R25-11#853f7549
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

function BasicString [SWS_CORE_03022] Upstream: RS_AP_00145

BasicString (BasicString &&str) noexcept=default;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03022
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03022@rel:R25-11#2a072d43
Content hash
2a072d43
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03022
Status: valid/unmigrated Version: rel:R25-11#2a072d43 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_03022@rel:R25-11#2a072d43
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

function BasicString [SWS_CORE_03302]

explicit BasicString (StringView sv, const Allocator &a=Allocator());

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03302
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03302@rel:R25-11#468764db
Content hash
468764db
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03302
Status: valid/unmigrated Version: rel:R25-11#334f5de6 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03302@rel:R25-11#334f5de6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#468764db2026-09-30
  • R19-11rel:R19-11#30ce8b8b2026-10-14
  • R20-11rel:R20-11#f4ee1ffd2026-10-14
  • R21-11rel:R21-11#ae5cbb962026-10-14
  • R22-11rel:R22-11#069325742026-10-14
  • R23-11rel:R23-11#a044a23b2026-10-14
  • R24-11rel:R24-11#2941a9da2026-10-14
  • R25-11rel:R25-11#334f5de62026-10-14 active
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

function BasicString [SWS_CORE_03303]

template <class T> BasicString (const T &t, size_type pos, size_type n, const Allocator &a=Allocator());

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03303
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03303@rel:R25-11#53fb08b2
Content hash
53fb08b2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03303
Status: valid/unmigrated Version: rel:R25-11#929f742b Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03303@rel:R25-11#929f742b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#53fb08b22026-09-30
  • R19-11rel:R19-11#c03174142026-10-14
  • R20-11rel:R20-11#0a951e942026-10-14
  • R21-11rel:R21-11#b257a9022026-10-14
  • R22-11rel:R22-11#a7755b0d2026-10-14
  • R23-11rel:R23-11#9e566e1c2026-10-14
  • R24-11rel:R24-11#71521ca52026-10-14
  • R25-11rel:R25-11#929f742b2026-10-14 active
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

function append [SWS_CORE_03076]

BasicString & append (const BasicString &str);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 0da0dd028e5c Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function append of class ara::core::BasicString ([SWS_CORE_03076]) from header file #include "ara/core/string.h" serves to synchronously append a complete string object str of type BasicString to the calling instance. The semantics follow the standardized C++ definition under [basic.string]; as return value, the function returns a reference to the modified object (*this) ([SWS_CORE_03076]).

Error Handling and Boundary Conditions

Regarding exception safety, the operation is explicitly classified as not exception safe ([SWS_CORE_03076]). Interpretation: If an error occurs during execution (for example, in case of insufficient memory), the state of the string is likely indeterminate, as no recovery guarantees are specified. Question Q-57504af4ee633d0b (open) In contrast to variants with position indices such as [SWS_CORE_03077] or [SWS_CORE_03309] (triggering IsoStdOutOfRangeViolation) or buffer size checks such as [SWS_CORE_03078] (triggering IsoStdLengthErrorViolation), [SWS_CORE_03076] defines no separate violations.

Interplay and overloads

The function is part of a family of overloads within ara::core::BasicString:

This usage note was generated automatically based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03076
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03076@rel:R25-11#036f8a1f
Content hash
036f8a1f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03076
Status: valid/unmigrated Version: rel:R25-11#036f8a1f 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_03076@rel:R25-11#036f8a1f
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

function append [SWS_CORE_03077]

BasicString & append (const BasicString &str, size_type pos, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. if (pos > str.size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e04fcf79dc67 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function append of class ara::core::BasicString ([SWS_CORE_03077], declared in #include "ara/core/string.h") synchronously appends a substring of another BasicString instance str to the current object. The parameters pos and n (by default npos) determine the start index and the maximum number of characters within str. A reference to the modified target object (*this) is returned as the return value.

Regarding semantics and interface behavior, the function follows the definition in [basic.string] of the C++ standard, but deviates in error handling: If pos > str.size() holds, a IsoStdOutOfRangeViolation is triggered in accordance with [SWS_CORE_03077] (analogous to std::out_of_range). The specification explicitly classifies the operation as not exception safe, which is why no assurance of an unchanged or consistent object state is given in the event of an error.

In the absence of documented synchronization mechanisms, concurrent calls on the same instance are likely not thread-safe. Question Q-ec3b029fca94ad8a (open) Further overloads are available in the module for alternative data sources: whole strings ([SWS_CORE_03076]), buffers and pointers ([SWS_CORE_03078], [SWS_CORE_03079]), character repetitions ([SWS_CORE_03080]), iterator pairs ([SWS_CORE_03081]), initializer lists ([SWS_CORE_03082]), and StringView objects ([SWS_CORE_03308], [SWS_CORE_03309]).

This text was created by an AI and is based on the AUTOSAR R25-11 specification status.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03077
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03077@rel:R25-11#85b9ca52
Content hash
85b9ca52
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03077
Status: valid/unmigrated Version: rel:R25-11#85b9ca52 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_03077@rel:R25-11#85b9ca52
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

function append [SWS_CORE_03078]

BasicString & append (const value_type *s, size_type n);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( size() > n + max_size() ) IsoStdLengthErrorViolation is raised instead of std::length_error

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 30d65bf4c37d Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function append of class ara::core::BasicString ([SWS_CORE_03078]) synchronously appends the first n characters of the passed character array s of type const value_type* to the existing string. As return value, the function returns a reference to the modified instance (BasicString&), which enables chaining consecutive calls. The declaration is available via header file #include "ara/core/string.h".

The functional behavior follows the specification of std::basic_string::append according to [basic.string], but exhibits specific AUTOSAR deviations ([SWS_CORE_03078]):

  • The template parameter charT is replaced by type value_type.
  • If the resulting length exceeds the capacity limit (condition size() > n + max_size()), the violation IsoStdLengthErrorViolation is triggered instead of a std::length_error.

Regarding execution safety, the operation is explicitly specified as not exception safe ([SWS_CORE_03078]). If an error or violation occurs during memory allocation or copying, the object does not guarantee a consistent intermediate state.

The method complements the other overloads of append within ara::core::BasicString. These include appending complete instances ([SWS_CORE_03076]), substrings with bounds checking via IsoStdOutOfRangeViolation ([SWS_CORE_03077]), null-terminated strings ([SWS_CORE_03079]), sequences of identical characters ([SWS_CORE_03080]), iterator ranges ([SWS_CORE_03081]), initializer lists ([SWS_CORE_03082]), and StringView objects ([SWS_CORE_03308], [SWS_CORE_03309]).

This usage note was created automatically based on the AUTOSAR specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03078
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03078@rel:R25-11#11772ee3
Content hash
11772ee3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03078
Status: valid/unmigrated Version: rel:R25-11#11772ee3 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_03078@rel:R25-11#11772ee3
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

function append [SWS_CORE_03079]

BasicString & append (const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a8b5364838ca Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function append of class ara::core::BasicString ([SWS_CORE_03079]) appends a null-terminated string of pointer type const value_type* to the existing string. The semantics correspond to the behavior from the C++ standard [basic.string], where charT is replaced by value_type. As return value, the synchronous function returns a reference to the calling object (BasicString&), which enables the chaining of successive operations.

Regarding error handling and exception safety, the operation is explicitly classified as not exception safe ([SWS_CORE_03079]). In contrast to the overload with length specification [SWS_CORE_03078], which triggers a IsoStdLengthErrorViolation when the maximum length is exceeded, or substring overloads such as [SWS_CORE_03077] with IsoStdOutOfRangeViolation, this variant does not define any specific violation classes. It should be the caller's responsibility to ensure that the passed pointer s points to a valid, null-terminated character sequence. Question Q-4e959f75f98977eb (open)

The function is part of a family of overloads for appending data in ara::core::BasicString:

This usage note was generated automatically based on the AUTOSAR Adaptive Release R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03079
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03079@rel:R25-11#ab6bdc5f
Content hash
ab6bdc5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03079
Status: valid/unmigrated Version: rel:R25-11#ab6bdc5f 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_03079@rel:R25-11#ab6bdc5f
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

function append [SWS_CORE_03080]

BasicString & append (size_type n, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 54bc45f4761c Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function append of ara::core::BasicString ([SWS_CORE_03080]) synchronously appends a specified count n of characters of type value_type (parameter c) to the existing string. It is provided via the header ara/core/string.h and returns a reference to the modified instance (*this), which enables chained calls.

The functional behavior follows the definition of the C++ standard for [basic.string], where charT is replaced by value_type ([SWS_CORE_03080]). Regarding exception safety, the function is explicitly classified as not exception safe ([SWS_CORE_03080]). In contrast to other overloads such as [SWS_CORE_03077] or [SWS_CORE_03078], no specific runtime violations like IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation are defined for this variant. Presumably, the method does not guarantee an unchanged state of the instance in case of an error. Question Q-15af6c12a1a342a9 (open)

In the context of concurrency and thread safety, it must be noted that concurrent write accesses to the same instance of BasicString presumably must be synchronized externally. Question Q-1e8a1511516e4cd8 (open) The function complements the other overloads of append in ara::core::BasicString, which cover appending complete strings ([SWS_CORE_03076]), subranges ([SWS_CORE_03077]), pointer buffers ([SWS_CORE_03078], [SWS_CORE_03079]), iterator ranges ([SWS_CORE_03081]), initializer lists ([SWS_CORE_03082]), or StringView objects ([SWS_CORE_03308], [SWS_CORE_03309]).

This text was generated by an AI and serves as guidance.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03080
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03080@rel:R25-11#e72aa44d
Content hash
e72aa44d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03080
Status: valid/unmigrated Version: rel:R25-11#e72aa44d 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_03080@rel:R25-11#e72aa44d
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

function append [SWS_CORE_03081]

template <class InputIterator> BasicString & append (InputIterator first, InputIterator last);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e0fa0fe8b021 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The template member function append of class ara::core::BasicString is provided via the header file ara/core/string.h [SWS_CORE_03081]. It synchronously appends a sequence of characters bounded by the iterator pair first and last of category InputIterator to the existing string [SWS_CORE_03081]. The functional behavior complies with the corresponding definition in [basic.string] of the C++ standard [SWS_CORE_03081]. The operation returns a reference to the modified BasicString object (*this) as return value [SWS_CORE_03081].

Error Handling and Exception Safety

For this function, exception safety is explicitly specified as not exception safe [SWS_CORE_03081]. In the event of an error—for example, if dynamic memory is exhausted during buffer expansion—the instance should remain in an invalid state according to interpretation. Question Q-600c7dacc868877c (open) Specific AUTOSAR violations such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation are not defined for this iterator overload, unlike other overloads of method [SWS_CORE_03077], [SWS_CORE_03078].

Interplay in the module

The function is part of an extensive group of overloads for appending data to ara::core::BasicString:

The iterator variant [SWS_CORE_03081] thereby offers maximum flexibility for integrating arbitrary generic data sources.

This usage note was generated automatically based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03081
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03081@rel:R25-11#32de7cce
Content hash
32de7cce
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03081
Status: valid/unmigrated Version: rel:R25-11#32de7cce 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_03081@rel:R25-11#32de7cce
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

function append [SWS_CORE_03082]

BasicString & append (std::initializer_list< value_type >);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9302c6c1fbe4 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function append of class ara::core::BasicString synchronously appends the characters of an initializer list of type std::initializer_list<value_type> to the existing string object [SWS_CORE_03082]. The behavior follows the semantics of [basic.string] from the C++ standard with the difference that charT is replaced by value_type [SWS_CORE_03082]. The call modifies the instance directly and returns a reference to the object, enabling method chaining.

Regarding error handling, the function is classified as not exception-safe (not exception safe) [SWS_CORE_03082]. Unlike related overloads such as [SWS_CORE_03077] or [SWS_CORE_03078], this variant does not define specific violations such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation. Interpretation: If the internal memory allocation fails, the object presumably remains in an undefined state. Question Q-169750518dc1904b (open) Since the internal state is modified, a concurrent call without external synchronization is likely to result in data races.

In interplay within ara::core::BasicString, the function is part of a group of related append operations. It complements overloads for entire strings ([SWS_CORE_03076]), subranges ([SWS_CORE_03077]), pointers to strings ([SWS_CORE_03078], [SWS_CORE_03079]), repeated single characters ([SWS_CORE_03080]), iterator ranges ([SWS_CORE_03081]), and StringView instances ([SWS_CORE_03308], [SWS_CORE_03309]).

This text was generated by an AI and serves as guidance in the AUTOSAR environment.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03082
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03082@rel:R25-11#2b703255
Content hash
2b703255
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03082
Status: valid/unmigrated Version: rel:R25-11#2b703255 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_03082@rel:R25-11#2b703255
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

function append [SWS_CORE_03308]

BasicString & append (StringView sv);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a51869a9d851 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous member function append of class ara::core::BasicString appends the characters of a passed string view (StringView sv) to the existing string [SWS_CORE_03308]. The interface is included via header #include "ara/core/string.h" [SWS_CORE_03308]. It returns a reference to the calling instance (BasicString &), allowing multiple modifications to be chained [SWS_CORE_03308]. The functional semantics follow the corresponding specification in C++ [basic.string] [SWS_CORE_03308].

Error Handling and Exception Safety

In AUTOSAR, the function is explicitly specified as not exception safe ("not exception safe") [SWS_CORE_03308]. Specific error codes, DET or DEM messages, and explicit AUTOSAR violations are not specified for this call, whereas related overloads such as [SWS_CORE_03077] or [SWS_CORE_03309] trigger a IsoStdOutOfRangeViolation on index overflow and [SWS_CORE_03078] triggers a IsoStdLengthErrorViolation on length overflow.

Concurrency and Interaction

Since append directly modifies the state of the invoked string object, concurrent access by multiple threads to the same instance without external synchronization is likely not thread-safe. Question Q-814665e285846c8e (open) The method is grouped with further append variants of ara::core::BasicString, which allow appending complete BasicString instances [SWS_CORE_03076], C strings [SWS_CORE_03079], repeated single characters [SWS_CORE_03080], as well as iterator ranges [SWS_CORE_03081] or initializer lists [SWS_CORE_03082].

This usage note was generated automatically based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03308
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03308@rel:R25-11#ca95ba26
Content hash
ca95ba26
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03308
Status: valid/unmigrated Version: rel:R25-11#eff6b5dc Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03308@rel:R25-11#eff6b5dc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ca95ba262026-09-30
  • R19-11rel:R19-11#8aab77bd2026-10-14
  • R20-11rel:R20-11#6800f5c02026-10-14
  • R21-11rel:R21-11#ad4c498c2026-10-14
  • R22-11rel:R22-11#498bea932026-10-14
  • R23-11rel:R23-11#bc8b2a142026-10-14
  • R24-11rel:R24-11#6f0af72f2026-10-14
  • R25-11rel:R25-11#eff6b5dc2026-10-14 active
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

function append [SWS_CORE_03309]

template <class T> BasicString & append (const T &t, size_type pos, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. if (pos > sv.size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 25c30fc7f5fb Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The template function append of class ara::core::BasicString ([SWS_CORE_03309]) from the header file #include "ara/core/string.h" serves to synchronously append a subrange of an object t to the calling string. The behavior is oriented toward the ISO C++ specification [basic.string]. The parameter pos specifies the start index in the source object, while n determines the maximum number of characters to append (default value npos). A reference to the modified string object (*this) is provided as return value. Interpretation: The passed object t is likely interpreted internally as a string view sv. Question Q-9752a5eeaf05b684 (open)

Error handling

AUTOSAR defines a specific deviation from the C++ standard for this function: If the specified position is greater than the size of the source range (pos > sv.size()), a IsoStdOutOfRangeViolation is triggered instead of std::out_of_range ([SWS_CORE_03309]). The semantic description of this violation corresponds to that of std::out_of_range.

Restrictions and Exception Safety

The operation is explicitly classified as not exception safe in the specification ([SWS_CORE_03309]). In the event of occurring errors, a stable retention of the previous state is therefore not guaranteed.

Interaction

The function complements the other variants for string extension in ara::core::BasicString. These include overloads for complete BasicString instances ([SWS_CORE_03076]) or their subranges ([SWS_CORE_03077]), C strings with length specification ([SWS_CORE_03078]) or as null-terminated pointers ([SWS_CORE_03079]), character repetitions ([SWS_CORE_03080]), iterator ranges ([SWS_CORE_03081]), initializer lists ([SWS_CORE_03082]), and separate StringView objects ([SWS_CORE_03308]).

This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03309
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03309@rel:R25-11#c88e788b
Content hash
c88e788b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03309
Status: valid/unmigrated Version: rel:R25-11#34725e40 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03309@rel:R25-11#34725e40
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c88e788b2026-09-30
  • R19-11rel:R19-11#a14295422026-10-14
  • R20-11rel:R20-11#f70df1b22026-10-14
  • R21-11rel:R21-11#158fe1c42026-10-14
  • R22-11rel:R22-11#acaa045d2026-10-14
  • R23-11rel:R23-11#66e754de2026-10-14
  • R24-11rel:R24-11#6916df192026-10-14
  • R25-11rel:R25-11#34725e402026-10-14 active
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

function assign [SWS_CORE_03084]

BasicString & assign (const BasicString &str);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b3f320ee734e Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function assign of class ara::core::BasicString serves to synchronously assign the content of an existing string to the calling instance according to the behavior of [basic.string] [SWS_CORE_03084]. The function is provided via header ara/core/string.h and accepts a const reference to a BasicString object (const BasicString &str). As return value, it returns a reference to the modified target object (*this), which enables method chaining [SWS_CORE_03084].

Regarding robustness, the function is explicitly specified as not exception safe [SWS_CORE_03084]. During dynamic memory allocations during the copy process, errors can occur that are not caught by exception guarantees; in case of error, the instance presumably remains in an undefined state. Question Q-0ddd5ac03e56490f (open) Specific AUTOSAR error codes or messages to DET or DEM are not provided for this assignment function.

In interplay with other interfaces, assign represents the copy variant within a family of assignment functions. While the moving overload [SWS_CORE_03085] is declared as conditionally exception safe, the remaining assignments—such as via substrings [SWS_CORE_03086], string views [SWS_CORE_03087], or iterator ranges [SWS_CORE_03091]—share the property not exception safe. Since thread safety is not specified, a concurrent call on the same instance without external synchronization is likely not reentrant and not data-safe. Question Q-37d67c851a296f55 (open)

This usage note was generated automatically based on specification data.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03084
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03084@rel:R25-11#a44cf075
Content hash
a44cf075
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03084
Status: valid/unmigrated Version: rel:R25-11#a44cf075 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_03084@rel:R25-11#a44cf075
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

function assign [SWS_CORE_03085]

BasicString & assign (BasicString &&str) noexcept(std::allocator_ traits< Allocator >::propagate_on_container_move_ assignment::value||std::allocator_traits< Allocator >::is_always_ equal::value);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 44a8fa24f81b Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The move overload of the member function assign according to [SWS_CORE_03085] synchronously assigns the content of the rvalue reference str to an existing instance of ara::core::BasicString (declared in the header file ara/core/string.h). The function returns a reference to the calling object (*this). The functional behavior complies with the corresponding definition in [basic.string] of the C++ standard.

With respect to error and exception handling, the method is declared as conditionally exception-safe (conditionally exception safe) [SWS_CORE_03085]. Throwing exceptions is excluded per noexcept if and only if the allocator propagates the move assignment (propagate_on_container_move_assignment::value) or allocator instances are always considered equal (is_always_equal::value). Unlike other assignment functions such as [SWS_CORE_03086] or [SWS_CORE_03088], which trigger specific violations such as IsoStdOutOfRangeViolation and IsoStdLengthErrorViolation upon range or length violations and are considered not exception safe, this operation does not define any separate AUTOSAR violations.

In interplay with alternative overloads of BasicString::assign—such as for constant lvalue references according to [SWS_CORE_03084], views via [SWS_CORE_03087], or string buffers according to [SWS_CORE_03089]—the rvalue variant enables a resource-efficient assignment without reallocating memory. Interpretation: After the transfer, the source object str presumably remains in a valid but unspecified state, as is typical for move operations according to [basic.string]. Question Q-88c8157963cdd7e0 (open)

This text was generated by an AI and serves as guidance. The referenced AUTOSAR specifications are authoritative.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03085
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03085@rel:R25-11#9d482d91
Content hash
9d482d91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03085
Status: valid/unmigrated Version: rel:R25-11#9d482d91 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_03085@rel:R25-11#9d482d91
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

function assign [SWS_CORE_03086]

BasicString & assign (const BasicString &str, size_type pos, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. if (pos > str.size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 59ccfeeb0b8f Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function assign of class ara::core::BasicString ([SWS_CORE_03086]), provided via header ara/core/string.h, synchronously assigns a subrange of a passed source string str to the current instance. In addition to the source reference str, the call takes the start index pos and optionally the number of characters n, for which npos is defined by default. After the assignment, a reference to the modified object (*this) is returned. The functional semantics basically conform to the specifications from [basic.string] ([SWS_CORE_03086]).

In error handling, there is an explicit deviation from the ISO C++ standard: if condition pos > str.size() holds, no std::out_of_range is triggered, but a IsoStdOutOfRangeViolation is caused ([SWS_CORE_03086]). In addition, the function is explicitly classified in the specification as not exception safe ([SWS_CORE_03086]).

Among the assignment methods of ara::core::BasicString, this substring overload complements the assignment of complete strings ([SWS_CORE_03084]), the conditionally exception-safe move assignment ([SWS_CORE_03085]), assignment from a StringView ([SWS_CORE_03087]), and operations with character buffers ([SWS_CORE_03088]) or iterator ranges ([SWS_CORE_03091]).

This text was generated by an AI and does not replace an official specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03086
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03086@rel:R25-11#5c0799de
Content hash
5c0799de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03086
Status: valid/unmigrated Version: rel:R25-11#5c0799de 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_03086@rel:R25-11#5c0799de
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

function assign [SWS_CORE_03087]

BasicString & assign (StringView sv);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8424e8d88f34 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function assign for StringView ([SWS_CORE_03087]) synchronously replaces the content of a ara::core::BasicString instance with the characters of the passed string view. The semantics follow the corresponding definition in [basic.string] of the C++ standard library. As return value, the function returns a reference to the modified target object (BasicString &), which enables chaining consecutive method calls. The declaration is provided via header file #include "ara/core/string.h".

Error Handling and Exception Safety

The function is designated in the specification as not exception safe ([SWS_CORE_03087]). Interpretation: If the assignment requires increasing the internal buffer capacity and this memory allocation fails, an exception is likely thrown without any guarantee for the unchanged state of the instance. Question (open)

Concurrency and Limitations

Interpretation: Calls to assign on the same instance of ara::core::BasicString are not thread-safe and require external synchronization in the case of concurrent read or write access by multiple threads. Question Q-12774d6cd363b032 (open)

Interaction

The function complements the assignment spectrum of ara::core::BasicString with type-safe views. It exists alongside the overloads for copy and move assignments ([SWS_CORE_03084], [SWS_CORE_03085]), substrings ([SWS_CORE_03086]), pointers to character data ([SWS_CORE_03088], [SWS_CORE_03089]), character repetitions ([SWS_CORE_03090]), iterator ranges ([SWS_CORE_03091]), and initializer lists ([SWS_CORE_03092]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03087
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03087@rel:R25-11#30a459e9
Content hash
30a459e9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03087
Status: valid/unmigrated Version: rel:R25-11#30a459e9 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_03087@rel:R25-11#30a459e9
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

function assign [SWS_CORE_03088]

BasicString & assign (const value_type *s, size_type n);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( n > max_size() ) IsoStdLengthErrorViolation is raised instead of std:: length_error

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b4b10e8a4464 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function assign of class ara::core::BasicString synchronously assigns the first n characters from the passed character array s of type const value_type* to the current string instance and returns a reference to the modified object (*this) [SWS_CORE_03088]. The functional behavior basically conforms to the definition according to [basic.string], with AUTOSAR replacing the generic parameter type charT with value_type [SWS_CORE_03088].

Error Handling and Boundary Conditions

The assignment is specified as not exception safe (not exception safe) [SWS_CORE_03088]. If the specified length n exceeds the maximum representable size max_size() (n > max_size()), the function triggers the AUTOSAR violation IsoStdLengthErrorViolation instead of std::length_error [SWS_CORE_03088]. Interpretation: The caller likely must ensure that s points to at least n valid characters, since the specification defines no separate buffer check. Question Q-290c36db79f27a0a (open)

Interaction

The function is primarily suitable for non-null-terminated buffers or subranges of arrays. It complements the overload assign(const value_type* s) [SWS_CORE_03089], where the length is determined implicitly. In the class context of ara::core::BasicString, there are further assignment overloads for taking existing strings via copy [SWS_CORE_03084] or move [SWS_CORE_03085], for assigning substrings with index checking [SWS_CORE_03086], for adopting from StringView [SWS_CORE_03087], as well as for character repetitions [SWS_CORE_03090], iterator ranges [SWS_CORE_03091], and initializer lists [SWS_CORE_03092].

This text was created by an AI and is based exclusively on the specification data of AUTOSAR release R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03088
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03088@rel:R25-11#a2fcc552
Content hash
a2fcc552
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03088
Status: valid/unmigrated Version: rel:R25-11#a2fcc552 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_03088@rel:R25-11#a2fcc552
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

function assign [SWS_CORE_03089]

BasicString & assign (const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2dda9246daad Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function assign of class ara::core::BasicString ([SWS_CORE_03089]) from header ara/core/string.h replaces the current content of a string object with the passed character sequence s of type const value_type*. The call returns a reference to the modified object (*this). The functional behavior follows the specifications of the ISO C++ standard for [basic.string] with the documented deviation that character type charT is replaced by value_type ([SWS_CORE_03089]). Interpretation: Due to the lack of a separate length parameter, pointer s will likely point to a null-terminated character array. Question Q-eea79e929750c27f (open)

With respect to error handling and robustness, the assignment function is classified as not exception safe (not exception safe) ([SWS_CORE_03089]). In contrast to related overloads such as assign(const BasicString&, size_type, size_type) ([SWS_CORE_03086]) or assign(const value_type*, size_type) ([SWS_CORE_03088]), no specific runtime violations such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation are defined for this variant.

In module core, the function is part of a comprehensive overload family for content assignment. In addition to raw pointers, this also covers complete strings ([SWS_CORE_03084]), move semantics ([SWS_CORE_03085]), StringView instances ([SWS_CORE_03087]), repeated single characters ([SWS_CORE_03090]), iterator ranges ([SWS_CORE_03091]), and initializer lists ([SWS_CORE_03092]). AUTOSAR also provides similar assignment patterns in container types such as ara::core::Vector ([SWS_CORE_01328]).

This text was generated by an AI. All statements are based on the AUTOSAR specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03089
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03089@rel:R25-11#6afeebe4
Content hash
6afeebe4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03089
Status: valid/unmigrated Version: rel:R25-11#6afeebe4 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_03089@rel:R25-11#6afeebe4
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

function assign [SWS_CORE_03090]

BasicString & assign (size_type n, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 30dff2417cf7 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function assign of class ara::core::BasicString (defined in #include "ara/core/string.h") synchronously replaces the current content of the string with n consecutive copies of character c of type value_type [SWS_CORE_03090]. The semantics correspond to the specification for [basic.string] with the deviation that the type parameter charT is replaced by value_type [SWS_CORE_03090]. As return value, the function provides an lvalue reference to the modified instance (*this), enabling the chaining of further operations.

Error Handling and Exception Safety

According to the specification, the operation is explicitly classified as not exception safe [SWS_CORE_03090]. Unlike other overloads that trigger defined violations such as IsoStdOutOfRangeViolation [SWS_CORE_03086] or IsoStdLengthErrorViolation [SWS_CORE_03088] upon boundary violations, this function names no specific violations. If a required memory allocation fails, no assurances exist regarding the continuation of the previous object state.

Concurrency and Limitations

Since the assignment modifies the internal buffer directly and no internal synchronization is specified, concurrent access by multiple threads to the same instance will likely not be thread-safe (Interpretation). Question Q-50f419c4bca5c151 (open) Concurrent calls must be coordinated externally by the caller.

Interaction

The function complements the assignment portfolio of ara::core::BasicString, which, in addition to copy and move assignments [SWS_CORE_03084], [SWS_CORE_03085] as well as iterators and initializer lists [SWS_CORE_03091], [SWS_CORE_03092], also provides interfaces for string views [SWS_CORE_03087]. A comparable assignment pattern with a repetition count exists analogously for ara::core::Vector::assign [SWS_CORE_01329].

This usage note was generated automatically based on the specification AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03090
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03090@rel:R25-11#5d986d44
Content hash
5d986d44
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03090
Status: valid/unmigrated Version: rel:R25-11#5d986d44 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_03090@rel:R25-11#5d986d44
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

function assign [SWS_CORE_03091]

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

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: cacec801ecc4 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template member function assign of class ara::core::BasicString synchronously replaces the content of the string with the elements of the range [first, last) according to the specifications in [basic.string] [SWS_CORE_03091]. It expects two input iterators as parameters and returns a reference to the modified instance (BasicString&) as return value [SWS_CORE_03091].

Regarding error safety, the function is explicitly declared as not exception safe [SWS_CORE_03091]. In contrast to other overloads for which specific error checks such as IsoStdOutOfRangeViolation [SWS_CORE_03086] or IsoStdLengthErrorViolation [SWS_CORE_03088] are specified, the specification identifies no separate violations for this iterator range. If a memory allocation error occurs during the assignment, no exception guarantee exists.

The specification makes no explicit statements regarding reentrancy and concurrency. In the event of competing read or write access by multiple threads to the same BasicString instance, the function is presumably not thread-safe and requires application-side synchronization. Question Q-1c5502b72f566eda (open)

In the module, this interface complements the assignment operators and overloads for copy assignments [SWS_CORE_03084], conditionally exception-safe move assignments [SWS_CORE_03085], as well as assignments via StringView [SWS_CORE_03087] and std::initializer_list [SWS_CORE_03092]. AUTOSAR Adaptive also provides an equivalent iterator assignment for ara::core::Vector [SWS_CORE_01328].

This usage note is based on the specification of AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03091
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03091@rel:R25-11#9c283526
Content hash
9c283526
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03091
Status: valid/unmigrated Version: rel:R25-11#9c283526 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_03091@rel:R25-11#9c283526
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

function assign [SWS_CORE_03092]

BasicString & assign (std::initializer_list< value_type >);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5ed7cdcbec8f Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function assign of class ara::core::BasicString ([SWS_CORE_03092]), defined in header file ara/core/string.h, replaces the previous content of the calling instance with the values of a passed std::initializer_list<value_type>. The functional behavior follows the requirements for [basic.string] of the ISO C++ standard entirely, with the only specific deviation that C++ standard type charT is replaced by value_type ([SWS_CORE_03092]). After successful assignment, the method returns a reference to the modified BasicString object itself ([SWS_CORE_03092]).

Classification not exception safe applies to execution ([SWS_CORE_03092]). In case of error, neither specific DET or DEM reports nor separate AUTOSAR violations are defined for this overload. This distinguishes the function from related overloads such as [SWS_CORE_03086], which triggers a IsoStdOutOfRangeViolation on an invalid position, or [SWS_CORE_03088], which reacts with a IsoStdLengthErrorViolation when max_size() is exceeded.

In the overall system of ara::core::BasicString, the function is closely related to alternative assignment interfaces. These include regular copy assignment ([SWS_CORE_03084]), conditionally exception-safe move assignment ([SWS_CORE_03085]), assignments via StringView ([SWS_CORE_03087]), pointers ([SWS_CORE_03089]), repetitions of single characters ([SWS_CORE_03090]), or iterator ranges ([SWS_CORE_03091]). In addition, sequence container ara::core::Vector also follows the same design pattern for initializer lists via [SWS_CORE_01330].

This usage note was automatically created based on AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03092
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03092@rel:R25-11#cc61c6f6
Content hash
cc61c6f6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03092
Status: valid/unmigrated Version: rel:R25-11#cc61c6f6 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_03092@rel:R25-11#cc61c6f6
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

function assign [SWS_CORE_03306]

template <class T> BasicString & assign (const T &t, size_type pos, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. if (pos > sv.size()) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 74f1e7aa690a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template member function assign of class ara::core::BasicString assigns to the instance a sub-sequence of an object t starting at position pos with a maximum length of n characters and returns a reference to the object [SWS_CORE_03306]. The function is defined in header ara/core/string.h and follows the behavior from [basic.string] [SWS_CORE_03306].

Regarding error handling, a specific deviation applies: if pos > sv.size() holds, an IsoStdOutOfRangeViolation is thrown instead of std::out_of_range [SWS_CORE_03306]. The function is classified as not exception-safe (not exception safe) [SWS_CORE_03306].

Constraints and interaction with related interfaces:

  • Interpretation: Since thread safety is not specified, concurrent read and write accesses to the same instance without external synchronization are likely not thread-safe. Question Q-a909f00530d3ada1 (open)
  • Assigning a sub-sequence from another BasicString follows the same error semantics with IsoStdOutOfRangeViolation [SWS_CORE_03086].
  • Other variants in ara::core::BasicString allow assigning StringView [SWS_CORE_03087] or character arrays [SWS_CORE_03088], with the latter throwing IsoStdLengthErrorViolation in case of excess length [SWS_CORE_03088].

This text was generated by an AI based on the AUTOSAR specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03306
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03306@rel:R25-11#79fe763c
Content hash
79fe763c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03306
Status: valid/unmigrated Version: rel:R25-11#6d44c82a Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03306@rel:R25-11#6d44c82a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#79fe763c2026-09-30
  • R19-11rel:R19-11#861a90ae2026-10-14
  • R20-11rel:R20-11#d8e748762026-10-14
  • R21-11rel:R21-11#63bad1582026-10-14
  • R22-11rel:R22-11#e94346be2026-10-14
  • R23-11rel:R23-11#9494256b2026-10-14
  • R24-11rel:R24-11#f1c581ec2026-10-14
  • R25-11rel:R25-11#6d44c82a2026-10-14 active
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

function at [SWS_CORE_03063]

const_reference at (size_type pos) const;

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 910c6aea630a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function at of class ara::core::BasicString ([SWS_CORE_03063], declared in header ara/core/string.h) provides synchronous, reading direct access to the character at position pos. As a return value, an const_reference to the addressed element is returned.

The functional behavior basically follows the C++ standard according to [basic.string], but deviates in error handling: In case of an index outside the valid range (pos >= size()), the function triggers a IsoStdOutOfRangeViolation instead of std::out_of_range [SWS_CORE_03063]. Regarding exception safety, the function is explicitly classified as not exception safe [SWS_CORE_03063].

Restrictions on thread safety are not documented; Interpretation: Const read access is likely reentrant provided no concurrent write operations take place on the same instance. Question Q-bda65b88abb531ce (open) The modifying counterpart to this method is the non-const overload reference at(size_type pos) [SWS_CORE_03064]. The same error concept with IsoStdOutOfRangeViolation for out-of-bounds violations is also used by other core containers, including ara::core::Vector ([SWS_CORE_01354], [SWS_CORE_01355]) as well as ara::core::StringView ([SWS_CORE_02133]) and ara::core::Array ([SWS_CORE_01273], [SWS_CORE_01274]).

This text was generated by an AI based on the AUTOSAR Adaptive R25-11 specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03063
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03063@rel:R25-11#f821ef4d
Content hash
f821ef4d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03063
Status: valid/unmigrated Version: rel:R25-11#f821ef4d 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_03063@rel:R25-11#f821ef4d
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

function at [SWS_CORE_03064]

reference at (size_type pos);

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 75b751deed5a Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function at of class ara::core::BasicString ([SWS_CORE_03064]), provided via header #include "ara/core/string.h" ([SWS_CORE_03064]), grants synchronous access to a character at position pos and returns a mutable reference (reference) ([SWS_CORE_03064]). The basic semantics follow the standard [basic.string] ([SWS_CORE_03064]).

With regard to error handling, the implementation intentionally deviates from the C++ standard: If condition pos >= size() is met, the violation IsoStdOutOfRangeViolation is thrown instead of a std::out_of_range exception ([SWS_CORE_03064]). The function is classified as not exception safe ([SWS_CORE_03064]). Interpretation: An out-of-range violation in the AUTOSAR runtime system is likely to lead to termination or to the invocation of registered error routines via AddAbortHandler ([SWS_CORE_00054]). Question Q-91f3adeb10b4ec67 (open)

Regarding concurrency and constraints, no thread safety is declared for the operation ([SWS_CORE_03064]). Interpretation: Since modifying access to the string takes place, concurrent calls on the same instance are likely to require external synchronization. Question Q-d5ec3710f4b8e525 (open)

For read access to constant instances, the overload const_reference at(size_type pos) const ([SWS_CORE_03063]) is available. The behavior on out-of-range access via IsoStdOutOfRangeViolation follows the consistent pattern of the Core types, as also specified for ara::core::Vector ([SWS_CORE_01355]), ara::core::Array ([SWS_CORE_01273]), ara::core::Map ([SWS_CORE_01456]), and ara::core::StringView ([SWS_CORE_02133]).

This text was generated by an AI based on the AUTOSAR payload.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03064
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03064@rel:R25-11#a56d3907
Content hash
a56d3907
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03064
Status: valid/unmigrated Version: rel:R25-11#a56d3907 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_03064@rel:R25-11#a56d3907
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

function back [SWS_CORE_03067]

reference back ();

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03067
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03067@rel:R25-11#9fb2e32c
Content hash
9fb2e32c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03067
Status: valid/unmigrated Version: rel:R25-11#9fb2e32c 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_03067@rel:R25-11#9fb2e32c
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

function back [SWS_CORE_03068]

const_reference back () const;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03068
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03068@rel:R25-11#ee2d56e9
Content hash
ee2d56e9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03068
Status: valid/unmigrated Version: rel:R25-11#ee2d56e9 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_03068@rel:R25-11#ee2d56e9
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

function begin [SWS_CORE_03039]

iterator begin () noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03039
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03039@rel:R25-11#20170d1f
Content hash
20170d1f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03039
Status: valid/unmigrated Version: rel:R25-11#20170d1f 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_03039@rel:R25-11#20170d1f
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

function begin [SWS_CORE_03040]

const_iterator begin () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03040
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03040@rel:R25-11#6436f09d
Content hash
6436f09d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03040
Status: valid/unmigrated Version: rel:R25-11#6436f09d 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_03040@rel:R25-11#6436f09d
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

function c_str [SWS_CORE_03069]

const value_type * c_str () const noexcept;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03069
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03069@rel:R25-11#e11870c6
Content hash
e11870c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03069
Status: valid/unmigrated Version: rel:R25-11#e11870c6 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_03069@rel:R25-11#e11870c6
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

function capacity [SWS_CORE_03055]

size_type capacity () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03055
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03055@rel:R25-11#a327f62c
Content hash
a327f62c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03055
Status: valid/unmigrated Version: rel:R25-11#a327f62c 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_03055@rel:R25-11#a327f62c
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

function cbegin [SWS_CORE_03047]

const_iterator cbegin () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03047
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03047@rel:R25-11#2b7075ee
Content hash
2b7075ee
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03047
Status: valid/unmigrated Version: rel:R25-11#2b7075ee 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_03047@rel:R25-11#2b7075ee
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

function cend [SWS_CORE_03048]

const_iterator cend () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03048
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03048@rel:R25-11#e8f91809
Content hash
e8f91809
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03048
Status: valid/unmigrated Version: rel:R25-11#e8f91809 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_03048@rel:R25-11#e8f91809
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

function clear [SWS_CORE_03057]

void clear () noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: bf42e7d07529 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function clear of class ara::core::BasicString serves to clear the contents of a string instance according to the corresponding usage in [basic.string] [SWS_CORE_03057]. It is included via the header file #include "ara/core/string.h" [SWS_CORE_03057].

use

The operation has the signature void clear () noexcept;, accepts no parameters, and has no return value [SWS_CORE_03057]. The invocation occurs synchronously on the respective instance. Interpretation: Following the referenced semantics in [basic.string], the function is likely to remove all contained characters and reset the length of the string to zero. Question Q-242b714c4fead3cf (open)

Error handling

The function is classified as exception safe (exception safe) and declared with the specifier noexcept [SWS_CORE_03057]. No C++ exceptions are thrown. Specific error codes, DET, or DEM messages are not specified for this function [SWS_CORE_03057].

Interaction

In module core, container cleanup follows a uniform design pattern. The same semantics and signature are also found in ara::core::Vector::clear from ara/core/vector.h [SWS_CORE_01375] as well as in ara::core::Map::clear from ara/core/map.h [SWS_CORE_01485], which are likewise specified as synchronous, parameterless, and noexcept [SWS_CORE_03057] [SWS_CORE_01375] [SWS_CORE_01485].

This text was generated by an AI based on the AUTOSAR specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03057
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03057@rel:R25-11#be30f887
Content hash
be30f887
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03057
Status: valid/unmigrated Version: rel:R25-11#be30f887 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_03057@rel:R25-11#be30f887
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

function compare [SWS_CORE_03321]

int compare (StringView sv) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 58e7a03ff5e0 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

Member function compare of class ara::core::BasicString ([SWS_CORE_03321]) serves for the synchronous, lexicographical comparison of the string content with a passed StringView sv. The functional semantics follow the C++ standard construct [basic.string] ([SWS_CORE_03321]). Interpretation: The return value of type int is negative if the string ranks lexicographically before sv, exactly 0 in case of equality, and positive if it ranks after sv. Question (open)

Error Handling and Exception Safety

The method is declared with noexcept and specified as exception-safe (exception safe) ([SWS_CORE_03321]). It throws no exceptions and reports errors neither via error codes nor via DET or DEM mechanisms.

Concurrency and Limitations

Since it is a const operation (const) without modifying side effects on the instance state ([SWS_CORE_03321]), concurrent read calls from multiple execution contexts are likely thread-safe, provided no concurrent write accesses occur (interpretation). Question (open)

Interaction

While many data types in ara::core such as ErrorCode ([SWS_CORE_00571]) or Result ([SWS_CORE_00780]) rely on boolean equality operators, compare ([SWS_CORE_03321]) enables a three-way ordering check, comparable to the criteria of comparison objects like Map::value_compare ([SWS_CORE_01423]).

This text was generated by an AI and serves as a usage guide for the specification element.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03321
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03321@rel:R25-11#8ce75f1e
Content hash
8ce75f1e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03321
Status: valid/unmigrated Version: rel:R25-11#d1d61e02 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03321@rel:R25-11#d1d61e02
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8ce75f1e2026-09-30
  • R19-11rel:R19-11#35f025472026-10-14
  • R20-11rel:R20-11#8780c3062026-10-14
  • R21-11rel:R21-11#ca37f6cf2026-10-14
  • R22-11rel:R22-11#21ef93772026-10-14
  • R23-11rel:R23-11#93a063862026-10-14
  • R24-11rel:R24-11#50ef39672026-10-14
  • R25-11rel:R25-11#d1d61e022026-10-14 active
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

function compare [SWS_CORE_03322]

int compare (size_type pos1, size_type n1, StringView sv) const;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f60527a2d683 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Member function compare of class ara::core::BasicString enables the synchronous lexicographical comparison of a substring with a string view ([SWS_CORE_03322]).

Usage and Parameters

The method is called synchronously on an instance of ara::core::BasicString ([SWS_CORE_03322]). According to its signature, it accepts the following parameters:

The semantics follow the corresponding usage in [basic.string] ([SWS_CORE_03322]). The return value of type int is likely to yield zero upon equality and take on negative or positive values upon lexicographical deviation. Question Q-15a8b7e331f5f518 (open)

Error Handling and Restrictions

Regarding exception handling, the function is classified as not exception safe ([SWS_CORE_03322]). Specific error codes as well as mechanisms such as DET or DEM are not identified in the specification. As a const-qualified member function, the call does not change the state of the instance ([SWS_CORE_03322]). The payload contains no explicit information regarding thread safety or reentrancy.

Interaction

The function is available via header ara/core/string.h and complements the range of typed comparison operations in namespace ara::core, such as those defined for ErrorCode ([SWS_CORE_00571]) or Result ([SWS_CORE_00780]).

This usage note was created automatically based on the specification of the Core module (Release R25-11).

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03322
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03322@rel:R25-11#a54addf2
Content hash
a54addf2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03322
Status: valid/unmigrated Version: rel:R25-11#b09a7e38 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03322@rel:R25-11#b09a7e38
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a54addf22026-09-30
  • R19-11rel:R19-11#d75e45392026-10-14
  • R20-11rel:R20-11#74b8bdd52026-10-14
  • R21-11rel:R21-11#1eaae95f2026-10-14
  • R22-11rel:R22-11#c7bb44272026-10-14
  • R23-11rel:R23-11#457386952026-10-14
  • R24-11rel:R24-11#0a376bc42026-10-14
  • R25-11rel:R25-11#b09a7e382026-10-14 active
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

function compare [SWS_CORE_03323]

template <typename T> int compare (size_type pos1, size_type n1, const T &t, size_type pos2, size_type n2=npos) const;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1b123341f4a6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The template member function compare of class ara::core::BasicString ([SWS_CORE_03323], header ara/core/string.h) serves for the synchronous lexicographical comparison of a section of the current instance with the sub-range of a passed object t. The behavior follows the definition of [basic.string] of the C++ standard [SWS_CORE_03323]. Parameters pos1 and n1 determine the start position and length of the sub-range of the calling instance, while pos2 and n2 specify the section of t to be compared.

The return value is a signed int value [SWS_CORE_03323] reflecting the relational order: it is less than zero if the own substring precedes, zero on equality, and greater than zero if it follows.

Error Handling and Boundary Conditions

Regarding error handling, the function is specified as not exception safe [SWS_CORE_03323]; AUTOSAR-specific error codes, DET, or DEM messages do not exist for this operation. Interpretation: Callers must ensure beforehand that the indices are valid, since invalid range parameters are presumably likely to lead to undefined behavior in the absence of exception handling. Question Q-ae28f07a1f86f827 (open)

Interaction

The method is declared as const [SWS_CORE_03323]. While basic operators such as operator== in ErrorCode ([SWS_CORE_00571]) or Result ([SWS_CORE_00780]) test for pure boolean equality, compare provides a three-way order relation over sub-ranges.

This usage note is based on the AUTOSAR Adaptive specification for Release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03323
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03323@rel:R25-11#2fc0c4ce
Content hash
2fc0c4ce
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03323
Status: valid/unmigrated Version: rel:R25-11#053e2363 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03323@rel:R25-11#053e2363
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2fc0c4ce2026-09-30
  • R19-11rel:R19-11#1299c99a2026-10-14
  • R20-11rel:R20-11#49b818ff2026-10-14
  • R21-11rel:R21-11#829bdb6e2026-10-14
  • R22-11rel:R22-11#b98e935f2026-10-14
  • R23-11rel:R23-11#6fe6e5ba2026-10-14
  • R24-11rel:R24-11#6a276da32026-10-14
  • R25-11rel:R25-11#053e23632026-10-14 active
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

function compare [SWS_CORE_03346]

int compare (const BasicString &str) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5dcbd780cccb Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Member function compare of class ara::core::BasicString ([SWS_CORE_03346]) serves for the synchronous, lexicographical comparison of a string with another instance str of type BasicString. The semantics follow the standardized usage in [basic.string] ([SWS_CORE_03346]). Interpretation: The returned integer value int is therefore likely to be 0 if both strings match, and less than or greater than 0 if the calling instance ranks lexicographically before or after parameter str, respectively. Question (open)

Regarding error handling and exception safety, the function is declared as noexcept and explicitly classified as exception safe ([SWS_CORE_03346]). Specific error codes, return values for error signaling, or DET/DEM messages do not exist. A failure of the operation is ruled out during regular execution, since the comparison does not throw exceptions.

As a const-qualified method, the function does not modify the state of the object. Interpretation: Since the specification makes no explicit statements regarding thread safety, simultaneous read accesses by multiple threads to the same instance are likely safe, whereas concurrent modifying operations must be synchronized externally. Question Q-6a47db8a35fa6c73 (open)

In the overall system of ara::core, the function joins relational comparison operations that are partly provided for other core types via equality operators, such as in [SWS_CORE_00137] for ErrorDomain, in [SWS_CORE_00571] for ErrorCode, and in [SWS_CORE_00780] for Result.

This text was created by an AI and is based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03346
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03346@rel:R25-11#750cbf8e
Content hash
750cbf8e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03346
Status: valid/unmigrated Version: rel:R25-11#750cbf8e 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_03346@rel:R25-11#750cbf8e
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

function compare [SWS_CORE_03347]

int compare (size_type pos1, size_type n1, const BasicString &str) const;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e37d53b6db41 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

Member function compare of class ara::core::BasicString synchronously compares a defined substring of the calling instance with another instance of type BasicString [SWS_CORE_03347]. Header ara/core/string.h serves for integration. Parameters pos1 and n1 define the start position and the maximum number of characters to compare, while str references the comparison string. The return value is an integer value (int), which indicates the lexicographical order: a value less than zero means that the own sub-segment precedes str, the value zero signals equality, and a value greater than zero indicates a subsequent positioning.

Error Handling and Exception Safety

In the specification, the function is explicitly declared as not exception safe [SWS_CORE_03347]. Specific error codes, AUTOSAR return types such as ara::core::Result, or DET/DEM messages do not exist for this function. Since the behavior is modeled after ISO C++ clause [basic.string], a start position pos1 greater than the current string length is likely to result in an out-of-range exception. Question Q-ad43b26dc523e0dc (open)

Concurrency and Limitations

As a const-qualified method, compare does not modify the state of its own string [SWS_CORE_03347]. Interpretation: Concurrent read calls from multiple threads on the same object are likely permissible as long as no competing write accesses occur. Question Q-ab412b269ca8566f (open) For concurrent modifications, the caller must ensure appropriate synchronization.

This usage note was generated by an AI based on the specification AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03347
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03347@rel:R25-11#990aa89e
Content hash
990aa89e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03347
Status: valid/unmigrated Version: rel:R25-11#990aa89e 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_03347@rel:R25-11#990aa89e
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

function compare [SWS_CORE_03348]

int compare (size_type pos1, size_type n1, const BasicString &str, size_type pos2, size_type n2=npos) const;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: bbeda2a79286 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Method compare of class ara::core::BasicString ([SWS_CORE_03348]) performs a synchronous, three-way lexicographical comparison between substrings. The caller passes the start position and maximum length of its own instance (pos1, n1) as well as of the target string str (pos2, n2). The semantics thereby completely correspond to the behavior of std::basic_string::compare according to the ISO C++ standard [basic.string].

The return value is a int with the following evaluation:

  • A value less than 0 if the own substring is lexicographically before the passed one.
  • The value 0 if both substrings are identical.
  • A value greater than 0 if the own substring lexicographically follows.

Regarding error handling and robustness, the function is declared as not exception safe according to the specification ([SWS_CORE_03348]). No AUTOSAR-specific error codes or DET entries exist. In case of erroneous index boundaries, such as when pos1 or pos2 exceed the respective string length, the function is likely to throw range errors such as std::out_of_range according to the C++ standard interpretation (Interpretation: adoption of the ISO C++ standard semantics). Question Q-22ed96aecc8f0bec (open)

The method is qualified as const ([SWS_CORE_03348]) and does not modify the involved instances. Although no explicit thread safety is specified, concurrent reading of the same object is likely to be non-critical provided that no concurrent write operations take place. Question Q-eb2bf8c6b3c53505 (open) In contrast to binary comparison operators such as for ara::core::ErrorCode ([SWS_CORE_00571]), compare enables a nuanced sorting order.

This usage note was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03348
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03348@rel:R25-11#2f1feeed
Content hash
2f1feeed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03348
Status: valid/unmigrated Version: rel:R25-11#2f1feeed 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_03348@rel:R25-11#2f1feeed
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

function compare [SWS_CORE_03349]

int compare (const value_type *s) const;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 89b44944fd38 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function compare of class ara::core::BasicString from header #include "ara/core/string.h" serves for the synchronous lexicographical string comparison according to the behavior of [basic.string] [SWS_CORE_03349]. It compares the underlying string with the passed character sequence s of type const value_type* and returns an integer result of type int [SWS_CORE_03349]. Interpretation: The parameter s is likely to refer to a valid, null-terminated character array, with the return value presumably being negative if the own string is lexicographically smaller, zero on a match, and positive if it is greater. Question Q-f54a24333329a936 (open)

Error Handling and Exception Safety

The specification explicitly designates the method as not exception safe [SWS_CORE_03349]. No no-throw guarantee exists, and any errors are not returned via structured types such as ara::core::ErrorCode. Specific platform error notifications such as DET or DEM messages are not intended for this call.

Concurrency and Interaction

In contrast to thread-safe comparison operators in module core, for instance for ErrorCode [SWS_CORE_00571], no thread safety is specified for compare [SWS_CORE_03349]. Since the member function is declared as const, concurrent read accesses to the same instance are likely to be non-critical as long as no conflicting modifications occur. Question Q-6c1ddb8ba210dceb (open) Module core also defines comparison operators for domain and result types such as ErrorDomain [SWS_CORE_00137] or Result [SWS_CORE_00780], whereas compare specifically provides a three-way relational ordering for strings.

This text was curated by an AI. All details are based on the requirements of the AUTOSAR standard release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03349
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03349@rel:R25-11#d2b3ddc1
Content hash
d2b3ddc1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03349
Status: valid/unmigrated Version: rel:R25-11#d2b3ddc1 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_03349@rel:R25-11#d2b3ddc1
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

function compare [SWS_CORE_03350]

int compare (size_type pos1, size_type n1, const value_type *s) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 3f637a3c7e8c Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function compare of class ara::core::BasicString ([SWS_CORE_03350]) synchronously compares a substring of the current instance with a null-terminated C-style string. The function is included via #include "ara/core/string.h". As parameters, it expects the start index pos1 (of type size_type), the maximum number of characters n1, and a pointer s of type const value_type*. The return value is an integer int value that reflects the lexicographical ordering relationship ([SWS_CORE_03350]).

The function semantics are based on the behavior in [basic.string] with the specific difference that charT is replaced by value_type ([SWS_CORE_03350]). For error handling, no DET or DEM messages and no specific error codes are defined. Regarding exception safety, the function is explicitly classified as “not exception safe” ([SWS_CORE_03350]).

With respect to concurrency, the method does not modify the internal state of the object as a const function. Interpretation: Concurrent read calls on the same object are likely to be possible without additional synchronization, as long as no conflicting write accesses occur. Question Q-31d2135fb294e41b (open) The caller must ensure that s points to a valid character array.

In the overall system of ara::core, compare fits into the comparison mechanisms of the basic types, comparable to the equality and inequality operators for ara::core::ErrorCode ([SWS_CORE_00571]) or ara::core::Result ([SWS_CORE_00780]), but unlike simple operators, it provides a nuanced three-way evaluation for subranges.

This usage note was generated automatically based on the specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03350
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03350@rel:R25-11#060e5e97
Content hash
060e5e97
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03350
Status: valid/unmigrated Version: rel:R25-11#060e5e97 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_03350@rel:R25-11#060e5e97
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

function compare [SWS_CORE_03351]

int compare (size_type pos1, size_type n1, const value_type *s, size_type n2) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: ae1afb37fe1c Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function compare according to [SWS_CORE_03351] enables the lexicographical three-way comparison of a subsequence of the current instance of ara::core::BasicString with an external character array. The function is provided via the header file #include "ara/core/string.h" and is called as a synchronous, const member function (const).

The semantics follow the corresponding usage in the standard C++ section [basic.string], with charT being replaced by value_type ([SWS_CORE_03351]). The parameters define the subsequence of the calling instance to be compared via the start index pos1 and the length n1, as well as the external target array via the pointer s (of type const value_type*) and the number of characters to consider n2. The return value is an integer value (int) that returns zero on a match and negative or positive values upon lexicographical deviation.

Regarding failure safety, compare is specified as not exception safe ([SWS_CORE_03351]). The specification defines no specific DET or DEM messages; any error states with invalid indices or memory accesses are likely to be signaled via C++ exceptions in accordance with the referenced semantics of [basic.string]. Question Q-74c52d9534473bde (open) Because no thread safety is declared, concurrent access to the same string requires external synchronization in the presence of concurrent write operations.

In the context of the platform, compare serves for elementary string processing and forms a foundation for comparison and equality checks built on top of it, such as those implemented for other core data types like ara::core::Result or ara::core::ErrorCode via comparison operators.

This text was created by an AI. In case of doubt, AUTOSAR requirements take precedence.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03351
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03351@rel:R25-11#5cb45c38
Content hash
5cb45c38
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03351
Status: valid/unmigrated Version: rel:R25-11#5cb45c38 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_03351@rel:R25-11#5cb45c38
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

function copy [SWS_CORE_03410]

size_type copy (value_type *s, size_type n, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( pos > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 52842822b215 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function copy from header file #include "ara/core/string.h" belongs to class ara::core::BasicString ([SWS_CORE_03410]). It copies a sub-sequence of up to n characters starting at position pos into destination memory s. Parameter pos has default value 0. As a return value, the function of type size_type provides the exact number of characters actually written. The behavior follows the definition of [basic.string] of the C++ standard, with the deviation that character type charT is replaced by value_type ([SWS_CORE_03410]).

The following specifications apply to error handling and boundary conditions:

  • Range checking: If the specified position lies past the end of the string (pos > size()), IsoStdOutOfRangeViolation is raised instead of the standard exception std::out_of_range ([SWS_CORE_03410]).
  • Exception safety: According to the specification, the operation is not exception-safe (not exception safe) ([SWS_CORE_03410]).
  • Buffer capacity: Interpretation: The caller must ensure that the memory area addressed by s provides sufficient capacity for the characters to be written, as the interface does not validate destination buffer size. Question Q-7aa92ad8a7dff94d (open)

In module core, this function differs from the identically named method in ara::core::StringView ([SWS_CORE_02140]): While StringView::copy is declared as noexcept and specified as exception-safe, BasicString::copy provides no noexcept guarantee ([SWS_CORE_03410]).

This text was generated by an AI system based on the specification of AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03410
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03410@rel:R25-11#84a265c0
Content hash
84a265c0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03410
Status: valid/unmigrated Version: rel:R25-11#84a265c0 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_03410@rel:R25-11#84a265c0
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

function crbegin [SWS_CORE_03049]

const_reverse_iterator crbegin () const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 08a595f06051 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

According to [SWS_CORE_03049], the member function crbegin of class ara::core::BasicString synchronously returns a constant reverse iterator (const_reverse_iterator) to the last element of the string. The function takes no input parameters and follows the corresponding usage in the standard concept [basic.string].

The operation is specified as exception safe and provided with the identifier noexcept [SWS_CORE_03049], so that no exceptions are thrown at runtime. Specific error codes and mechanisms for error logging via DET or DEM are not provided in the specification.

Regarding concurrency and constraints, it should be noted that this is a non-modifying const method; concurrent read access to the same string instance is therefore likely to be thread-safe. Question Q-8729e18859784971 (open) During iteration, no modifying operations must be performed on the instance in order to avoid invalid iterators.

Within module core, the function ensures consistent semantics with further containers and utility classes:

In contrast to the implementations in Array, Span, and StringView, which are designated as constexpr, crbegin in BasicString as well as in Vector and Map is defined as a pure runtime method.

This usage note was generated automatically based on the specification of AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03049
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03049@rel:R25-11#c1ad78fc
Content hash
c1ad78fc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03049
Status: valid/unmigrated Version: rel:R25-11#c1ad78fc 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_03049@rel:R25-11#c1ad78fc
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

function crend [SWS_CORE_03050]

const_reverse_iterator crend () const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 53601950382a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function crend of class ara::core::BasicString is provided via header #include "ara/core/string.h" ([SWS_CORE_03050]). The call is performed synchronously and without parameters on an instance and returns a const_reverse_iterator. This iterator marks the end of a reverse iteration by pointing to the theoretical element immediately preceding the first character. The semantics correspond to the C++ Standard Library according to [basic.string] ([SWS_CORE_03050]).

Error handling

The method is declared as noexcept and specified as exception safe (exception safe) ([SWS_CORE_03050]). It throws no exceptions; specific error codes or reports to DET or DEM do not exist for this call.

Concurrency and Limitations

Since crend is declared as const and does not modify the underlying object, concurrent read accesses across multiple threads are likely to be safe without synchronization (Interpretation: standard C++ container behavior). Question Q-7b502a7db77e21c4 (open) Concurrent write accesses to the same instance of ara::core::BasicString, on the other hand, require external synchronization, as modifications are likely to compromise the validity of iterators.

Interaction

Within AUTOSAR Adaptive Core, crend integrates into a uniform iterator concept:

This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03050
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03050@rel:R25-11#304a10ef
Content hash
304a10ef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03050
Status: valid/unmigrated Version: rel:R25-11#304a10ef 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_03050@rel:R25-11#304a10ef
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

function data [SWS_CORE_03070]

const value_type * data () const noexcept;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03070
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03070@rel:R25-11#f1b13a36
Content hash
f1b13a36
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03070
Status: valid/unmigrated Version: rel:R25-11#f1b13a36 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_03070@rel:R25-11#f1b13a36
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

function data [SWS_CORE_03071]

value_type * data () noexcept;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03071
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03071@rel:R25-11#bdc743c8
Content hash
bdc743c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03071
Status: valid/unmigrated Version: rel:R25-11#bdc743c8 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_03071@rel:R25-11#bdc743c8
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

function empty [SWS_CORE_03051]

bool empty () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03051
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03051@rel:R25-11#959874ab
Content hash
959874ab
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03051
Status: valid/unmigrated Version: rel:R25-11#959874ab 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_03051@rel:R25-11#959874ab
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

function end [SWS_CORE_03041]

iterator end () noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03041
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03041@rel:R25-11#0843287d
Content hash
0843287d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03041
Status: valid/unmigrated Version: rel:R25-11#0843287d 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_03041@rel:R25-11#0843287d
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

function end [SWS_CORE_03042]

const_iterator end () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03042
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03042@rel:R25-11#b8d472ac
Content hash
b8d472ac
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03042
Status: valid/unmigrated Version: rel:R25-11#b8d472ac 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_03042@rel:R25-11#b8d472ac
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

function erase [SWS_CORE_03102]

BasicString & erase (size_type pos=0, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( pos > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 06311e351c1f Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function erase of class ara::core::BasicString ([SWS_CORE_03102], declared in #include "ara/core/string.h") removes characters from a string. The call is performed on an instance specifying the start index pos (default value 0) and the maximum count to be removed n (default value npos). A reference to the modified object (BasicString &) is returned as the return value [SWS_CORE_03102]. The functioning follows the C++ standard [basic.string], with charT being replaced by value_type [SWS_CORE_03102].

With regard to error handling and boundary conditions, the following specifications apply:

  • Range checking: If the start index is greater than the length of the string (pos > size()), the AUTOSAR violation IsoStdOutOfRangeViolation is thrown instead of std::out_of_range [SWS_CORE_03102].
  • Exception safety: The operation is explicitly classified as not exception safe (not exception safe) [SWS_CORE_03102].
  • Concurrency: Since the function directly modifies the object and is not exception safe, concurrent unprotected access by multiple threads to the same instance is likely to lead to data inconsistencies. Question Q-1ba559168d94c7a5 (open)

In interaction within the Core library, ara::core::BasicString provides iterator-based overloads in addition to this index-based variant: erase(const_iterator) for individual positions [SWS_CORE_03103] and erase(const_iterator, const_iterator) for ranges [SWS_CORE_03104]. Comparable interfaces for element removal across containers are also found in ara::core::Vector ([SWS_CORE_01372], [SWS_CORE_01373]) and in ara::core::Map ([SWS_CORE_01480] to [SWS_CORE_01483]).

This usage note was generated automatically and is based exclusively on the specification data from AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03102
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03102@rel:R25-11#a1c3b751
Content hash
a1c3b751
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03102
Status: valid/unmigrated Version: rel:R25-11#a1c3b751 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_03102@rel:R25-11#a1c3b751
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

function erase [SWS_CORE_03103]

iterator erase (const_iterator p);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: df0ba18ba155 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous member function erase of class ara::core::BasicString ([SWS_CORE_03103]) serves to remove a single character from a string. It is provided via header #include "ara/core/string.h" [SWS_CORE_03103]. As a parameter, it accepts a const iterator p that points to the character to be deleted and returns a iterator to the subsequent character [SWS_CORE_03103]. The functional behavior follows the corresponding usage of [basic.string] [SWS_CORE_03103].

Error Handling and Exception Safety

In the specification, the property “not exception safe” is designated for the function [SWS_CORE_03103]. Specific error codes, DET, or DEM messages do not exist. In contrast to the index-based overload [SWS_CORE_03102], which provides for a IsoStdOutOfRangeViolation upon index overrun, [SWS_CORE_03103] does not define separate violations. Interpretation: Passing an invalid or non-dereferenceable iterator will likely lead to undefined behavior, as no explicit pre-checks are specified. Question Q-e7fef1f0be3f72bb (open)

Concurrency and Interaction

Since no synchronization or reentrancy guarantees are specified, concurrent modifying accesses to the same instance without external synchronization will likely not be thread-safe. Question Q-0361bddd6a9924b1 (open) Within ara::core::BasicString, range deletion using two iterators ([SWS_CORE_03104]) as well as index-based deletion ([SWS_CORE_03102]) are available in addition to this single-element deletion. Similar interfaces for iterator-based deletion are also offered by ara::core::Vector ([SWS_CORE_01372], [SWS_CORE_01373]) and ara::core::Map ([SWS_CORE_01480], [SWS_CORE_01481], [SWS_CORE_01483]).

This text was generated by an AI and serves as guidance.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03103@rel:R25-11#5858bcad
Content hash
5858bcad
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03103
Status: valid/unmigrated Version: rel:R25-11#5858bcad 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_03103@rel:R25-11#5858bcad
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

function erase [SWS_CORE_03104]

iterator erase (const_iterator first, const_iterator last);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b5947bc7f146 Provenance Open questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function erase of class ara::core::BasicString ([SWS_CORE_03104], declared in #include "ara/core/string.h") synchronously removes a sequence of characters in the half-open range between first and last. It follows the corresponding semantics of [basic.string] and returns an iterator to the position after the deleted section.

Error Handling and Exception Safety

For this function, exception safety is explicitly specified as not exception safe [SWS_CORE_03104]. In contrast to the index-based variant, which provides a IsoStdOutOfRangeViolation on out-of-range access [SWS_CORE_03102], the specification defines no specific error codes or violations for invalid iterator ranges; incorrect iterators are likely to lead to undefined behavior. Question Q-4ebb261c37bba102 (open)

Concurrency and Limitations

Since erase modifies the underlying string and no concurrency mechanisms are specified, the function is likely not reentrant or thread-safe against concurrent accesses to the same instance. Question Q-43e6221b78cfa77f (open) In addition, removing elements presumably invalidates subsequent iterators and references in accordance with the standard behavior of [basic.string].

Interaction

Within ara::core::BasicString, the function complements the overloads for deleting a single element via iterator [SWS_CORE_03103] as well as the index-based position deletion [SWS_CORE_03102]. In behavior, it corresponds to the range-based erase operations of other AUTOSAR containers such as ara::core::Vector [SWS_CORE_01373] or ara::core::Map [SWS_CORE_01483].

This text was created automatically. Technical statements are based exclusively on the R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03104
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03104@rel:R25-11#badaeaff
Content hash
badaeaff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03104
Status: valid/unmigrated Version: rel:R25-11#badaeaff 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_03104@rel:R25-11#badaeaff
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

function find [SWS_CORE_03315]

size_type find (StringView sv, size_type pos=0) const noexcept;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 25626048f225 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find of class ara::core::BasicString ([SWS_CORE_03315]) searches a string synchronously starting from the specified position pos (default value 0) for the first occurrence of the passed substring StringView sv. The result is returned as size_type. The semantics correspond to the usage in [basic.string], with the deviation that charT is replaced by value_type ([SWS_CORE_03315]). The function is provided via the header ara/core/string.h.

Error Handling and Exception Safety

The function is declared as noexcept and classified as exception safe ([SWS_CORE_03315]). It does not throw exceptions. Specific AUTOSAR error codes or messages to DET or DEM are not specified for this function.

Concurrency

Since find is declared as const and does not modify the state of the calling object ([SWS_CORE_03315]), concurrent read accesses by multiple threads to the same instance should be safe without synchronization as long as no write operations take place (interpretation). Question Q-8a91a07d033d0b33 (open)

Interaction

Within ara::core::BasicString, this method complements related overloads such as the search for a BasicString instance ([SWS_CORE_03407]), which is also noexcept. Unlike the overloads for single characters ([SWS_CORE_03324]) or pointers ([SWS_CORE_03408], [SWS_CORE_03409]), which are declared as not exception safe, the StringView variant guarantees exception safety. In addition, ara::core::StringView provides an analogous find ([SWS_CORE_02157]), which is however declared as constexpr.

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03315
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03315@rel:R25-11#dafe46b0
Content hash
dafe46b0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03315
Status: valid/unmigrated Version: rel:R25-11#52dd57f0 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03315@rel:R25-11#52dd57f0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#dafe46b02026-09-30
  • R19-11rel:R19-11#3265cc0c2026-10-14
  • R20-11rel:R20-11#b8a44b832026-10-14
  • R21-11rel:R21-11#0a67971f2026-10-14
  • R22-11rel:R22-11#135879cd2026-10-14
  • R23-11rel:R23-11#cd65affa2026-10-14
  • R24-11rel:R24-11#46213fbb2026-10-14
  • R25-11rel:R25-11#52dd57f02026-10-14 active
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

function find [SWS_CORE_03324]

size_type find (value_type c, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: ac5f40fcfee2 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function find of class ara::core::BasicString searches from the optional start position pos for the first occurrence of the character c of type value_type ([SWS_CORE_03324]). The semantics correspond to the specification in [basic.string], with charT being replaced by value_type ([SWS_CORE_03324]). If the search is successful, the index is returned as size_type; otherwise, according to the standard behavior of [basic.string], the return value is likely to correspond to the value BasicString::npos. Question Q-4bb5f66d23256109 (open)

Regarding exception safety, the function is explicitly classified in the specification as not exception safe (not exception safe) ([SWS_CORE_03324]). Specific error or diagnostic messages via DET or DEM are not defined in the payload. Since the function is declared as const, it does not modify the object; concurrent read accesses to the same instance are therefore likely to be safe regarding concurrency, whereas concurrent write accesses require external synchronization. Question Q-263442932bd08430 (open)

In the union of Core types, this method complements related overloads of ara::core::BasicString: While pointer searches with const value_type* are likewise considered not exception safe ([SWS_CORE_03408], [SWS_CORE_03409]), overloads for BasicString ([SWS_CORE_03407]) and StringView ([SWS_CORE_03315]) are specified as exception safe and noexcept. For non-owning strings, ara::core::StringView offers with find(char, size_type) an analogous search function that is, however, capable of constexpr and noexcept ([SWS_CORE_02158]).

This text was created by an AI and is based on the R25-11 specification status.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03324
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03324@rel:R25-11#cfd61483
Content hash
cfd61483
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03324
Status: valid/unmigrated Version: rel:R25-11#cfd61483 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_03324@rel:R25-11#cfd61483
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

function find [SWS_CORE_03407]

size_type find (const BasicString &str, size_type pos=0) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 981572d3a9ed Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find of class ara::core::BasicString ([SWS_CORE_03407], header ara/core/string.h) synchronously searches for the first occurrence of the passed substring str. The search starts optionally at position pos (default value 0) and follows the specifications from [basic.string].

The function returns the found index as a value of type size_type. Interpretation: If no match is found, the function is likely to return the value BasicString::npos according to the semantics of [basic.string]. Question Q-610fe2fe50217189 (open)

Regarding error handling and concurrency, the method is declared as noexcept and specified as exception safe (exception safe) ([SWS_CORE_03407]). Since it is a constant operation (const), the call does not modify the object; concurrent read accesses to the same instance are therefore likely to be safe. Question Q-045341d1199068db (open)

Within ara::core::BasicString, further search functions exist: In addition to the overload for StringView ([SWS_CORE_03315]), which is also declared as noexcept, variants for individual characters ([SWS_CORE_03324]) and character pointers ([SWS_CORE_03408], [SWS_CORE_03409]) are available, which, in contrast, are classified as not exception safe. Corresponding search operations are furthermore found in ara::core::StringView ([SWS_CORE_02157]) and ara::core::Map ([SWS_CORE_01490]).

This text was created by an AI and is based exclusively on the specification data of release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03407
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03407@rel:R25-11#7be35d01
Content hash
7be35d01
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03407
Status: valid/unmigrated Version: rel:R25-11#7be35d01 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_03407@rel:R25-11#7be35d01
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

function find [SWS_CORE_03408]

size_type find (const value_type *s, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 23ab83bbf6e6 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method find of class ara::core::BasicString ([SWS_CORE_03408]) searches a string synchronously starting from the index position pos for the first occurrence of the passed character sequence s. The behavior corresponds to the specification in [basic.string], where charT is replaced by value_type ([SWS_CORE_03408]). As a constant member function, the call does not modify the calling object.

  • Parameters: s is a pointer to the array to be searched, consisting of elements of type value_type; pos determines the start index for the search with default value 0 ([SWS_CORE_03408]).
  • Return value: The found position is returned as size_type ([SWS_CORE_03408]).
  • Exception safety: The function is explicitly declared as not exception safe ([SWS_CORE_03408]). It thus deviates from overloads for StringView ([SWS_CORE_03315]) and const BasicString& ([SWS_CORE_03407]), which are defined as noexcept.
  • Concurrency and validity: Concurrent read accesses are likely to be possible without synchronization, whereas simultaneous write operations require coordination (Interpretation: standard container behavior). Question Q-89d9d01f0dd787cd (open) The pointer s presumably must point to a valid, null-terminated sequence.

In the union of search functions of ara::core::BasicString, there exists, in addition to this variant, also an overload with explicit length limitation n ([SWS_CORE_03409]) as well as a search for individual characters ([SWS_CORE_03324]).

This text was generated by an AI-supported system based on AUTOSAR specifications.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03408
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03408@rel:R25-11#adbd7938
Content hash
adbd7938
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03408
Status: valid/unmigrated Version: rel:R25-11#adbd7938 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_03408@rel:R25-11#adbd7938
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

function find [SWS_CORE_03409]

size_type find (const value_type *s, size_type pos, size_type n) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8d25d1dd97f6 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find of class ara::core::BasicString serves the synchronous search for a character sequence within the string according to [SWS_CORE_03409]. It searches the instance starting from the specified position pos for the first n characters of the passed pointer s of type const value_type* and, in case of a match, returns the zero-based index as size_type.

Usage and Parameters

The call is made via header ara/core/string.h [SWS_CORE_03409]. The behavior follows the semantics of [basic.string] of the C++ standard, with charT replaced by value_type [SWS_CORE_03409]. The function operates synchronously as a const method and does not modify the existing object.

Error Handling and Concurrency

The specification explicitly classifies the function as "not exception safe" [SWS_CORE_03409]. Presumably, no defined exception handling is guaranteed in case of invalid memory areas or a null pointer for s. Specific AUTOSAR error codes as well as DET or DEM reports are not defined in the payload. Because this is a reading member function, simultaneous access by multiple threads should be reentrant as long as no concurrent write operations take place on the same instance. Question Q-37e3327ae129591d (open)

Interaction

In addition to this overload, ara::core::BasicString offers alternative search methods such as the null-termination variant find(const value_type* s, size_type pos=0) [SWS_CORE_03408], the single search find(value_type c, size_type pos=0) [SWS_CORE_03324], and the overloads defined as exception safe for BasicString [SWS_CORE_03407] and StringView [SWS_CORE_03315]. For read-only character sequences, the exception safe variant in ara::core::StringView is available analogously [SWS_CORE_02159].

This text was created by an AI and is based exclusively on the specifications of Release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03409
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03409@rel:R25-11#9c4c0c86
Content hash
9c4c0c86
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03409
Status: valid/unmigrated Version: rel:R25-11#9c4c0c86 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_03409@rel:R25-11#9c4c0c86
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

function find_first_ [SWS_CORE_03329]

size_type find_first_of (const BasicString &str, size_type pos=0) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f047a34edb5e Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method find_first_of of class ara::core::BasicString is provided via header ara/core/string.h and serves to synchronously search for characters within a string [SWS_CORE_03329]. It determines the first occurrence of any character from the passed string str starting at start position pos, which defaults to 0 [SWS_CORE_03329]. The behavior conforms to the semantics of [basic.string] [SWS_CORE_03329]. Interpretation: If there is no match, the return value according to standard behavior is likely to correspond to the value npos. Question Q-9de908eb4aeaa0a9 (open)

Regarding error handling and exception safety, the operation is declared as noexcept and classified as exception safe [SWS_CORE_03329]. Consequently, it throws no exceptions. Specific development or production errors such as DET or DEM messages are not defined in the payload. Since this is a read-only const method, the call does not lead to state changes of the instance [SWS_CORE_03329].

In interplay within ara::core::BasicString, this signature complements further overloads of find_first_of: while the reference variant for BasicString is exception-safe [SWS_CORE_03329], overloads for pointer const value_type *s with length specification [SWS_CORE_03330] or null termination [SWS_CORE_03331] as well as for single characters value_type c [SWS_CORE_03332] are designated as not exception safe. For the inverted search for the first character that does not occur in the comparison set, the method find_first_not_of is analogously available, which likewise includes an exception-safe BasicString overload [SWS_CORE_03337] as well as pointer and character variants [SWS_CORE_03338], [SWS_CORE_03339], [SWS_CORE_03340].

This text was created by an AI system based on the specification documents.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03329
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03329@rel:R25-11#14300983
Content hash
14300983
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03329
Status: valid/unmigrated Version: rel:R25-11#14300983 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_03329@rel:R25-11#14300983
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

function find_first_ [SWS_CORE_03330]

size_type find_first_of (const value_type *s, size_type pos, size_type n) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 96999c008328 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method find_first_of according to [SWS_CORE_03330] serves for synchronously searching for the first occurrence of any character from a character sequence within an instance of ara::core::BasicString. It is provided via the header ara/core/string.h and follows the behavior of the C++ standard library for [basic.string], with the parameter type charT being replaced by value_type [SWS_CORE_03330].

Parameters and Return Value

  • s: Pointer to the character sequence (type const value_type*) whose elements are searched for. Interpretation: The pointer s is likely to point to a valid array with at least n elements [SWS_CORE_03330]. Question Q-1d6a911b61dc05b4 (open)
  • pos: Starting position within the string from which the search begins.
  • n: Number of characters to consider starting from the address s.
  • Return value: Returns the index of the first match of type size_type.

Exception Safety and Related Interfaces

In contrast to the overload for complete BasicString objects according to [SWS_CORE_03329], which is declared as noexcept and exception safe, this function is explicitly classified as not exception safe [SWS_CORE_03330]. This applies equally to the overloads without length specification n according to [SWS_CORE_03331] and for single characters according to [SWS_CORE_03332].

For the inverse search for characters that do not occur in the target sequence, the analogous find_first_not_of methods are available, in particular the pointer overload with length limitation according to [SWS_CORE_03338] as well as the variants [SWS_CORE_03337], [SWS_CORE_03339], and [SWS_CORE_03340].

This usage note was automatically generated based on the specifications of AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03330@rel:R25-11#f9544868
Content hash
f9544868
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03330
Status: valid/unmigrated Version: rel:R25-11#f9544868 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_03330@rel:R25-11#f9544868
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

function find_first_ [SWS_CORE_03331]

size_type find_first_of (const value_type *s, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b05cec7e49f7 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The method find_first_of of class ara::core::BasicString ([SWS_CORE_03331]) serves for the synchronous search for the first occurrence of any character from the passed character sequence s. The semantics correspond to the definition in [basic.string], with charT being replaced by value_type ([SWS_CORE_03331]). By default, the search starts at index pos = 0.

Error Handling and Exception Safety

The function is specified as not exception safe ([SWS_CORE_03331]). Specific error codes such as DET or DEM messages are not defined in the specification. Presumably, exceptions might be possible in the event of faulty parameters or internal processes, whereas the string overload [SWS_CORE_03329] is declared as exception safe and noexcept. Question Q-a28fa9046de1848f (open)

Concurrency and Limitations

As a const member function, the call does not modify the calling instance ([SWS_CORE_03331]). Since no explicit length parameter is passed, the pointer s is likely required to point to a valid, null-terminated character sequence to prevent undefined reading of memory regions. Question Q-e67d2d456ea47293 (open)

Interaction

The method is part of the search interfaces of ara::core::BasicString from header #include "ara/core/string.h" ([SWS_CORE_03331]):

This usage note was generated automatically based on the specification of AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03331
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03331@rel:R25-11#8c4318ce
Content hash
8c4318ce
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03331
Status: valid/unmigrated Version: rel:R25-11#8c4318ce 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_03331@rel:R25-11#8c4318ce
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

function find_first_ [SWS_CORE_03332]

size_type find_first_of (value_type c, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d7237757f971 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_of according to [SWS_CORE_03332] serves to find the first occurrence of a single character within an instance of ara::core::BasicString. The semantics correspond to the standard usage in [basic.string], with the only deviation being that charT is replaced by value_type ([SWS_CORE_03332]). The declaration is available via header #include "ara/core/string.h" in namespace ara::core::BasicString ([SWS_CORE_03332]).

The method accepts the sought character c of type value_type and optionally the start position pos of type size_type (default value 0) and returns an index of type size_type ([SWS_CORE_03332]). Regarding exception handling, this overload is explicitly classified as not exception safe (not exception safe, [SWS_CORE_03332]).

In interplay within the search functions of ara::core::BasicString, this method complements other variants for character and substring searching:

  • The overload for searching for a BasicString ([SWS_CORE_03329]), which in contrast is declared as noexcept and exception-safe.
  • The overloads for searching using pointers to strings const value_type* with subrange specification ([SWS_CORE_03330]) or default start position ([SWS_CORE_03331]), both of which are also specified as not exception safe.
  • The complementary function group find_first_not_of, in particular for negated single-character search according to [SWS_CORE_03340] as well as the variants for strings ([SWS_CORE_03337], [SWS_CORE_03338], [SWS_CORE_03339]).

This usage note was generated automatically and is based exclusively on the specification data from release R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03332
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03332@rel:R25-11#9e91106e
Content hash
9e91106e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03332
Status: valid/unmigrated Version: rel:R25-11#9e91106e 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_03332@rel:R25-11#9e91106e
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

function find_first_ [SWS_CORE_03337]

size_type find_first_not_of (const BasicString &str, size_type pos=0) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 16574dafd32e Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_first_not_of of class ara::core::BasicString ([SWS_CORE_03337], header file #include "ara/core/string.h") serves for pattern searching in strings. As parameters, the synchronous method expects a comparison string const BasicString &str and optionally a start index size_type pos = 0. According to the specification, the semantics correspond to usage in [basic.string]; as return value of type size_type, the function is likely to yield the index of the first character starting at position pos that does not occur in str, or npos if the search is unsuccessful. Question Q-d3b3fd2d159179e7 (open)

Error handling

The operation is declared with the identifier noexcept and classified in [SWS_CORE_03337] as exception-safe ("exception safe"). Specific error codes or notifications to DET or DEM are not defined for this function.

Concurrency and Limitations

As a const method (const), the function makes no state-changing interventions on the calling instance. Specific synchronization mechanisms or reentrancy rules do not emerge from [SWS_CORE_03337].

Interaction

The signature is related to other search operations of ara::core::BasicString:

This usage note was generated automatically based on the specification of AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03337
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03337@rel:R25-11#472ef342
Content hash
472ef342
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03337
Status: valid/unmigrated Version: rel:R25-11#472ef342 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_03337@rel:R25-11#472ef342
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

function find_first_ [SWS_CORE_03338]

size_type find_first_not_of (const value_type *s, size_type pos, size_type n) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f75182981010 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_first_not_of of class ara::core::BasicString ([SWS_CORE_03338]) synchronously searches a string from the specified position pos for the first character that is not contained in the passed character array s of length n. The declaration is provided via the header file #include "ara/core/string.h". The semantics are based on the standard function [basic.string] of the C++ standard library, with the parameter type charT being replaced by value_type ([SWS_CORE_03338]).

Regarding execution context and error behavior, the following properties are specified:

  • Return value: Returns the index of the first non-matching character as size_type ([SWS_CORE_03338]); if no differing character is found or if pos is outside the valid range, the value npos is likely returned analogously to the standard behavior of [basic.string]. Question Q-2f8c7f7966d5bd41 (open)
  • Exception safety: According to the specification, the function is explicitly classified as not exception safe ([SWS_CORE_03338]). Unlike the overload for BasicString, it has no noexcept guarantee ([SWS_CORE_03337]).
  • Pointer validity: The pointer s must point to an array with at least n valid elements; a null pointer or insufficient buffer size is likely to lead to undefined behavior. Question Q-8f794dd917c70631 (open)

In interaction within ara::core::BasicString, this overload complements the search with standard null-termination ([SWS_CORE_03339]), the search for single characters ([SWS_CORE_03340]), and the corresponding positive search functions find_first_of ([SWS_CORE_03329], [SWS_CORE_03330], [SWS_CORE_03331], [SWS_CORE_03332]).

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03338
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03338@rel:R25-11#9b4a19e4
Content hash
9b4a19e4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03338
Status: valid/unmigrated Version: rel:R25-11#9b4a19e4 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_03338@rel:R25-11#9b4a19e4
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

function find_first_ [SWS_CORE_03339]

size_type find_first_not_of (const value_type *s, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2c123e292e67 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage: The method find_first_not_of of class ara::core::BasicString ([SWS_CORE_03339]) from header #include "ara/core/string.h" searches synchronously from position pos (default value 0) for the first character that does not occur in the null-terminated string s of type const value_type*. The behavior corresponds to the C++ standard reference [basic.string], with charT being replaced by value_type ([SWS_CORE_03339]). The found index position is returned as size_type.

Error handling and constraints: The element is explicitly specified as not exception safe ([SWS_CORE_03339]). Specific error codes, return values for error states, or AUTOSAR diagnostic messages (DET/DEM) are not defined for this function. The caller is responsible for the validity of the pointer s; interpretation: an invalid or non-null-terminated pointer presumably leads to undefined behavior according to the underlying [basic.string] semantics. Question Q-939961ddaec4409f (open) As a const member function, the method is reentrant for concurrent read accesses to the same instance.

Interaction: The function is part of the search interfaces of ara::core::BasicString. While the overload for complete instances BasicString is defined as noexcept and exception safe ([SWS_CORE_03337]), pointer-based variants such as the search with length limitation n ([SWS_CORE_03338]) and single-character searches ([SWS_CORE_03340]) are likewise classified as not exception safe. The positive counterpart for searching for matching characters is formed by the corresponding find_first_of overloads ([SWS_CORE_03329], [SWS_CORE_03330], [SWS_CORE_03331], [SWS_CORE_03332]).

Automatically generated usage note based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03339
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03339@rel:R25-11#a20c0f1c
Content hash
a20c0f1c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03339
Status: valid/unmigrated Version: rel:R25-11#a20c0f1c 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_03339@rel:R25-11#a20c0f1c
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

function find_first_ [SWS_CORE_03340]

size_type find_first_not_of (value_type c, size_type pos=0) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e0fc57e36019 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function find_first_not_of of class ara::core::BasicString ([SWS_CORE_03340]) from header ara/core/string.h synchronously searches from start index pos (default value 0) for the first character that does not match the passed character c of type value_type. The behavior is governed by C++ standard section [basic.string], with charT being replaced by value_type ([SWS_CORE_03340]). If the search finds no differing character, the return value is likely to be npos according to standard convention. Question Q-c821d702576e2541 (open)

Error Handling and Exception Safety

The specification declares the function as not exception safe ([SWS_CORE_03340]). Neither specific AUTOSAR error codes nor DET or DEM messages are defined in the payload. Callers must take into account that, in contrast to the string overload ([SWS_CORE_03337]), which is defined as noexcept and exception safe, freedom from exceptions is not guaranteed.

Concurrency and Interaction

Since it is a const method (const), the call does not modify the string; concurrent read accesses across multiple threads are likely permissible without synchronization as long as no write operations take place. Question Q-2d1a22665eafd122 (open) The function complements the overloads for searching differing subsequences via pointer ([SWS_CORE_03338], [SWS_CORE_03339]) or BasicString ([SWS_CORE_03337]) and forms the counterpart to the find_first_of methods ([SWS_CORE_03329], [SWS_CORE_03330], [SWS_CORE_03331], [SWS_CORE_03332]).

This usage note was generated automatically based on the AUTOSAR specification.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03340
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03340@rel:R25-11#8a4e5aca
Content hash
8a4e5aca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03340
Status: valid/unmigrated Version: rel:R25-11#8a4e5aca 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_03340@rel:R25-11#8a4e5aca
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

function find_first_not_of [SWS_CORE_03319]

size_type find_first_not_of (StringView sv, size_type pos=0) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f5f466dc937c Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function find_first_not_of of class ara::core::BasicString ([SWS_CORE_03319]) synchronously searches a string starting from the specified index position pos. It determines the first character that does not occur in the passed ara::core::StringView sv. The semantics are based on the behavior of [basic.string] ([SWS_CORE_03319]). Upon a successful search, the zero-based index of the match is returned, otherwise the value for invalid positions.

Error Handling and Exception Safety

The function is declared with noexcept and specified as exception-safe (exception safe) ([SWS_CORE_03319]). It throws no exceptions and generates no AUTOSAR error messages such as DET or DEM. If a start index is passed that lies past the end of the string, the operation regularly results in no match.

Concurrency and Interaction

As a non-modifying const method, concurrent read access to the same instance is likely thread-safe as long as no write accesses to the string take place. Question Q-c1bcfdc85bb4769f (open) Within ara::core::BasicString, it complements related search operations such as the overload for BasicString ([SWS_CORE_03337]) as well as variants for pointers and single characters ([SWS_CORE_03338], [SWS_CORE_03339], [SWS_CORE_03340]). A corresponding interface on pure view objects is provided by ara::core::StringView via [SWS_CORE_02173].

This text was generated by an AI based on the AUTOSAR Adaptive R25-11 specification.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03319
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03319@rel:R25-11#bc08cf50
Content hash
bc08cf50
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03319
Status: valid/unmigrated Version: rel:R25-11#28b9f813 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03319@rel:R25-11#28b9f813
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bc08cf502026-09-30
  • R19-11rel:R19-11#630f5e4e2026-10-14
  • R20-11rel:R20-11#567bf4be2026-10-14
  • R21-11rel:R21-11#f2670cc22026-10-14
  • R22-11rel:R22-11#1b1f73732026-10-14
  • R23-11rel:R23-11#84bfbd732026-10-14
  • R24-11rel:R24-11#56daf9d42026-10-14
  • R25-11rel:R25-11#28b9f8132026-10-14 active
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

function find_first_of [SWS_CORE_03317]

size_type find_first_of (StringView sv, size_type pos=0) const noexcept;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 87bebedac490 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_first_of according to [SWS_CORE_03317] of class ara::core::BasicString (defined in header #include "ara/core/string.h") synchronously searches a string for the first occurrence of any character from the passed StringView sv. The search starts by default from index position pos = 0. The behavior corresponds to the definition in [basic.string], where charT is replaced by value_type. As return value, the function returns the found position of type size_type; if no matching character is found, the return value is presumably npos (interpretation: derived from the referenced standard behavior of [basic.string]). Question Q-fe0c2b9671e5bd4c (open)

Error Handling and Concurrency

The method is declared as noexcept and considered exception-safe (exception safe) according to [SWS_CORE_03317]. It throws no exceptions; specific error codes or reports to diagnostic and monitoring services (such as DET or DEM) are not provided. Since it is a reading const operation without modification of the object state, parallel calls on the same instance without synchronization should be reentrant and thread-safe (interpretation: typical semantics for side-effect-free methods). Question Q-0657bb5d0d156e3d (open)

Interaction

Within ara::core::BasicString, this method complements the overload for const BasicString& [SWS_CORE_03329] and enables passing string views without additional memory allocations. In contrast to the pointer and character overloads [SWS_CORE_03330], [SWS_CORE_03331], and [SWS_CORE_03332], which are listed as not exception-safe, this signature provides guaranteed exception safety. Similar search operations are also available directly on ara::core::StringView, for example via [SWS_CORE_02165].

This text was generated by an AI based on the AUTOSAR Adaptive R25-11 specification.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03317
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03317@rel:R25-11#1f25fc23
Content hash
1f25fc23
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03317
Status: valid/unmigrated Version: rel:R25-11#06edcb29 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03317@rel:R25-11#06edcb29
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1f25fc232026-09-30
  • R19-11rel:R19-11#4cb9e5e22026-10-14
  • R20-11rel:R20-11#4da551aa2026-10-14
  • R21-11rel:R21-11#003eae7f2026-10-14
  • R22-11rel:R22-11#8bef54f72026-10-14
  • R23-11rel:R23-11#1b622a592026-10-14
  • R24-11rel:R24-11#477ca05a2026-10-14
  • R25-11rel:R25-11#06edcb292026-10-14 active
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

function find_last_ [SWS_CORE_03333]

size_type find_last_of (const BasicString &str, size_type pos=npos) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 4d3d169119f8 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method find_last_of of class ara::core::BasicString serves to find the last occurrence of a character from the passed string str up to position pos [SWS_CORE_03333]. The declaration takes place in header ara/core/string.h and behaves according to the corresponding usage in [basic.string] [SWS_CORE_03333]. Interpretation: The reference [basic.string] presumably refers to the chapter of the same name in the C++ standard on std::basic_string. Question Q-b62a1b13affb848c (open)

Usage and semantics: The call is synchronous and performed as a const member function (const) on an instance of ara::core::BasicString [SWS_CORE_03333]. Parameters are the search string str of type const BasicString& and the optional start position pos of type size_type with the default value npos [SWS_CORE_03333]. The return value is of type size_type and yields the index of the found character or npos if no matching character exists [SWS_CORE_03333].

Error handling and exception safety: This overload is explicitly declared as noexcept and classified as exception safe [SWS_CORE_03333]; it thus does not throw any exceptions.

Interplay with related functions: In addition to this variant with BasicString, overloads exist for find_last_of for pointer const value_type* [SWS_CORE_03344], [SWS_CORE_03335] as well as for single characters value_type [SWS_CORE_03336], which unlike this function are not classified as exception-safe (not exception safe). The complementary counterpart to searching for characters not contained in the comparison string is represented by the function family find_last_not_of, whose BasicString variant is likewise noexcept and exception-safe [SWS_CORE_03341], while its pointer and character overloads are declared as not exception safe [SWS_CORE_03342], [SWS_CORE_03343], [SWS_CORE_03344].

This text was generated automatically. All statements rely exclusively on the specification scope of AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03333
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03333@rel:R25-11#0aa945af
Content hash
0aa945af
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03333
Status: valid/unmigrated Version: rel:R25-11#0aa945af 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_03333@rel:R25-11#0aa945af
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

function find_last_ [SWS_CORE_03334]

size_type find_last_of (const value_type *s, size_type pos, size_type n) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 01c823277fa4 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_of of class ara::core::BasicString ([SWS_CORE_03334]) serves to synchronously search for the last occurrence of a character from a subsequence of a C string. It is defined in header #include "ara/core/string.h" ([SWS_CORE_03334]). The function accepts a pointer s to a character array of type const value_type*, a start position pos for beginning the backward search, and the number n of characters to consider from s ([SWS_CORE_03334]). The behavior corresponds to standard [basic.string], where charT is replaced by value_type ([SWS_CORE_03334]). The index of the last match is returned as size_type as return value ([SWS_CORE_03334]).

Error Handling and Boundary Conditions

The operation is specified as not exception safe ([SWS_CORE_03334]). Specific error codes, DET, or DEM messages are not provided in the payload. As a const member function, it does not modify the calling instance ([SWS_CORE_03334]). Interpretation: Since the function processes a raw pointer s together with a length specification n, the caller should be responsible for ensuring that the referenced memory range comprises at least n valid characters. Question Q-b565ebc283768016 (open)

Interaction

The function is directly related to other search methods of ara::core::BasicString:

  • In contrast to this function, the overload with const BasicString& ([SWS_CORE_03333]) provides exception safety (exception safe) and is declared as noexcept.
  • The overload for character arrays with default value pos = npos ([SWS_CORE_03335]) and the overload for single characters value_type ([SWS_CORE_03336]) are classified as not exception safe, just like this function.
  • For finding characters that are not contained in the set, an analogous three-parameter signature exists with find_last_not_of ([SWS_CORE_03342]) along with associated variants ([SWS_CORE_03341], [SWS_CORE_03343], [SWS_CORE_03344]).

This text was created by an AI and is based exclusively on the specifications of AUTOSAR R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03334
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03334@rel:R25-11#3019e049
Content hash
3019e049
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03334
Status: valid/unmigrated Version: rel:R25-11#3019e049 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_03334@rel:R25-11#3019e049
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

function find_last_ [SWS_CORE_03335]

size_type find_last_of (const value_type *s, size_type pos=npos) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b0c4656e34b7 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_of of class ara::core::BasicString ([SWS_CORE_03335]) is included via the header file #include "ara/core/string.h". It searches the string synchronously and backward starting from position pos (by default npos) for the last occurrence of any character from the passed sequence s. The behavior corresponds to the definition in [basic.string], with the deviation that charT is replaced by value_type ([SWS_CORE_03335]). Upon a successful search, the index is returned as size_type, otherwise npos.

Exception Behavior and Fault Tolerance

In contrast to the string reference overload ([SWS_CORE_03333]), which is declared as exception safe with noexcept, the classification not exception safe applies to this function ([SWS_CORE_03335]). Interpretation: The pointer s should point to a null-terminated character array; an invalid pointer or memory range can therefore presumably not be intercepted. Question Q-fc1a5736ed4628dc (open)

Interplay and Related Functions

The specification defines several related overloads within ara::core::BasicString:

This text was created by an AI and summarizes the requirements from the AUTOSAR specification for ara::core::BasicString.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03335
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03335@rel:R25-11#e30865fd
Content hash
e30865fd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03335
Status: valid/unmigrated Version: rel:R25-11#e30865fd 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_03335@rel:R25-11#e30865fd
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

function find_last_ [SWS_CORE_03336]

size_type find_last_of (value_type c, size_type pos=npos) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c53f919412e0 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function find_last_of of class ara::core::BasicString from header file #include "ara/core/string.h" searches for the last occurrence of a single character c of type value_type at or before index position pos [SWS_CORE_03336]. The semantics correspond to the specification in [basic.string] with the documented deviation that charT is replaced by value_type [SWS_CORE_03336]. The index of the character is found as size_type; otherwise npos is returned [SWS_CORE_03336].

Regarding error handling, the method is specified as not exception safe (\"not exception safe\") [SWS_CORE_03336]. Specific error codes and messages to DET or DEM are not stated in the sources. In the event of an error, internal exceptions should be propagated to the caller, since the signature, unlike the string overload [SWS_CORE_03333], does not provide noexcept. Question Q-6d19144ce033e676 (open)

Since this is a const member function (const), the state of the object is not modified [SWS_CORE_03336]. Concurrent read accesses to the same instance should be permissible without additional synchronization, whereas concurrent write operations must be synchronized. Question Q-5f3aec4dd9c384fd (open)

The method fits into the search operations of ara::core::BasicString. It complements the overloads for searching for BasicString objects [SWS_CORE_03333] as well as pointer arrays const value_type* with and without length restriction [SWS_CORE_03334], [SWS_CORE_03335]. The complementary counterpart for characters that do not match is formed by find_last_not_of for single characters [SWS_CORE_03344] as well as for strings and pointers [SWS_CORE_03341], [SWS_CORE_03342], [SWS_CORE_03343].

This text was created by an AI and serves as guidance. The official AUTOSAR specification is always authoritative.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03336
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03336@rel:R25-11#30898047
Content hash
30898047
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03336
Status: valid/unmigrated Version: rel:R25-11#30898047 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_03336@rel:R25-11#30898047
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

function find_last_ [SWS_CORE_03341]

size_type find_last_not_of (const BasicString &str, size_type pos=npos) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e375e8e0304b Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_not_of of class ara::core::BasicString ([SWS_CORE_03341]) from header ara/core/string.h serves to find the last character that does not match the characters of the passed string. According to the specification, the functional behavior is oriented toward the corresponding usage in [basic.string] [SWS_CORE_03341]. The method is executed synchronously and accepts as parameters a reference str of type const BasicString& as well as an optional start position pos of type size_type, whose default value is npos [SWS_CORE_03341]. The return value is of type size_type and denotes the index of the found character [SWS_CORE_03341].

Regarding error handling, no DET or DEM messages and no specific error codes are defined. The method is declared as noexcept and has the property exception safe [SWS_CORE_03341]. Interpretation: If no differing character can be determined, the function should return the value npos, analogous to the C++ standard [basic.string]. Question Q-de6cb50023fa6e38 (open)

Since this is a const member function (const), concurrent read access to the same string instance should be harmless as long as no write operations take place. Question (open) In interplay with related string operations, the function forms the counterpart to find_last_of [SWS_CORE_03333]. While the overload for const BasicString& is exception safe [SWS_CORE_03341], overloads of find_last_not_of for pointers to const value_type* ([SWS_CORE_03342], [SWS_CORE_03343]) as well as for single characters value_type [SWS_CORE_03344] are explicitly classified as not exception safe (not exception safe).

This usage note was created automatically based on the specification for AUTOSAR Adaptive R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03341
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03341@rel:R25-11#3f1be830
Content hash
3f1be830
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03341
Status: valid/unmigrated Version: rel:R25-11#3f1be830 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_03341@rel:R25-11#3f1be830
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

function find_last_ [SWS_CORE_03342]

size_type find_last_not_of (const value_type *s, size_type pos, size_type n) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e9e3ed02eed7 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_not_of of class ara::core::BasicString ([SWS_CORE_03342]) is provided via header ara/core/string.h. It searches the string backward starting at position pos for the last character that is not contained in the array of value_type specified by pointer s and count n. The functional semantics conform to the requirements for [basic.string], where charT is replaced by value_type ([SWS_CORE_03342]).

Error Handling and Exception Safety

In the specification, this overload is explicitly classified as not exception safe ([SWS_CORE_03342]). Interpretation: Consequently, there is no noexcept guarantee, which is why callers must not assume freedom from exceptions in the event of invalid pointer parameters or out-of-range conditions. Question Q-3713a1ff523a6051 (open)

Interplay with related methods

The method fits into the family of search functions of ara::core::BasicString:

This usage note was curated automatically based on the AUTOSAR R25-11 specification model.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03342
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03342@rel:R25-11#112eece2
Content hash
112eece2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03342
Status: valid/unmigrated Version: rel:R25-11#112eece2 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_03342@rel:R25-11#112eece2
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

function find_last_ [SWS_CORE_03343]

size_type find_last_not_of (const value_type *s, size_type pos=npos) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e081c8cd2f1a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function find_last_not_of of class ara::core::BasicString ([SWS_CORE_03343]) is used for searching backwards for the last character within the string that does not match any of the characters contained in the null-terminated character array s. pos acts as an optional start index, which defaults to npos. The semantics follow the specification of [basic.string], where charT is replaced by value_type ([SWS_CORE_03343]). Inclusion of header ara/core/string.h is required ([SWS_CORE_03343]).

Error Handling and Exception Safety

In contrast to the string overload [SWS_CORE_03341], which is specified as noexcept (\"exception safe\"), this pointer overload is explicitly classified as \"not exception safe\" ([SWS_CORE_03343]). Specific DET or DEM error messages are not defined for this function. Since the reference to [basic.string] does not prescribe any special AUTOSAR error checks, providing a valid, null-terminated pointer s is likely the sole responsibility of the caller. Question Q-0b923cab35c7bf41 (open)

Interplay and overloads

Within ara::core::BasicString, the function belongs to a group of related search operations:

This text was created automatically based on the specification.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03343
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03343@rel:R25-11#45c93c85
Content hash
45c93c85
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03343
Status: valid/unmigrated Version: rel:R25-11#45c93c85 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_03343@rel:R25-11#45c93c85
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

function find_last_ [SWS_CORE_03344]

size_type find_last_not_of (value_type c, size_type pos=npos) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2e8fac7ffc51 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_not_of of class ara::core::BasicString ([SWS_CORE_03344], declared in #include "ara/core/string.h") searches a string synchronously and backwards for the last element that does not correspond to the passed character c. The start index of the search is controlled via the parameter pos, which defaults to npos. Execution follows specification [basic.string], where charT is replaced by value_type [SWS_CORE_03344]. Interpretation: If no non-matching character can be determined, the function will likely return npos. Question Q-0db95220d1766e88 (open)

Regarding error handling, the function is expressly classified in the specification as not exception safe (not exception safe) [SWS_CORE_03344]. Specific error codes or mechanisms such as DET or DEM notifications are not defined in the payload.

Since the method is declared as const, it does not modify the object [SWS_CORE_03344]. Concurrent read accesses to the same string instance are possible synchronously without state changes, as long as no concurrent write operations take place.

Within ara::core::BasicString, the function is part of a group of further search operations:

This usage note was generated automatically based on AUTOSAR specification status R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03344
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03344@rel:R25-11#f3cd5081
Content hash
f3cd5081
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03344
Status: valid/unmigrated Version: rel:R25-11#f3cd5081 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_03344@rel:R25-11#f3cd5081
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

function find_last_not_of [SWS_CORE_03320]

size_type find_last_not_of (StringView sv, size_type pos=npos) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: fc22ff6a9866 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method [SWS_CORE_03320] of class ara::core::BasicString is available via the header <ara/core/string.h>. It performs a synchronous backward search and determines the index of the last character of the string that does not occur in the passed view sv. The search range begins at pos, whose default value is npos. The behavior follows the semantics of [basic.string]; if no differing character is found, the function presumably returns the value npos. Question Q-1f2c9efc73c41b7a (open)

With regard to error handling, the function is specified as noexcept and classified as exception safe [SWS_CORE_03320]. It thus throws no exceptions. Specific AUTOSAR error codes or reports to error channels (DET/DEM) do not exist for this operation.

As a non-modifying const method, the invocation does not alter the state of the string. Concurrent read accesses by multiple threads to the same instance are therefore likely safe without external synchronization, whereas concurrent modifications must be protected. Question Q-227382d5787bde14 (open)

The function accepts parameters of type ara::core::StringView, which enables efficient comparisons without memory allocations. Within ara::core::BasicString, it complements overloads for strings [SWS_CORE_03341], raw pointers [SWS_CORE_03342], [SWS_CORE_03343], and single characters [SWS_CORE_03344]. In contrast to the pointer and character variants, the StringView overload is exception-safe. Corresponding search functions exist analogously on ara::core::StringView itself [SWS_CORE_02177], [SWS_CORE_02178], [SWS_CORE_02179], [SWS_CORE_02180].

This usage note was generated by an AI. All technical details are based on the requirements of the AUTOSAR payload.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03320
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03320@rel:R25-11#8da76b59
Content hash
8da76b59
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03320
Status: valid/unmigrated Version: rel:R25-11#c54cab32 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03320@rel:R25-11#c54cab32
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8da76b592026-09-30
  • R19-11rel:R19-11#5f40bcec2026-10-14
  • R20-11rel:R20-11#e1c2eb632026-10-14
  • R21-11rel:R21-11#a98ca3792026-10-14
  • R22-11rel:R22-11#54339bbe2026-10-14
  • R23-11rel:R23-11#549b390c2026-10-14
  • R24-11rel:R24-11#ff50b3cd2026-10-14
  • R25-11rel:R25-11#c54cab322026-10-14 active
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

function find_last_of [SWS_CORE_03318]

size_type find_last_of (StringView sv, size_type pos=npos) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d9311b5699d3 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function find_last_of of class ara::core::BasicString ([SWS_CORE_03318]) searches a string backward for the last occurrence of a character contained in the passed StringView sv. The search takes place synchronously and starts at or before the specified position pos, which is defaulted to npos. According to the reference to [basic.string], the function should return the zero-based index of the found character or npos if no matching character exists. Question Q-bf5de9d8aa553a74 (open)

Regarding error handling, the operation is declared with noexcept and classified as exception safe ([SWS_CORE_03318]). Callers can thus rely on no exceptions being thrown during the search. Specific error codes or error messages via DET or DEM are not provided for this fundamental helper function.

Since it is a const member function (const) that does not modify the state of the object, concurrent read accesses on the same instance should be uncritical as long as no conflicting write accesses take place. Question (open)

In the family of string classes, this overload shares its exception safety with the variant for const BasicString& ([SWS_CORE_03333]). In contrast, overloads based on raw pointers and single characters ([SWS_CORE_03334], [SWS_CORE_03335], [SWS_CORE_03336]) are specified as not exception safe. Comparable search functions are also provided in ara::core::StringView ([SWS_CORE_02169], [SWS_CORE_02170], [SWS_CORE_02171], [SWS_CORE_02172]), which are additionally marked with constexpr.

This text was generated by an AI based on specification R25-11.

Implementer's Guide to follow (complexity I1)

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03318
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03318@rel:R25-11#4302dfdc
Content hash
4302dfdc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03318
Status: valid/unmigrated Version: rel:R25-11#87aa553d Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03318@rel:R25-11#87aa553d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4302dfdc2026-09-30
  • R19-11rel:R19-11#52aa69b42026-10-14
  • R20-11rel:R20-11#1a4b36ea2026-10-14
  • R21-11rel:R21-11#be0d2f602026-10-14
  • R22-11rel:R22-11#d8d40e182026-10-14
  • R23-11rel:R23-11#50ae25f02026-10-14
  • R24-11rel:R24-11#26c417aa2026-10-14
  • R25-11rel:R25-11#87aa553d2026-10-14 active
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

function front [SWS_CORE_03065]

reference front ();

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03065
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03065@rel:R25-11#0fb03d0a
Content hash
0fb03d0a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03065
Status: valid/unmigrated Version: rel:R25-11#0fb03d0a 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_03065@rel:R25-11#0fb03d0a
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

function front [SWS_CORE_03066]

const_reference front () const;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03066
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03066@rel:R25-11#336f9071
Content hash
336f9071
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03066
Status: valid/unmigrated Version: rel:R25-11#336f9071 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_03066@rel:R25-11#336f9071
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

function get_allocator [SWS_CORE_03415]

allocator_type get_allocator () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03415
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03415@rel:R25-11#214aa0dc
Content hash
214aa0dc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03415
Status: valid/unmigrated Version: rel:R25-11#214aa0dc 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_03415@rel:R25-11#214aa0dc
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

function insert [SWS_CORE_03093]

BasicString & insert (size_type pos, const BasicString &str);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f7aebc82514e Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function insert of ara::core::BasicString ([SWS_CORE_03093]) serves to synchronously insert a string at a specified position. It expects the index pos of type size_type as well as a const reference str to the BasicString object to be inserted and returns a reference to the modified instance ([SWS_CORE_03093]). The functional behavior follows the corresponding semantics in [basic.string] ([SWS_CORE_03093]).

Specific error codes and reports to DET or DEM are not defined for this function. It is explicitly classified in the specification as “not exception safe” ([SWS_CORE_03093]). If an error occurs during the insertion process or a necessary memory allocation, no exception safety guarantees are likely to exist for the object state (interpretation). Question Q-7c9b0483885688ae (open)

The invocation occurs synchronously in the context of the caller. With concurrent read and write access of multiple threads to the same string instance, thread safety is likely not given without external synchronization (interpretation). Question Q-5fc68a1ccad5b75b (open)

This behavior fits consistently into the specification pattern of AUTOSAR Adaptive containers: In related containers such as ara::core::Vector ([SWS_CORE_01367]) or ara::core::Map ([SWS_CORE_01460]) as well, the insert overloads follow the corresponding C++ standard containers and are consistently marked as not exception safe.

This text was generated by an AI system and serves as non-binding guidance.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03093
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03093@rel:R25-11#c862a37c
Content hash
c862a37c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03093
Status: valid/unmigrated Version: rel:R25-11#c862a37c 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_03093@rel:R25-11#c862a37c
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

function insert [SWS_CORE_03094]

BasicString & insert (size_type pos1, const BasicString &str, size_type pos2, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. if ( pos1 > size() || pos2 > str.size() ) IsoStdOutOfRangeViolation is raised instead of std::out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: daf3c228d90a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Call Context

The member function insert of class ara::core::BasicString ([SWS_CORE_03094]) inserts substrings of a source string into the current string. It is provided via the header ara/core/string.h ([SWS_CORE_03094]). As arguments, the function accepts the insertion index pos1, the source reference str, the start index pos2 within str, and optionally the number of characters to insert n with the default value npos ([SWS_CORE_03094]). The return value is a reference to the modified BasicString object ([SWS_CORE_03094]).

Error Handling and Exception Safety

The behavior generally follows the standard library [basic.string], but exhibits a specific deviation: If pos1 > size() or pos2 > str.size() applies, a IsoStdOutOfRangeViolation is thrown instead of std::out_of_range ([SWS_CORE_03094]). The operation is specified as not exception-safe (not exception safe) ([SWS_CORE_03094]). If an error occurs, it is therefore not ensured that the object remains in a valid initial state.

Concurrency and Limitations

Interpretation: Since the method call directly modifies the target instance and no synchronization properties are mentioned, the function is likely neither reentrant nor thread-safe upon concurrent access to the same instance. Question Q-6727ae094800c27a (open) Callers must synchronize concurrent accesses externally.

Interplay with related containers

Corresponding insert functions also exist for other AUTOSAR containers such as ara::core::Vector ([SWS_CORE_01367], [SWS_CORE_01369]) and ara::core::Map ([SWS_CORE_01460], [SWS_CORE_01468]). While those overloads primarily use position-based iterators or nodes, the present string operation works index-based; common to all implementations is the exclusion of exception safety ([SWS_CORE_03094], [SWS_CORE_01367], [SWS_CORE_01460]).

This text was generated by an AI based on the AUTOSAR R25-11 specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03094
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03094@rel:R25-11#b641bba3
Content hash
b641bba3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03094
Status: valid/unmigrated Version: rel:R25-11#b641bba3 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_03094@rel:R25-11#b641bba3
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

function insert [SWS_CORE_03095]

BasicString & insert (size_type pos, const value_type *s, size_type n);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( pos1 > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range 3. if ( size() + n > max_size() ) IsoStdLengthErrorViolation is raised instead of std::length_error

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: eae429601b8c Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function insert of class ara::core::BasicString ([SWS_CORE_03095], provided via the header ara/core/string.h) synchronously inserts a character sequence of n characters of pointer s (type const value_type*) starting at the zero-based index position pos into the existing string. The behavior follows the semantics of [basic.string], where charT is replaced by value_type. As a return value, the function returns a reference to the calling BasicString object, which enables call chaining [SWS_CORE_03095].

Error Handling and Boundary Conditions

Instead of standard C++ exceptions, the implementation triggers AUTOSAR-specific violations [SWS_CORE_03095]:

  • If the insertion position is past the end of the string (condition pos > size(); designated as pos1 > size() in the specification text), a IsoStdOutOfRangeViolation is triggered instead of std::out_of_range [SWS_CORE_03095].
  • If the total size after insertion exceeds the permissible maximum (size() + n > max_size()), a IsoStdLengthErrorViolation is triggered instead of std::length_error [SWS_CORE_03095].

Concurrency and Interaction

The operation is specified as not exception safe [SWS_CORE_03095]. Interpretation: Parallel modifying accesses to the same BasicString instance are likely not thread-safe and therefore require external synchronization protection. Question Q-0c81a6b19e4c5c7b (open) In contrast to related container operations such as ara::core::Vector::insert [SWS_CORE_01367] or ara::core::Map::insert [SWS_CORE_01460], which operate iterator-based and return iterators, positioning here is performed index-based via indices.

This usage note was generated automatically and is based on AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdLengthEr- Description as per std::length_error rorViolation 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_03095
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03095@rel:R25-11#4e72a65a
Content hash
4e72a65a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03095
Status: valid/unmigrated Version: rel:R25-11#4e72a65a 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_03095@rel:R25-11#4e72a65a
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

function insert [SWS_CORE_03096]

BasicString & insert (size_type pos, const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 78c539e203f6 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function insert of class ara::core::BasicString inserts a null-terminated character array into the existing string object starting at position pos ([SWS_CORE_03096]). Declaration takes place via the header file ara/core/string.h ([SWS_CORE_03096]). The functional behavior corresponds to standard usage according to [basic.string], with the specific deviation that the character type charT is replaced by value_type ([SWS_CORE_03096]). Execution takes place synchronously and returns a reference to the modified instance ([SWS_CORE_03096]).

Error Handling and Concurrency

The interface is explicitly specified as not exception-safe (not exception safe) ([SWS_CORE_03096]). Specific error codes, return values for error reporting, or messages to DET or DEM are not defined for this function. The passed pointer s presumably must point to a valid, null-terminated array, as invalid memory accesses or errors during reallocation are not intercepted. Question Q-071709eb5beba24b (open) Modifying calls on the same instance are presumably not thread-safe during parallel accesses and require external synchronization.

Interaction

The operation fits into the unified interface design of ara::core. Analogous insert overloads exist for ara::core::Vector ([SWS_CORE_01367], [SWS_CORE_01368], [SWS_CORE_01370]) as well as for ara::core::Map ([SWS_CORE_01460], [SWS_CORE_01468] with insert_return_type according to [SWS_CORE_01418]), which are also consistently declared as not exception safe.

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03096
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03096@rel:R25-11#c1e11334
Content hash
c1e11334
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03096
Status: valid/unmigrated Version: rel:R25-11#c1e11334 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_03096@rel:R25-11#c1e11334
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

function insert [SWS_CORE_03097]

BasicString & insert (size_type pos, size_type n, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: ceeff2903043 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and signature

The member function insert of class ara::core::BasicString is provided via header #include "ara/core/string.h" [SWS_CORE_03097]. It serves to synchronously insert n consecutive characters c of type value_type at character position pos:

BasicString & insert (size_type pos, size_type n, value_type c);

The function returns a reference to the calling BasicString object, thus enabling method chaining. The semantics correspond to the specification for [basic.string], with the only deviation that the type parameter charT is replaced by value_type [SWS_CORE_03097].

Error Handling and Concurrency

Regarding exception safety, the function is explicitly classified as not exception safe [SWS_CORE_03097]. Specific error codes, AUTOSAR return values, or messages to DET/DEM are not defined. Interpretation: If an internal memory allocation fails or if pos lies outside the valid range of the string, the instance is likely to remain in an inconsistent state, as no recovery guarantees are specified. Question (open)

Regarding concurrency, the specification contains no synchronization mechanisms. Interpretation: Modifying calls of insert on the same instance of ara::core::BasicString are unlikely to be thread-safe and require external protection upon concurrent access. Question Q-9e2bbadca2f58f9a (open)

Interaction in module core

The function joins the interfaces of the data structures of ara::core:

  • For dynamic arrays, ara::core::Vector provides analogous insert overloads (for example, for inserting multiple elements [SWS_CORE_01369] or single elements [SWS_CORE_01367]), which are likewise declared as not exception-safe.
  • Associative containers such as ara::core::Map define comparable insertion operations [SWS_CORE_01460] using the same exception behavior.

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03097
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03097@rel:R25-11#98934703
Content hash
98934703
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03097
Status: valid/unmigrated Version: rel:R25-11#98934703 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_03097@rel:R25-11#98934703
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

function insert [SWS_CORE_03098]

iterator insert (const_iterator p, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 75b42de88827 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and signature

The member function insert of class ara::core::BasicString is provided via header #include "ara/core/string.h" [SWS_CORE_03098]. It takes an iterator p of type const_iterator and a character c of type value_type and returns a iterator [SWS_CORE_03098]. The functional semantics follow the definition in [basic.string], with charT replaced by value_type [SWS_CORE_03098]. Interpretation: The returned iterator likely points to the character newly inserted at position p. Question Q-077bda6c9d78be47 (open)

Error Handling and Restrictions

Regarding exception safety, the operation is declared as “not exception safe” [SWS_CORE_03098]. Specific error codes as well as messages to DET or DEM are not provided for in the specification; interpretation: if an error occurs during execution, there are likely no guarantees regarding the state of the string object. Question Q-f477ec410287f50a (open)

Interplay with related containers

The pattern of insertion operations and the classification as “not exception safe” correspond to the standards of other containers in ara::core:

This text was generated by an AI system based on the specification requirements.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03098@rel:R25-11#288efbcf
Content hash
288efbcf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03098
Status: valid/unmigrated Version: rel:R25-11#288efbcf 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_03098@rel:R25-11#288efbcf
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

function insert [SWS_CORE_03099]

iterator insert (const_iterator p, size_type n, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 47a592ee7bf9 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Method insert of class ara::core::BasicString ([SWS_CORE_03099]) serves to synchronously insert multiple identical characters at a defined position of the string. Integration is done via header file #include "ara/core/string.h".

Usage and Parameters

The call is made via the signature iterator insert(const_iterator p, size_type n, value_type c) according to the semantics of [basic.string], where charT is replaced by value_type ([SWS_CORE_03099]):

  • p: Iterator of the position (const_iterator) before which the content is inserted.
  • n: Number of characters to insert (size_type).
  • c: Character value of type value_type to be inserted.

As return value, the function yields a iterator pointing to the first newly inserted character or position p, respectively.

Error Handling and Boundary Conditions

The specification explicitly classifies the operation as “not exception safe” ([SWS_CORE_03099]). Specific error codes, DET, or DEM messages are not defined in the payload. Interpretation: In the absence of an exception guarantee, a failure during required memory allocations is likely to immediately lead to an abortion of execution or an inconsistent state. Question Q-9adc31e2e79f76fd (open)

Interaction

The interface follows the general provision pattern of sequential AUTOSAR containers. A functionally equivalent overload for multiple insertion exists for ara::core::Vector ([SWS_CORE_01369]), which is likewise specified as not exception-safe. In contrast, associative containers such as ara::core::Map primarily use pair- or node-based interfaces ([SWS_CORE_01460], [SWS_CORE_01468]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03099
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03099@rel:R25-11#d7785a25
Content hash
d7785a25
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03099
Status: valid/unmigrated Version: rel:R25-11#d7785a25 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_03099@rel:R25-11#d7785a25
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

function insert [SWS_CORE_03100]

template <class InputIterator> iterator insert (const_iterator p, InputIterator first, InputIterator last);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d25d37736780 Provenance Open questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template function insert of class ara::core::BasicString ([SWS_CORE_03100]), declared in header ara/core/string.h, synchronously inserts a sequence defined by input iterators first and last into the string at iterator position p. The behavior as well as the returned iterator follow the corresponding definition in [basic.string] of the C++ standard library [SWS_CORE_03100].

Regarding error handling, the function is explicitly classified as not exception safe [SWS_CORE_03100]. The specification provides neither specific error codes nor DET or DEM messages. If an error occurs during insertion—such as a failed memory allocation—the original state of the instance is unlikely to be restored and the operation presumably offers no transactional safety. Question (open)

Regarding concurrency, the method is not reentrant on the same instance; concurrent accesses without external synchronization are likely to cause data races. Question Q-6b99b21f80d01f8a (open) In addition, existing iterators and references to the string are likely to become invalid due to possible reallocations or element shifts.

This pattern corresponds to the uniform interface design of AUTOSAR Adaptive Core: range-based overloads of insert exist analogously for ara::core::Vector ([SWS_CORE_01370]) and ara::core::Map ([SWS_CORE_01466]), which are also based on the standard containers and are declared as not exception-safe.

This usage note was created automatically based on the specification of AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03100
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03100@rel:R25-11#2606fcb3
Content hash
2606fcb3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03100
Status: valid/unmigrated Version: rel:R25-11#2606fcb3 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_03100@rel:R25-11#2606fcb3
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

function insert [SWS_CORE_03101]

iterator insert (const_iterator p, std::initializer_list< value_type >);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 3ecc86841b8a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function insert of class ara::core::BasicString inserts the content of an std::initializer_list<value_type> before the position designated by iterator p (of type const_iterator) and returns a iterator to the first inserted element [SWS_CORE_03101]. The declaration is provided via header ara/core/string.h [SWS_CORE_03101]. The functional semantics correspond to the specification in [basic.string] of the C++ standard library, where charT is replaced by value_type [SWS_CORE_03101].

Error Handling and Exception Safety

The specification defines no specific error codes, return values for error cases, or notifications to DET or DEM. Exception safety is explicitly specified as not exception safe [SWS_CORE_03101]. If an internal operation such as a memory allocation fails, the implementation grants no consistency guarantees for the state of the string.

Concurrency and Limitations

The operation is executed synchronously in the context of the calling thread. Interpretation: Since the specification provides no internal synchronization mechanisms, concurrent modifying accesses to the same instance of ara::core::BasicString without external synchronization are likely not thread-safe. Question Q-11ec8e3ae2b8cf90 (open)

Interplay in the module

Inserting elements via initializer lists follows a consistent pattern in module core:

  • ara::core::Vector offers an analogous insert function with iterator insert(const_iterator, std::initializer_list<T>) [SWS_CORE_01371] alongside overloads for single values and iterator ranges [SWS_CORE_01367] [SWS_CORE_01370].
  • ara::core::Map likewise provides a bulk insert operation via void insert(std::initializer_list<value_type>) [SWS_CORE_01467], which, like the string variant, is classified as not exception safe.

This text was generated automatically. All technical details are based on AUTOSAR Release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03101@rel:R25-11#cbc72647
Content hash
cbc72647
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03101
Status: valid/unmigrated Version: rel:R25-11#cbc72647 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_03101@rel:R25-11#cbc72647
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

function insert [SWS_CORE_03310]

BasicString & insert (size_type pos, StringView sv);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: da52d5fd54d4 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Member function insert of class ara::core::BasicString ([SWS_CORE_03310]) synchronously inserts the content of a string view (StringView sv) into the string at the specified index position (size_type pos). According to [SWS_CORE_03310], the semantics correspond to the specification in [basic.string]. The function returns a reference to the modified string (BasicString &), which allows chaining multiple operations.

For usage, header #include "ara/core/string.h" must be included ([SWS_CORE_03310]). Regarding exception handling, the operation is explicitly specified as not exception-safe (not exception safe) ([SWS_CORE_03310]). If an error occurs during insertion or internal memory allocation, there are consequently no exception safety guarantees for the state of the object.

Regarding reentrancy and concurrency, the method is likely not thread-safe upon concurrent access to the same instance without external synchronization. Question Q-9b667a676acb9f5d (open) This behavior corresponds to the other container operations in ara::core, where modifying insert functions like in ara::core::Vector ([SWS_CORE_01367], [SWS_CORE_01368], [SWS_CORE_01369], [SWS_CORE_01370], [SWS_CORE_01371]) and ara::core::Map ([SWS_CORE_01460], [SWS_CORE_01468]) are likewise defined as not exception-safe.

This usage note was generated automatically based on the specification of AUTOSAR R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03310
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03310@rel:R25-11#c39449eb
Content hash
c39449eb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03310
Status: valid/unmigrated Version: rel:R25-11#a9000c7b Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03310@rel:R25-11#a9000c7b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c39449eb2026-09-30
  • R19-11rel:R19-11#0e0267ea2026-10-14
  • R20-11rel:R20-11#77ccaff42026-10-14
  • R21-11rel:R21-11#205dc51e2026-10-14
  • R22-11rel:R22-11#d9b3549e2026-10-14
  • R23-11rel:R23-11#dc8286112026-10-14
  • R24-11rel:R24-11#1a955fe62026-10-14
  • R25-11rel:R25-11#a9000c7b2026-10-14 active
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

function insert [SWS_CORE_03311]

template <class T> BasicString & insert (size_type pos1, const T &t, size_type pos2, size_type n=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. if ( pos1 > size() || pos2 > sv.size() ) IsoStdOutOfRangeViolation is raised instead of std::out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a4e9352b270c Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Call Context

Template function insert of class ara::core::BasicString ([SWS_CORE_03311]) synchronously inserts a character sequence from object t into the existing string at position pos1. Via pos2 and the optional length specification n (defaulting to npos), the sub-range of t to be read is determined. As return value, the function yields a reference to the modified BasicString object (*this). The source object t is presumably interpreted here as std::string_view or a type-compatible character-like object, since the specification references sv.size(). Question Q-d3ce468fb83c3519 (open)

Error Handling and Exception Behavior

The function deliberately deviates from the ISO C++ standard regarding error handling: if pos1 exceeds the length of the destination string (pos1 > size()) or pos2 exceeds the length of the source range (pos2 > sv.size()), a IsoStdOutOfRangeViolation is thrown instead of std::out_of_range ([SWS_CORE_03311]). The specification also classifies the function as not exception-safe (not exception safe) ([SWS_CORE_03311]), which is why retention of the original object state cannot be guaranteed in the event of memory errors. Question Q-e1feaf7fe13a8b16 (open)

Concurrency and Interaction

In the absence of an explicit reentrancy specification, unprotected parallel write or read accesses to the same instance are likely not thread-safe. Question (open) In comparison to other core containers such as ara::core::Vector ([SWS_CORE_01367]) or ara::core::Map ([SWS_CORE_01460]), whose insert functions operate iterator-based and are also considered not exception-safe, BasicString::insert operates index-based and integrates the AUTOSAR-specific violations concept ([SWS_CORE_03311]).

This usage note was generated automatically based on the specification for R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03311
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03311@rel:R25-11#ba5ad97d
Content hash
ba5ad97d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03311
Status: valid/unmigrated Version: rel:R25-11#62bf1049 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03311@rel:R25-11#62bf1049
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ba5ad97d2026-09-30
  • R19-11rel:R19-11#6faf2c3a2026-10-14
  • R20-11rel:R20-11#cce541312026-10-14
  • R21-11rel:R21-11#52705dfb2026-10-14
  • R22-11rel:R22-11#f89e0cc72026-10-14
  • R23-11rel:R23-11#a74846012026-10-14
  • R24-11rel:R24-11#944e7ad42026-10-14
  • R25-11rel:R25-11#62bf10492026-10-14 active
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

function length [SWS_CORE_03060]

size_type length () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03060
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03060@rel:R25-11#cf2b29b4
Content hash
cf2b29b4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03060
Status: valid/unmigrated Version: rel:R25-11#cf2b29b4 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_03060@rel:R25-11#cf2b29b4
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

function max_size [SWS_CORE_03053]

size_type max_size () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03053
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03053@rel:R25-11#d990acd1
Content hash
d990acd1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03053
Status: valid/unmigrated Version: rel:R25-11#d990acd1 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_03053@rel:R25-11#d990acd1
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

function operator= [SWS_CORE_03021] Upstream: RS_AP_00145

BasicString & operator= (const BasicString &str);

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03021
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03021@rel:R25-11#50cfd10d
Content hash
50cfd10d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03021
Status: valid/unmigrated Version: rel:R25-11#50cfd10d 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_03021@rel:R25-11#50cfd10d
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

function operator= [SWS_CORE_03023] Upstream: RS_AP_00145

BasicString & operator= (BasicString &&str) noexcept(std::allocator_ traits< Allocator >::propagate_on_container_move_ assignment::value||std::allocator_traits< Allocator >::is_always_ equal::value);

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03023@rel:R25-11#29f6fade
Content hash
29f6fade
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03023
Status: valid/unmigrated Version: rel:R25-11#29f6fade 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_03023@rel:R25-11#29f6fade
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

function operator= [SWS_CORE_03035]

BasicString & operator= (const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03035
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03035@rel:R25-11#3fee66aa
Content hash
3fee66aa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03035
Status: valid/unmigrated Version: rel:R25-11#3fee66aa 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_03035@rel:R25-11#3fee66aa
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

function operator= [SWS_CORE_03036]

BasicString & operator= (value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03036
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03036@rel:R25-11#290a89a8
Content hash
290a89a8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03036
Status: valid/unmigrated Version: rel:R25-11#290a89a8 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_03036@rel:R25-11#290a89a8
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

function operator= [SWS_CORE_03037]

BasicString & operator= (std::initializer_list< value_type >);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03037
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03037@rel:R25-11#b37500aa
Content hash
b37500aa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03037
Status: valid/unmigrated Version: rel:R25-11#b37500aa 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_03037@rel:R25-11#b37500aa
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

function operator= [SWS_CORE_03304]

BasicString & operator= (StringView sv);

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03304
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03304@rel:R25-11#c5d4e70d
Content hash
c5d4e70d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03304
Status: valid/unmigrated Version: rel:R25-11#e1480f61 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03304@rel:R25-11#e1480f61
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c5d4e70d2026-09-30
  • R19-11rel:R19-11#9f3c52e32026-10-14
  • R20-11rel:R20-11#d5f95de02026-10-14
  • R21-11rel:R21-11#f3556bbd2026-10-14
  • R22-11rel:R22-11#c0297a6d2026-10-14
  • R23-11rel:R23-11#f43a1fe02026-10-14
  • R24-11rel:R24-11#cfaf14ed2026-10-14
  • R25-11rel:R25-11#e1480f612026-10-14 active
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

function operatorStringView [SWS_CORE_03301]

operator StringView () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03301
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03301@rel:R25-11#9f4795fb
Content hash
9f4795fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03301
Status: valid/unmigrated Version: rel:R25-11#50dddbb9 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03301@rel:R25-11#50dddbb9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9f4795fb2026-09-30
  • R19-11rel:R19-11#f0d4c1a12026-10-14
  • R20-11rel:R20-11#ce78af432026-10-14
  • R21-11rel:R21-11#1e26e6ad2026-10-14
  • R22-11rel:R22-11#fa8cc98d2026-10-14
  • R23-11rel:R23-11#005096c22026-10-14
  • R24-11rel:R24-11#ba5a934e2026-10-14
  • R25-11rel:R25-11#50dddbb92026-10-14 active
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

function operator[] [SWS_CORE_03061]

reference operator[] (size_type n);

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03061
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03061@rel:R25-11#c271c4dd
Content hash
c271c4dd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03061
Status: valid/unmigrated Version: rel:R25-11#c271c4dd 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_03061@rel:R25-11#c271c4dd
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

function operator[] [SWS_CORE_03062]

const_reference operator[] (size_type n) const;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03062
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03062@rel:R25-11#f3bd35f1
Content hash
f3bd35f1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03062
Status: valid/unmigrated Version: rel:R25-11#f3bd35f1 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_03062@rel:R25-11#f3bd35f1
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

function pop_back [SWS_CORE_03105]

void pop_back ();

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 570926eab43a Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function pop_back of ara::core::BasicString ([SWS_CORE_03105]) is provided via the header #include "ara/core/string.h". It has the signature void pop_back(), takes no input parameters, and yields no return value. According to the specification, the behavior corresponds to the corresponding use in [basic.string] ([SWS_CORE_03105]). Interpretation: In accordance with [basic.string], the operation is likely to remove the last character synchronously from the string. Question Q-857ed5f71128639e (open)

With regard to error handling and robustness, the function is classified as not exception safe ([SWS_CORE_03105]). Specific error codes or diagnostic messages such as DET or DEM are not defined for this interface. The caller must ensure before execution that the string has a valid state and is not empty, since exception safety is not guaranteed in the event of an error.

In module core, an analogous interaction exists for sequential data structures: The class ara::core::Vector from ara/core/vector.h also provides a member function pop_back ([SWS_CORE_01365]). This follows the corresponding use in [vector] and exhibits the same restriction regarding exception safety with the classification not exception safe ([SWS_CORE_01365]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03105@rel:R25-11#f01336d7
Content hash
f01336d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03105
Status: valid/unmigrated Version: rel:R25-11#f01336d7 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_03105@rel:R25-11#f01336d7
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

function push_ [SWS_CORE_03083]

void push_back (value_type c);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1ffde7c3ae7c Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

Function push_ (with signature void push_back (value_type c);) belongs to class ara::core::BasicString and serves for synchronously appending a character c of type value_type to an existing string [SWS_CORE_03083]. The declaration is provided via header file #include "ara/core/string.h" [SWS_CORE_03083]. Technically, the functionality is aligned with the corresponding usage of the C++ standard construct [basic.string] [SWS_CORE_03083].

Error handling

The specification defines no specific error codes, return values, or diagnostic messages for the element, since the return is void [SWS_CORE_03083]. Regarding exception safety, the operation is explicitly classified as not exception safe [SWS_CORE_03083].

Concurrency and Limitations

Since the state of the instance is modified by appending the character and no synchronization mechanisms are specified, a concurrent call on the same instance without external protection is unlikely to be thread-safe. Question Q-d8277d8d29821e14 (open) Calling software components must therefore coordinate access themselves if needed.

This text was generated by an AI and is based on the specification data of AUTOSAR R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03083
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03083@rel:R25-11#590d8240
Content hash
590d8240
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03083
Status: valid/unmigrated Version: rel:R25-11#590d8240 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_03083@rel:R25-11#590d8240
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

function rbegin [SWS_CORE_03043]

reverse_iterator rbegin () noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03043
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03043@rel:R25-11#5ed14fc7
Content hash
5ed14fc7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03043
Status: valid/unmigrated Version: rel:R25-11#5ed14fc7 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_03043@rel:R25-11#5ed14fc7
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

function rbegin [SWS_CORE_03044]

const_reverse_iterator rbegin () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03044
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03044@rel:R25-11#9537c9bd
Content hash
9537c9bd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03044
Status: valid/unmigrated Version: rel:R25-11#9537c9bd 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_03044@rel:R25-11#9537c9bd
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

function rend [SWS_CORE_03045]

reverse_iterator rend () noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03045
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03045@rel:R25-11#c18e1e6b
Content hash
c18e1e6b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03045
Status: valid/unmigrated Version: rel:R25-11#c18e1e6b 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_03045@rel:R25-11#c18e1e6b
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

function rend [SWS_CORE_03046]

const_reverse_iterator rend () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03046
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03046@rel:R25-11#060b985c
Content hash
060b985c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03046
Status: valid/unmigrated Version: rel:R25-11#060b985c 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_03046@rel:R25-11#060b985c
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

function replace [SWS_CORE_03106]

BasicString & replace (size_type pos1, size_type n1, const BasicString &str);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8cbc0b524439 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function replace of class ara::core::BasicString ([SWS_CORE_03106], declared in #include "ara/core/string.h") synchronously replaces a subrange of the current string starting at index pos1 with a length of n1 characters with the content of the passed BasicString str. The semantics follow the corresponding definition in [basic.string] of the C++ standard library [SWS_CORE_03106]. A reference to the modified object (BasicString &) is returned, enabling method chaining [SWS_CORE_03106].

Regarding error handling and exception safety, the function is explicitly classified as not exception safe [SWS_CORE_03106]. If an error occurs during execution—such as insufficient memory—the operation does not guarantee a defined initial state. Unlike variants such as [SWS_CORE_03107] or [SWS_CORE_03108], which specify specific AUTOSAR violations like IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation, this overload refers directly to the standard semantics [SWS_CORE_03106].

Regarding concurrency, it can be assumed (interpretation) that modifying accesses to the same BasicString instance are not thread-safe and must be synchronized externally. Question Q-c2cefaa865bd3593 (open) For different replacement scenarios, related overloads are available: replacements with substrings via position specifications ([SWS_CORE_03107]), using pointers to C strings ([SWS_CORE_03108], [SWS_CORE_03109]), with StringView ([SWS_CORE_03312]), or via iterator ranges ([SWS_CORE_03111]).

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03106
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03106@rel:R25-11#e3b9ddb2
Content hash
e3b9ddb2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03106
Status: valid/unmigrated Version: rel:R25-11#e3b9ddb2 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_03106@rel:R25-11#e3b9ddb2
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

function replace [SWS_CORE_03107]

BasicString & replace (size_type pos1, size_type n1, const BasicString &str, size_type pos2, size_type n2=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( pos > max_size() || pos2 > str.size() ) IsoStdOutOfRangeViolation is raised instead of std::out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b8db7d0af856 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous member function replace of class ara::core::BasicString (defined in #include "ara/core/string.h") replaces a subsequence starting at position pos1 with length n1 by a range of string str starting at index pos2 with a maximum length of n2 [SWS_CORE_03107]. The parameter n2 defaults to npos [SWS_CORE_03107]. As a return value, the operation returns a reference to the modified BasicString object [SWS_CORE_03107]. The behavior follows the C++ standard specification [basic.string], with charT being replaced by value_type [SWS_CORE_03107].

Error Handling and Exception Safety

In case of an error, the function deviates from the standard library: If pos > max_size() (Interpretation: presumably the parameter pos1 is meant) or pos2 > str.size() holds, an IsoStdOutOfRangeViolation is thrown [SWS_CORE_03107]. Question Q-b4dc7d797ee025d8 (open) The function is explicitly specified as not exception safe [SWS_CORE_03107].

Concurrency and Limitations

Since the method is declared as not exception safe, the object potentially remains in an inconsistent state if a violation occurs [SWS_CORE_03107]. Callers must therefore ensure that passed indices lie within the valid boundaries. Special precautions for thread safety are not provided in the specification.

Interaction

The operation is embedded in the overload set of replace in ara::core::BasicString. It is directly related to variants for complete strings [SWS_CORE_03106], C-strings [SWS_CORE_03108], StringView [SWS_CORE_03312], as well as generic types [SWS_CORE_03313] and iterator ranges [SWS_CORE_03111].

This usage note was generated by an AI and is based on the specifications of AUTOSAR R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03107@rel:R25-11#fba2465f
Content hash
fba2465f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03107
Status: valid/unmigrated Version: rel:R25-11#fba2465f 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_03107@rel:R25-11#fba2465f
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

function replace [SWS_CORE_03108]

BasicString & replace (size_type pos, size_type n1, const value_type *s, size_type n2);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( pos1 > size() ) IsoStdOutOfRangeViolation is raised instead of std:: out_of_range 3. IsoStdLengthErrorViolation is raised instead of std::length_error (see condition in [11] )

Literaturverzeichnis SWS Core: [11] ISO/IEC 14882:2017, Programming languages – C++ – www.iso.org

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 641f55fea802 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function replace of class ara::core::BasicString is provided via header ara/core/string.h [SWS_CORE_03108]. It synchronously replaces a subsequence of the calling string starting at index pos with a maximum length of n1 elements by exactly n2 characters from the passed array pointer s of type const value_type* [SWS_CORE_03108]. The behavior follows the semantics of [basic.string] of ISO/IEC 14882:2017, where AUTOSAR replaces the generic character type charT with value_type [SWS_CORE_03108]. As return value, the function returns a reference to the modified instance (BasicString&) [SWS_CORE_03108].

Error Handling and Violations

AUTOSAR-specific violations are thrown upon faulty call parameters or capacity exceedances [SWS_CORE_03108]:

  • IsoStdOutOfRangeViolation: Is thrown if the start index pos lies past the current string end (declared as pos1 > size() in the specification text; Interpretation: pos1 refers to the parameter pos) [SWS_CORE_03108]. Question Q-9aaa96ad13e137aa (open)
  • IsoStdLengthErrorViolation: Is thrown instead of std::length_error if the resulting string length exceeds the limit values [SWS_CORE_03108].

Concurrency and Limitations

The function is explicitly specified as not exception safe (“not exception safe”) [SWS_CORE_03108]. Because it directly modifies the object, concurrent access by multiple threads to the same instance without external synchronization would likely lead to data races. Question Q-38b0f634ce53f9da (open)

Interaction

The method belongs to a family of related replace overloads of ara::core::BasicString. It complements calls with complete strings ([SWS_CORE_03106], [SWS_CORE_03107]), null-terminated character sequences ([SWS_CORE_03109]), or StringView ([SWS_CORE_03312]) as well as iterator-based replacements as in [SWS_CORE_03112].

This usage note was generated by an AI based on the specification AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Exception-Sicherheitnot exception safe
Verletzungen (Violations)IsoStdLengthEr- Description as per std::length_error rorViolation 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_03108
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03108@rel:R25-11#ccb57ce9
Content hash
ccb57ce9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03108
Status: valid/unmigrated Version: rel:R25-11#ccb57ce9 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_03108@rel:R25-11#ccb57ce9
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

function replace [SWS_CORE_03109]

BasicString & replace (size_type pos, size_type n1, const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e698368e854d Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function replace of class ara::core::BasicString ([SWS_CORE_03109]) replaces at most n1 characters starting from the zero-based index pos with the passed null-terminated character sequence s. The interface is provided via header #include "ara/core/string.h". According to the specification, the behavior follows the C++ standard definition [basic.string] with the documented deviation that charT is replaced by value_type ([SWS_CORE_03109]). As return value, the function delivers a reference to the modified BasicString object.

With regard to exception and error handling, the method is explicitly specified as not exception safe (“not exception safe”) ([SWS_CORE_03109]). Interpretation: If memory allocation fails during execution due to an enlargement of the string, the object presumably remains in an invalid state. Question Q-93f202b2d0d414e3 (open) While other overloads such as [SWS_CORE_03107] or [SWS_CORE_03108] list specific runtime violations such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation, this specification item specifies no separate violations.

Since replace mutates the object state, the call is not concurrency-safe against simultaneous accesses to the same instance. In conjunction with the interface of BasicString, this signature covers null-terminated pointers and complements the other overloads:

This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03109
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03109@rel:R25-11#f47d38a5
Content hash
f47d38a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03109
Status: valid/unmigrated Version: rel:R25-11#f47d38a5 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_03109@rel:R25-11#f47d38a5
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

function replace [SWS_CORE_03110]

BasicString & replace (size_type pos, size_type n1, size_type n2, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 77438d6e46be Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function replace of class ara::core::BasicString ([SWS_CORE_03110]) serves to synchronously replace a subrange within a string. Starting from the character-based start position pos, it replaces up to n1 existing characters with n2 consecutive copies of the character c of type value_type. As a result, the method returns a reference to the calling BasicString object, which enables chaining of further string operations. The definition is provided via the header file #include "ara/core/string.h" ([SWS_CORE_03110]).

With regard to error and exception behavior, the function is specified as not exception safe (not exception safe) ([SWS_CORE_03110]). The functional behavior is based on the C++ Standard Library definition in [basic.string], with charT being substituted by value_type. Unlike related overloads such as [SWS_CORE_03107] or [SWS_CORE_03108], this signature does not specify explicit violations such as IsoStdOutOfRangeViolation. Interpretation: The lack of exception safety is likely to indicate that no strong guarantees for the object state are maintained in the event of memory allocation errors or invalid range boundaries. Question Q-e32aa2a2af549632 (open)

In interaction with other methods of ara::core::BasicString, the signature forms the index-based counterpart to [SWS_CORE_03414], which performs the same replacement operation using iterators. For replacements of entire strings or views, alternative overloads such as [SWS_CORE_03106] or [SWS_CORE_03312] are available.

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03110
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03110@rel:R25-11#bdb432d1
Content hash
bdb432d1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03110
Status: valid/unmigrated Version: rel:R25-11#bdb432d1 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_03110@rel:R25-11#bdb432d1
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

function replace [SWS_CORE_03111]

BasicString & replace (const_iterator i1, const_iterator i2, const BasicString &str);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1ef3ca6edbf6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function replace of class ara::core::BasicString synchronously replaces the subrange bounded by the two iterators i1 and i2 with the content of the passed string str [SWS_CORE_03111]. As return value, the function returns a reference to the modified object (*this), whereby method calls can be directly chained [SWS_CORE_03111]. Usage requires including the header file #include "ara/core/string.h" [SWS_CORE_03111].

Error Handling and Restrictions

The function is explicitly classified as not exception safe [SWS_CORE_03111]. If, for example, an internal memory allocation required to accommodate str fails, the object is not guaranteed to remain in a consistent state. In contrast to index-based overloads such as [SWS_CORE_03107] or [SWS_CORE_03108], which list explicit error checks and violations such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation, this iterator-based variant defines no separate violations [SWS_CORE_03111]. Callers must therefore ensure that [i1, i2) represents a valid range within the object (interpretation: passing invalid iterators is likely to lead to undefined behavior). Question Q-8f94d47f7d10451b (open)

Interaction

Regarding its semantics, the specification refers to the standard C++ behavior under [basic.string] [SWS_CORE_03111]. In ara::core::BasicString, this signature complements index-based replacement with complete strings [SWS_CORE_03106] as well as alternative iterator-based overloads, such as for pointers to character arrays [SWS_CORE_03112], [SWS_CORE_03406], StringView [SWS_CORE_03314] or iterator pairs [SWS_CORE_03411].

This text was created by an AI and is based on the specification status of AUTOSAR R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03111
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03111@rel:R25-11#a9aa5997
Content hash
a9aa5997
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03111
Status: valid/unmigrated Version: rel:R25-11#a9aa5997 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_03111@rel:R25-11#a9aa5997
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

function replace [SWS_CORE_03112]

BasicString & replace (const_iterator i1, const_iterator i2, const value_type *s, size_type n);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 370f2f8982fe Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function replace of ara::core::BasicString replaces the substring defined by the iterators [i1, i2) with the first n characters of the passed character array s [SWS_CORE_03112]. The call is synchronous and returns a reference to the modified BasicString object [SWS_CORE_03112]. The declaration is provided via the header file ara/core/string.h.

The semantics follow the requirements of the C++ standard for [basic.string], where the type charT is replaced by value_type [SWS_CORE_03112]. Regarding fault tolerance and exception safety, the operation is explicitly classified as not exception safe (not exception safe) [SWS_CORE_03112]. In contrast to position-based overloads such as [SWS_CORE_03108], no specific violations such as IsoStdOutOfRangeViolation are defined for this iterator variant.

In interplay within ara::core::BasicString, the function joins a group of related overloads. While this signature inserts an exact number of characters from a pointer, related interfaces allow replacement by full pointer-based strings [SWS_CORE_03406], a StringView [SWS_CORE_03314], or other BasicString instances [SWS_CORE_03111].

This text was created by an AI and is based on AUTOSAR Release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03112@rel:R25-11#7ce98805
Content hash
7ce98805
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03112
Status: valid/unmigrated Version: rel:R25-11#7ce98805 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_03112@rel:R25-11#7ce98805
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

function replace [SWS_CORE_03312]

BasicString & replace (size_type pos1, size_type n1, StringView sv);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 02f54a89a507 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function replace according to [SWS_CORE_03312] replaces a subrange starting at position pos1 and spanning a length of n1 characters in an instance of ara::core::BasicString with the content of the passed StringView sv. It returns a reference to the modified BasicString object and is oriented toward the C++ standard usage in [basic.string].

Regarding error handling and exception behavior, the function is explicitly specified as not exception safe according to [SWS_CORE_03312]. In contrast to related overloads such as [SWS_CORE_03107], [SWS_CORE_03108], or [SWS_CORE_03313], this signature does not define specific AUTOSAR violations such as IsoStdOutOfRangeViolation, but refers directly to the standard behavior of [basic.string].

The following constraints and interface relationships apply to the usage:

  • Declaration is made via the header file #include "ara/core/string.h" in scope ara::core::BasicString [SWS_CORE_03312].
  • As a synchronous operation on a mutable string, the function is likely not reentrant on the same instance; concurrent calls presumably require external synchronization. Question Q-7947ae98dff850d6 (open)
  • The method complements the iterator-based overload with StringView [SWS_CORE_03314] as well as the index-based overloads for strings [SWS_CORE_03106] and string views from generic types [SWS_CORE_03313].

This usage note was generated automatically and is based on the AUTOSAR Adaptive R25-11 specification status.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03312
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03312@rel:R25-11#e288b4db
Content hash
e288b4db
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03312
Status: valid/unmigrated Version: rel:R25-11#f3eb990e Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03312@rel:R25-11#f3eb990e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e288b4db2026-09-30
  • R19-11rel:R19-11#08e47d6a2026-10-14
  • R20-11rel:R20-11#c9c42b2c2026-10-14
  • R21-11rel:R21-11#a619bf562026-10-14
  • R22-11rel:R22-11#b2b225d02026-10-14
  • R23-11rel:R23-11#3d829aff2026-10-14
  • R24-11rel:R24-11#243984712026-10-14
  • R25-11rel:R25-11#f3eb990e2026-10-14 active
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

function replace [SWS_CORE_03313]

template <class T> BasicString & replace (size_type pos1, size_type n1, const T &t, size_type pos2, size_type n2=npos);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if ( pos1 > size() || pos2 > sv.size() ) IsoStdOutOfRangeViolation is raised instead of std::out_of_range

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: dcfe61854d8e Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The template member function replace of class ara::core::BasicString ([SWS_CORE_03313], declared in ara/core/string.h) replaces a subrange of the string synchronously with a section of the object t. The range to be replaced is determined by the start position pos1 and the character count n1. The range to be inserted is determined by index pos2 as well as the maximum length n2, which is assigned npos by default ([SWS_CORE_03313]). As return value, the function returns a reference to the modified instance. Interpretation: The type T is likely to be a type compatible with StringView, as the specification checks the validity of pos2 against sv.size(). Question Q-a9d2f40a8aaa1fbe (open)

The semantics follow the ISO standard [basic.string], but define two specific deviations ([SWS_CORE_03313]):

  • The character type charT is replaced by value_type.
  • If pos1 > size() or pos2 > sv.size() holds, the violation IsoStdOutOfRangeViolation is thrown instead of std::out_of_range.

Regarding exception safety, the function is considered not exception safe ([SWS_CORE_03313]). In the module context, the method complements related overloads such as directly passing a BasicString with a subrange ([SWS_CORE_03107]), replacement via StringView ([SWS_CORE_03312], [SWS_CORE_03314]), and operations based on pointers ([SWS_CORE_03108]).

This usage note was created automatically and is based on the specification status of AUTOSAR R25-11.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03313@rel:R25-11#d16ae6fb
Content hash
d16ae6fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03313
Status: valid/unmigrated Version: rel:R25-11#82b8f92e Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03313@rel:R25-11#82b8f92e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d16ae6fb2026-09-30
  • R19-11rel:R19-11#1968392a2026-10-14
  • R20-11rel:R20-11#678924542026-10-14
  • R21-11rel:R21-11#6c48bb252026-10-14
  • R22-11rel:R22-11#994b53b72026-10-14
  • R23-11rel:R23-11#572d552f2026-10-14
  • R24-11rel:R24-11#aca364122026-10-14
  • R25-11rel:R25-11#82b8f92e2026-10-14 active
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

function replace [SWS_CORE_03314]

BasicString & replace (const_iterator i1, const_iterator i2, String View sv);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9dda022b8f48 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function replace of class ara::core::BasicString ([SWS_CORE_03314]) synchronously replaces the character range bounded by iterators i1 and i2 with the content of the passed StringView sv. The function is provided via header file #include "ara/core/string.h" and returns a reference to the modified instance (*this) ([SWS_CORE_03314]). Semantically, the operation follows the specification of [basic.string] of the C++ standard ([SWS_CORE_03314]).

Error Handling and Boundary Conditions

The operation is explicitly classified in the specification as "not exception safe" ([SWS_CORE_03314]). While related index-based variants such as [SWS_CORE_03107] or [SWS_CORE_03313] explicitly trigger a IsoStdOutOfRangeViolation in case of out-of-range conditions, this overload defines no separate violations. Interpretation: The passed iterators i1 and i2 presumably must represent a valid range within the target instance to avoid undefined behavior. Question Q-8dc533aaab166bea (open) Since modifications are made directly to the object and no exception safety is guaranteed ([SWS_CORE_03314]), concurrent access without external synchronization is likely not thread-safe.

Interplay in the module

The signature fits into the family of replacement functions of BasicString. It represents the iterator-based counterpart to index-based replacement using StringView ([SWS_CORE_03312]) and complements the other iterator-based overloads for strings ([SWS_CORE_03111]), character arrays ([SWS_CORE_03112], [SWS_CORE_03406]), iterator ranges ([SWS_CORE_03411]), and initializer lists ([SWS_CORE_03413]).

This usage note was generated automatically based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03314
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03314@rel:R25-11#d3e907b5
Content hash
d3e907b5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03314
Status: valid/unmigrated Version: rel:R25-11#1790c7c6 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03314@rel:R25-11#1790c7c6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d3e907b52026-09-30
  • R19-11rel:R19-11#9d1389532026-10-14
  • R20-11rel:R20-11#5d110e932026-10-14
  • R21-11rel:R21-11#f7fadcdd2026-10-14
  • R22-11rel:R22-11#8f86b8d02026-10-14
  • R23-11rel:R23-11#4353baae2026-10-14
  • R24-11rel:R24-11#9fc2c67f2026-10-14
  • R25-11rel:R25-11#1790c7c62026-10-14 active
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

function replace [SWS_CORE_03406]

BasicString & replace (const_iterator i1, const_iterator i2, const value_type *s);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 32865768f5dc Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function replace of class ara::core::BasicString ([SWS_CORE_03406]), declared in header file #include "ara/core/string.h", replaces the subrange of the string defined by iterator pair [i1, i2) with the character sequence s. As a return value, the method returns a reference to the calling instance (BasicString&), which allows chaining further string operations. The functional semantics follow the definition in [basic.string], with the parameter type charT being replaced by value_type as a deviation ([SWS_CORE_03406]).

With regard to execution safety, the function is explicitly specified as not exception safe (not exception safe) ([SWS_CORE_03406]). In contrast to overloads with index and position specifications such as [SWS_CORE_03107] or [SWS_CORE_03108], which explicitly define a IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation on out-of-bounds errors, [SWS_CORE_03406] specifies no AUTOSAR-specific violations. It is therefore presumably the responsibility of the caller to ensure that [i1, i2) represents a valid iterator range within the string and pointer s refers to a properly terminated character sequence. Question Q-17c75cd50135e0a8 (open)

The function complements the range of replacement operations of BasicString in interaction with related interfaces:

This usage note was generated by an AI and is based on the specification AUTOSAR Adaptive R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03406
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03406@rel:R25-11#039a54cf
Content hash
039a54cf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03406
Status: valid/unmigrated Version: rel:R25-11#039a54cf 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_03406@rel:R25-11#039a54cf
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

function replace [SWS_CORE_03411]

template <class InputIterator> BasicString & replace (const_iterator i1, const_iterator i2, Input Iterator j1, InputIterator j2);

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 345601207133 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous template member function replace of class ara::core::BasicString from header ara/core/string.h replaces the subrange of a string defined by the iterator pair [i1, i2) with the character sequence of the input range [j1, j2) of an arbitrary InputIterator [SWS_CORE_03411]. The behavior follows the semantics of [basic.string] and returns a reference to the modified object (*this), thereby enabling chained method calls [SWS_CORE_03411].

Error Handling and Exception Safety

The operation is explicitly specified as not exception safe (not exception safe) [SWS_CORE_03411]. Unlike position-based overloads such as [SWS_CORE_03107], [SWS_CORE_03108], or [SWS_CORE_03313], where out-of-range accesses lead to violation IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation, no specific violations are defined for this iterator variant [SWS_CORE_03411].

Concurrency and Interaction

Since the module standard specifies no mechanisms for internal synchronization, concurrent write or read access by multiple threads to the same instance is likely not to be thread-safe without external locking (Interpretation). Question Q-250c70f7907661f8 (open) The function joins a family of iterator-based replacements that also includes variants for BasicString [SWS_CORE_03111], StringView [SWS_CORE_03314], character arrays [SWS_CORE_03112], [SWS_CORE_03406], initializer lists [SWS_CORE_03413], and character repetitions [SWS_CORE_03414]. For position-based replacements, alternatives such as [SWS_CORE_03106] are available.

This usage note was generated automatically based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03411
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03411@rel:R25-11#9f83f5a2
Content hash
9f83f5a2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03411
Status: valid/unmigrated Version: rel:R25-11#9f83f5a2 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_03411@rel:R25-11#9f83f5a2
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

function replace [SWS_CORE_03413]

BasicString & replace (const_iterator, const_iterator, std::initializer_list< value_type >);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5e237c4a7ab6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function replace of class ara::core::BasicString ([SWS_CORE_03413]), provided in header ara/core/string.h, synchronously replaces a character range bounded by two const_iterator with the elements of an std::initializer_list<value_type>. As return value, it delivers a reference to the modified BasicString object ([SWS_CORE_03413]). The functional behavior corresponds to the C++ standard requirement [basic.string], where the character type charT is replaced by value_type ([SWS_CORE_03413]).

With regard to error and exception handling, the function is classified as not exception safe ([SWS_CORE_03413]). Unlike index-based variants for which specific runtime violations such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation are defined ([SWS_CORE_03107], [SWS_CORE_03108], [SWS_CORE_03313]), this iterator-based overload names no AUTOSAR violations. Because the specification does not provide for synchronization mechanisms, concurrent modifying access to the same string instance is presumably not thread-safe. Question Q-98d41e8b094a04a4 (open)

The operation complements the spectrum of iterator-based replacement methods for whole strings ([SWS_CORE_03111]), pointers with length specification ([SWS_CORE_03112]), string pointers ([SWS_CORE_03406]), StringView ([SWS_CORE_03314]), iterator ranges ([SWS_CORE_03411]), and character repetitions ([SWS_CORE_03414]). In addition, index- and position-based overloads exist ([SWS_CORE_03106], [SWS_CORE_03109], [SWS_CORE_03110], [SWS_CORE_03312]).

This text was created and curated by an AI.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03413
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03413@rel:R25-11#a09c963f
Content hash
a09c963f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03413
Status: valid/unmigrated Version: rel:R25-11#a09c963f 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_03413@rel:R25-11#a09c963f
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

function replace [SWS_CORE_03414]

BasicString & replace (const_iterator i1, const_iterator i2, size_type n, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 327de684c597 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function replace of class ara::core::BasicString ([SWS_CORE_03414]), provided via header file #include "ara/core/string.h", replaces the subrange of the string bounded by the iterator pair i1 and i2 with n consecutive copies of character c of type value_type. The behavior corresponds to the standardized semantics from [basic.string], where charT is substituted by value_type according to the AUTOSAR deviation ([SWS_CORE_03414]). As return value, the synchronous call returns a reference to the modified BasicString object ([SWS_CORE_03414]).

Regarding error handling, the function is classified as not exception safe ([SWS_CORE_03414]). In contrast to index-based overloads such as [SWS_CORE_03107] or [SWS_CORE_03108], which trigger specific runtime errors such as IsoStdOutOfRangeViolation or IsoStdLengthErrorViolation in the event of range or length errors, [SWS_CORE_03414] names no violations. Interpretation: Callers must presumably ensure the validity of the iterator range spanned by i1 and i2 themselves, since invalid ranges will likely lead to undefined behavior in the absence of exception safety. Question Q-7cf889abe845c23e (open)

In interaction with other overloads of the class, [SWS_CORE_03414] forms the iterator-based counterpart to the index-based function [SWS_CORE_03110] (replacement of n1 characters starting from index pos with n2 characters c). Further iterator-based alternatives allow replacement with a BasicString object ([SWS_CORE_03111]), a character array with length specification ([SWS_CORE_03112]), a null-terminated string ([SWS_CORE_03406]), a StringView ([SWS_CORE_03314]), an iterator pair ([SWS_CORE_03411]), or an initializer list ([SWS_CORE_03413]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03414
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03414@rel:R25-11#8a403e43
Content hash
8a403e43
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03414
Status: valid/unmigrated Version: rel:R25-11#8a403e43 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_03414@rel:R25-11#8a403e43
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

function reserve [SWS_CORE_03054]

void reserve (size_type res_arg=0);

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c4c8c389d6a0 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function reserve of class ara::core::BasicString ([SWS_CORE_03054]) serves in module core for capacity reservation of strings. It is included via header file <ara/core/string.h> and generally follows the semantics of the ISO C++ standard for [basic.string]. The call takes place via the signature void reserve(size_type res_arg=0), where parameter res_arg is defaulted to 0 and no value is returned [SWS_CORE_03054].

Regarding error handling, the specification defines an explicit deviation from the standard behavior of C++:

  • If the requested memory value exceeds the maximum size (res_arg > max_size()), IsoStdLengthErrorViolation is raised instead of std::length_error [SWS_CORE_03054].
  • The description of the content of this violation corresponds to the definition of std::length_error [SWS_CORE_03054].

As a restriction regarding exception safety, the function is explicitly classified as not exception safe [SWS_CORE_03054]. This approach corresponds to the method reserve of container class ara::core::Vector from <ara/core/vector.h> ([SWS_CORE_01347]), which likewise relies on IsoStdLengthErrorViolation for invalid capacity requests.

This text was created by an AI; only the linked specifications are binding.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03054
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03054@rel:R25-11#160ce277
Content hash
160ce277
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03054
Status: valid/unmigrated Version: rel:R25-11#160ce277 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_03054@rel:R25-11#160ce277
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

function resize [SWS_CORE_03058]

void resize (size_type sz);

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f732f6000cb2 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function resize of ara::core::BasicString ([SWS_CORE_03058]) adjusts the length of the string to the specified number of elements sz. It is based on the semantics of the C++ standard type [basic.string], but exhibits AUTOSAR-specific peculiarities with regard to error handling.

Error Handling and Exception Safety

If the requested size sz exceeds the maximum value max_size(), deviating from std::basic_string, no std::length_error is generated, but a IsoStdLengthErrorViolation is triggered ([SWS_CORE_03058]). In the specification, the operation is explicitly declared as not exception safe ([SWS_CORE_03058]). If an internal memory allocation or enlargement fails, the state of the object will likely remain Interpretation: undefined or inconsistent, which is why callers should perform size checks in advance. Question Q-c6d85e83b588ae2e (open)

Interaction and related interfaces

  • For targeted filling during an enlargement, ara::core::BasicString provides the overload resize(size_type, value_type) ([SWS_CORE_03059]).
  • The container class ara::core::Vector exhibits an analogous behavior: its methods [SWS_CORE_01350] and [SWS_CORE_01351] likewise trigger max_size() when IsoStdLengthErrorViolation is exceeded and similarly offer no exception guarantee.

This text was generated by an AI based on the AUTOSAR Adaptive R25-11 specification.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03058
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03058@rel:R25-11#94ff135e
Content hash
94ff135e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03058
Status: valid/unmigrated Version: rel:R25-11#94ff135e 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_03058@rel:R25-11#94ff135e
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

function resize [SWS_CORE_03059]

void resize (size_type sz, value_type c);

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type 2. if (sz > max_size()) IsoStdLengthErrorViolation is raised instead of std:: length_error

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8cca1b0c4ca7 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function resize of class ara::core::BasicString (declared in header ara/core/string.h, [SWS_CORE_03059]) adjusts the number of contained characters to the target size sz. If the string is enlarged, additional characters are filled with the passed character c of type value_type. The semantics follow the definition in [basic.string] of the C++ standard, but differ in that charT is replaced by value_type ([SWS_CORE_03059]).

With regard to error handling and boundary conditions, the following specifications apply:

  • Violations: If sz > max_size() holds, IsoStdLengthErrorViolation is triggered. This replaces the standard throwing of std::length_error ([SWS_CORE_03059]).
  • Exception safety: The operation is declared as not exception safe ([SWS_CORE_03059]). Error states such as size violations will therefore likely lead directly to termination on the platform side instead of throwing regular C++ exceptions. Question Q-dbaa99841e0a0735 (open)

The method complements the functional overload resize(size_type sz) within ara::core::BasicString ([SWS_CORE_03058]). The same strategy regarding IsoStdLengthErrorViolation when exceeding the maximum length is also used by the container methods of ara::core::Vector, namely resize(size_type sz) ([SWS_CORE_01350]) and resize(size_type sz, const T &c) ([SWS_CORE_01351]).

This text was generated by an AI and serves as guidance. The official AUTOSAR specification is always authoritative.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03059
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03059@rel:R25-11#38250de7
Content hash
38250de7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03059
Status: valid/unmigrated Version: rel:R25-11#38250de7 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_03059@rel:R25-11#38250de7
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

function rfind [SWS_CORE_03316]

size_type rfind (StringView sv, size_type pos=npos) const noexcept;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d06dc6f8dbdd Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

Member function rfind of class ara::core::BasicString ([SWS_CORE_03316]) searches a string backward for the last occurrence of the subsequence described by a StringView sv before or at search position pos (default value npos). It is included via header ara/core/string.h and returns the index of the match as size_type. The semantics follow [basic.string], with charT replaced by value_type ([SWS_CORE_03316]).

Error Handling and Exception Safety

The operation is declared as noexcept and classified as exception safe ([SWS_CORE_03316]). Specific error codes or error messages (DET/DEM) are not defined in the specification. If the search pattern is not found, the function returns the value npos in accordance with the underlying [basic.string] semantics.

Concurrency and Interaction

As a const method, rfind does not modify the state of the instance; concurrent read accesses to the same string should therefore be permissible without external synchronization. Question Q-f01ebf1745d77e74 (open) Within ara::core::BasicString, this function represents a modern alternative: While overloads for const value_type* and value_type ([SWS_CORE_03326], [SWS_CORE_03327], [SWS_CORE_03328]) are marked as not exception safe, the StringView variant shares the noexcept guarantee with the overload for const BasicString& ([SWS_CORE_03325]). For read-only string views, a corresponding rfind also exists in ara::core::StringView ([SWS_CORE_02161]).

This text was generated by an AI based on the AUTOSAR specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03316
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03316@rel:R25-11#86024059
Content hash
86024059
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03316
Status: valid/unmigrated Version: rel:R25-11#a7dba94f Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03316@rel:R25-11#a7dba94f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#860240592026-09-30
  • R19-11rel:R19-11#93cab4042026-10-14
  • R20-11rel:R20-11#661afb272026-10-14
  • R21-11rel:R21-11#97ac3d2f2026-10-14
  • R22-11rel:R22-11#83e75ac82026-10-14
  • R23-11rel:R23-11#2e0f154a2026-10-14
  • R24-11rel:R24-11#c7b1903a2026-10-14
  • R25-11rel:R25-11#a7dba94f2026-10-14 active
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

function rfind [SWS_CORE_03325]

size_type rfind (const BasicString &str, size_type pos=npos) const noexcept;

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: dbece32fb5a3 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function rfind of class ara::core::BasicString ([SWS_CORE_03325]) searches a string backwards for the last occurrence of the passed substring str. The function is declared in header #include "ara/core/string.h" ([SWS_CORE_03325]). The parameter pos determines the start position of the backward search and is assigned npos by default. The semantics correspond to usage in [basic.string] ([SWS_CORE_03325]). Interpretation: Failure to find the substring is likely signaled by returning npos in accordance with [basic.string]. Question Q-1470357608d753c1 (open)

Error Handling and Exception Safety

The method is declared as noexcept and explicitly specified as exception safe (“exception safe”) ([SWS_CORE_03325]). It throws no exceptions at runtime and uses no error codes.

Interplay and overloads

Within class ara::core::BasicString, related overloads exist for search operations:

This text was created by an AI and is based on the requirements of the AUTOSAR specification.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03325
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03325@rel:R25-11#8b5218d7
Content hash
8b5218d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03325
Status: valid/unmigrated Version: rel:R25-11#8b5218d7 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_03325@rel:R25-11#8b5218d7
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

function rfind [SWS_CORE_03326]

size_type rfind (const value_type *s, size_type pos, size_type n) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a8d452d20203 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function rfind from [SWS_CORE_03326] serves the synchronous, backward search of a substring within an instance of ara::core::BasicString (defined in #include "ara/core/string.h"). It searches the string backward from the start position pos for the sequence determined by the pointer s and the length specification n. The behavior corresponds to the specification of [basic.string] of the C++ standard, with the difference that charT is replaced by value_type.

Regarding parameter passing and the call context, the implementation is likely to require that s points to an array with at least n valid elements of type value_type, since the base specification does not provide for explicit pointer checks. Question Q-f3b95ce1cdb3037a (open) As a return value, the function provides the found position of type size_type or, in case of failure, the value npos according to standard behavior.

Regarding robustness and concurrency, [SWS_CORE_03326] is specified as not exception safe and has no noexcept specifier. It thus differs fundamentally from the corresponding pointer overload in ara::core::StringView ([SWS_CORE_02163]), which is declared as constexpr and noexcept. Furthermore, it deviates from the BasicString variants for StringView ([SWS_CORE_03316]) and BasicString references ([SWS_CORE_03325]), which are marked as exception safe. It shares the lack of exception safety with overloads [SWS_CORE_03327] and [SWS_CORE_03328].

This usage note was generated automatically and is based exclusively on the specification requirements of the AUTOSAR platform.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03326
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03326@rel:R25-11#00351481
Content hash
00351481
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03326
Status: valid/unmigrated Version: rel:R25-11#00351481 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_03326@rel:R25-11#00351481
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

function rfind [SWS_CORE_03327]

size_type rfind (const value_type *s, size_type pos=npos) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: fedca2261f91 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function rfind of class ara::core::BasicString ([SWS_CORE_03327], header file ara/core/string.h) searches backward for the last occurrence of the passed null-terminated string s of type const value_type* starting from start position pos, which defaults to npos. The behavior follows the definition in [basic.string], where charT is replaced by value_type [SWS_CORE_03327].

The following points apply to usage and boundary conditions:

  • Call context and parameters: The synchronous search function expects a pointer s to the character sequence to be searched for and optionally the index pos. As size_type, it returns the index position of the beginning of the found substring, or npos if no match is found [SWS_CORE_03327].
  • Exception safety: In contrast to the overloads for StringView ([SWS_CORE_03316]) and BasicString ([SWS_CORE_03325]), which are declared as noexcept, this function is classified as not exception safe [SWS_CORE_03327]. Presumably, this means that exceptions are not ruled out during execution. Question Q-175c749c7f0c276a (open)
  • Interplay and alternatives: For searches with an additional length limit, the overload with parameter n is available ([SWS_CORE_03326]), while single-character searches are covered via [SWS_CORE_03328]. Provided there is an assignment to ara::core::StringView, corresponding variants declared as exception safe also exist ([SWS_CORE_02161], [SWS_CORE_02164]), which deviatingly use pos = 0 as default value.

This usage note was created automatically. All details are based exclusively on the specification of AUTOSAR Adaptive (Release R25-11).

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03327
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03327@rel:R25-11#5263c5b5
Content hash
5263c5b5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03327
Status: valid/unmigrated Version: rel:R25-11#5263c5b5 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_03327@rel:R25-11#5263c5b5
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

function rfind [SWS_CORE_03328]

size_type rfind (value_type c, size_type pos=npos) const;

As per corresponding usage in [basic.string] except for the following deviations: 1. charT replaced with value_type

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 28c06ad44169 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function rfind of class ara::core::BasicString ([SWS_CORE_03328]) from header ara/core/string.h searches the string backward for the first occurrence of character c of type value_type. The search starts synchronously from position pos, which defaults to npos. The behavior corresponds to the definition in [basic.string], where charT is replaced by value_type ([SWS_CORE_03328]). As a return value, the function returns the index of the found character as size_type.

Error Handling and Concurrency

In contrast to the string-based overloads with StringView ([SWS_CORE_03316]) or BasicString ([SWS_CORE_03325]), which are specified as noexcept and exception safe, this single-character search is explicitly classified as not exception safe (not exception safe) according to the specification ([SWS_CORE_03328]). Specific AUTOSAR error codes or notifications to DET or DEM are not provided for this method call. Because this is a const accessor method, purely reading invocation from multiple threads concurrently should be possible as long as the instance is not modified at the same time. Question Q-b995c05a04d5e955 (open)

Interaction

The method complements the pointer overloads of BasicString::rfind ([SWS_CORE_03326] and [SWS_CORE_03327]), which are also classified as not exception safe. If a non-owning string reference is available, ara::core::StringView provides analogous search functions for single characters ([SWS_CORE_02162]) as well as substrings ([SWS_CORE_02161], [SWS_CORE_02163], [SWS_CORE_02164]) that are consistently declared as constexpr and noexcept.

This usage note was created automatically. It is based on the requirements of the AUTOSAR Adaptive specification R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03328
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03328@rel:R25-11#5e03f0c4
Content hash
5e03f0c4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03328
Status: valid/unmigrated Version: rel:R25-11#5e03f0c4 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_03328@rel:R25-11#5e03f0c4
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

function shrink_ [SWS_CORE_03056]

void shrink_to_fit ();

As per corresponding usage in [basic.string]

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f337402034db Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function shrink_to_fit() (declared in the specification element as shrink_) belongs to module core and is available in the scope of class ara::core::BasicString via header file #include "ara/core/string.h" [SWS_CORE_03056]. The method has parameterless signature void shrink_to_fit (); and does not return a value [SWS_CORE_03056]. According to requirement, its semantics follow the corresponding usage in [basic.string] [SWS_CORE_03056]. Execution is synchronous and, according to interpretation, serves to adjust the memory capacity to the actual length of the string.

Error Handling and Exception Safety

For error handling, it is specified that the method is classified as not exception safe [SWS_CORE_03056]. Special error codes or notifications via DET or DEM do not exist for this operation. If an internal reallocation of memory fails, this error state is expected to propagate directly and without exception protection to the environment. Question (open)

Concurrency and Limitations

Because the function shrink_to_fit() modifies internal data structures, a concurrent call on the same instance of ara::core::BasicString is presumably not thread-safe [SWS_CORE_03056]. Question (open) Calling software components must therefore protect concurrent accesses to the same string externally if needed.

This usage note is based on the specification AUTOSAR Adaptive Platform Release R25-11.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03056
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03056@rel:R25-11#a000bb6c
Content hash
a000bb6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03056
Status: valid/unmigrated Version: rel:R25-11#a000bb6c 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_03056@rel:R25-11#a000bb6c
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

function size [SWS_CORE_03052]

size_type size () const noexcept;

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03052
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03052@rel:R25-11#108f70e7
Content hash
108f70e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03052
Status: valid/unmigrated Version: rel:R25-11#108f70e7 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_03052@rel:R25-11#108f70e7
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

function substr [SWS_CORE_03345]

BasicString substr (size_type pos=0, size_type n=npos) const;

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

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: dac0616231b0 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

Method substr of class ara::core::BasicString synchronously creates a new substring of type BasicString according to [SWS_CORE_03345]. The function is available via header file #include "ara/core/string.h". Parameter pos specifies the starting position (default value 0), while n defines the maximum number of characters to take over (default value npos). The semantics largely correspond to the behavior of [basic.string] of the C++ standard.

Error Handling and Restrictions

In case of an error, the implementation deliberately deviates from the standard: If pos > size() holds, an IsoStdOutOfRangeViolation is raised instead of a conventional std::out_of_range [SWS_CORE_03345]. Regarding exception safety, the method is classified as not exception safe, which is why callers must pay attention to the state in case of violations or memory allocations for the new BasicString object.

Interaction

Method substr of class ara::core::StringView exhibits analogous behavior [SWS_CORE_02141]. Both interfaces raise the same IsoStdOutOfRangeViolation on range exceedances (pos > size()). In contrast to the allocating BasicString variant, however, the operation on StringView is specified as constexpr, noexcept, and exception safe.

This text was generated by an AI based on the specification data.

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
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_03345
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03345@rel:R25-11#4208226d
Content hash
4208226d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03345
Status: valid/unmigrated Version: rel:R25-11#4208226d 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_03345@rel:R25-11#4208226d
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

function swap [SWS_CORE_03412]

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

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03412
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03412@rel:R25-11#e3616eb9
Content hash
e3616eb9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03412
Status: valid/unmigrated Version: rel:R25-11#e3616eb9 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_03412@rel:R25-11#e3616eb9
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

function ~BasicString [SWS_CORE_03038] Upstream: RS_AP_00145

~BasicString ();

As per corresponding usage in [basic.string]

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

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

Record
AUTOSAR/AP/record/SWS_CORE_03038
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03038@rel:R25-11#fa97b4c0
Content hash
fa97b4c0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03038
Status: valid/unmigrated Version: rel:R25-11#fa97b4c0 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_03038@rel:R25-11#fa97b4c0
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

Type alias documentation

type alias allocator_type [SWS_CORE_03005]

using allocator_type = Allocator;

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolallocator_type

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

Record
AUTOSAR/AP/record/SWS_CORE_03005
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03005@rel:R25-11#70a81fa2
Content hash
70a81fa2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03005
Status: valid/unmigrated Version: rel:R25-11#70a81fa2 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_03005@rel:R25-11#70a81fa2
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

type alias const_iterator [SWS_CORE_00072]

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

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

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolconst_iterator

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

Record
AUTOSAR/AP/record/SWS_CORE_00072
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00072@rel:R25-11#802e4548
Content hash
802e4548
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00072
Status: valid/unmigrated Version: rel:R25-11#c46946d2 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00072@rel:R25-11#c46946d2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#802e45482026-09-30
  • R24-11rel:R24-11#9b7f5a322026-10-14
  • R25-11rel:R25-11#c46946d22026-10-14 active
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

type alias const_pointer [SWS_CORE_03015]

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

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolconst_pointer

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

Record
AUTOSAR/AP/record/SWS_CORE_03015
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03015@rel:R25-11#668dfaaf
Content hash
668dfaaf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03015
Status: valid/unmigrated Version: rel:R25-11#668dfaaf 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_03015@rel:R25-11#668dfaaf
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

type alias const_reference [SWS_CORE_03017]

using const_reference = const value_type&;

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolconst_reference

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

Record
AUTOSAR/AP/record/SWS_CORE_03017
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03017@rel:R25-11#85fa1342
Content hash
85fa1342
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03017
Status: valid/unmigrated Version: rel:R25-11#85fa1342 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_03017@rel:R25-11#85fa1342
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

type alias const_reverse_iterator [SWS_CORE_03019]

using const_reverse_iterator = std::reverse_iterator<const_iterator>;

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolconst_reverse_iterator

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

Record
AUTOSAR/AP/record/SWS_CORE_03019
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03019@rel:R25-11#dc8b7b0b
Content hash
dc8b7b0b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03019
Status: valid/unmigrated Version: rel:R25-11#dc8b7b0b 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_03019@rel:R25-11#dc8b7b0b
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

type alias difference_type [SWS_CORE_03013]

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

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symboldifference_type

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

Record
AUTOSAR/AP/record/SWS_CORE_03013
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03013@rel:R25-11#0a76da8c
Content hash
0a76da8c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03013
Status: valid/unmigrated Version: rel:R25-11#0a76da8c 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_03013@rel:R25-11#0a76da8c
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

type alias iterator [SWS_CORE_00071]

using iterator = {<iterator-type>};

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

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symboliterator

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

Record
AUTOSAR/AP/record/SWS_CORE_00071
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00071@rel:R25-11#cf2f21b8
Content hash
cf2f21b8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00071
Status: valid/unmigrated Version: rel:R25-11#4671c278 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00071@rel:R25-11#4671c278
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cf2f21b82026-09-30
  • R24-11rel:R24-11#c41a0a9d2026-10-14
  • R25-11rel:R25-11#4671c2782026-10-14 active
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

type alias pointer [SWS_CORE_03014]

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

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolpointer

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

Record
AUTOSAR/AP/record/SWS_CORE_03014
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03014@rel:R25-11#51825dd0
Content hash
51825dd0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03014
Status: valid/unmigrated Version: rel:R25-11#51825dd0 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_03014@rel:R25-11#51825dd0
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

type alias reference [SWS_CORE_03016]

using reference = value_type&;

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolreference

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

Record
AUTOSAR/AP/record/SWS_CORE_03016
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03016@rel:R25-11#d46630f9
Content hash
d46630f9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03016
Status: valid/unmigrated Version: rel:R25-11#d46630f9 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_03016@rel:R25-11#d46630f9
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

type alias reverse_iterator [SWS_CORE_03018]

using reverse_iterator = std::reverse_iterator<iterator>;

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolreverse_iterator

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

Record
AUTOSAR/AP/record/SWS_CORE_03018
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03018@rel:R25-11#99bb046f
Content hash
99bb046f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03018
Status: valid/unmigrated Version: rel:R25-11#99bb046f 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_03018@rel:R25-11#99bb046f
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

type alias size_type [SWS_CORE_03012]

using size_type = typename std::allocator_traits<Allocator>::size_ type;

As per corresponding member in [basic.string] except for the following deviations: 1. Type shall be specialized to std::size_t

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolsize_type

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

Record
AUTOSAR/AP/record/SWS_CORE_03012
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03012@rel:R25-11#c77b17e6
Content hash
c77b17e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03012
Status: valid/unmigrated Version: rel:R25-11#f0940e92 Versionshistorie & Revisions (1 transition, 5 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_03012@rel:R25-11#f0940e92
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#c77b17e62026-09-30
  • R22-11rel:R22-11#5bdb8d782026-10-14
  • R23-11rel:R23-11#7246a5772026-10-14
  • R24-11rel:R24-11#9c1265462026-10-14
  • R25-11rel:R25-11#f0940e922026-10-14 active
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

type alias traits_type [SWS_CORE_03003]

using traits_type = typename std::char_traits<char>;

As per corresponding usage in [basic.string] except for the following deviations: 1. Type shall be specialized to std::char_traits<char>

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symboltraits_type

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

Record
AUTOSAR/AP/record/SWS_CORE_03003
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03003@rel:R25-11#129b1455
Content hash
129b1455
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03003
Status: valid/unmigrated Version: rel:R25-11#129b1455 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_03003@rel:R25-11#129b1455
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

type alias value_type [SWS_CORE_03004]

using value_type = typename std::allocator_traits<Allocator>::value_ type;

As per corresponding usage in [basic.string] except for the following deviations: 1. Type shall be specialized to std::allocator_traits<Allocator>::value_type

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolvalue_type

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

Record
AUTOSAR/AP/record/SWS_CORE_03004
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_03004@rel:R25-11#b39498a1
Content hash
b39498a1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_03004
Status: valid/unmigrated Version: rel:R25-11#b39498a1 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_03004@rel:R25-11#b39498a1
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

Documentation of constants / variables

variable npos [SWS_CORE_00073]

static constexpr size_type const npos = size_type(-1);

As per corresponding usage in [basic.string]

Header-Datei#include "ara/core/string.h"
Scopeclass ara::core::BasicString
Symbolnpos
Typsize_type const

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

Record
AUTOSAR/AP/record/SWS_CORE_00073
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00073@rel:R25-11#df471078
Content hash
df471078
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00073
Status: valid/unmigrated Version: rel:R25-11#48d3de6a Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_00073@rel:R25-11#48d3de6a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#df4710782026-09-30
  • R24-11rel:R24-11#35a79a292026-10-14
  • R25-11rel:R25-11#48d3de6a2026-10-14 active
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