DEENESPTFRRUARHIKOZHNL

클래스 ara::core::PolymorphicAllocator

[SWS_CORE_06540] Upstream: RS_AP_00130

template <class Tp = ara::core::Byte> class PolymorphicAllocator {...};

Implementation of std::pmr::polymorphic_allocator from [mem.poly.allocator.class]

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

사용자 가이드AI 생성

교체 가능한 메모리 리소스를 통해 객체 및 컨테이너에 대한 다형성 메모리 할당을 관리합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 4f3088ca1f09 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

교체 가능한 메모리 리소스를 통해 객체 및 컨테이너에 대한 다형성 메모리 할당을 관리합니다.

이 템플릿 클래스는 어댑티브 애플리케이션 및 컨테이너를 위한 메모리 리소스 기반 동적 할당을 다형성 할당자의 완전한 예외 없는 구현으로서 캡슐화합니다 [SWS_CORE_06541]. 객체 수명 주기를 유연하게 제어하기 위해 인스턴스는 모든 메모리 요청을 교체 가능한 메모리 리소스에 위임하며, 할당에 실패하면 C++ 예외 대신 널 포인터를 결정론적으로 반환합니다 [SWS_CORE_06547]. 주요 기능적 제약 조건으로서 일반 복사 할당은 명시적으로 금지되어 있으며, 런타임 중 잘못된 메모리 해제 작업은 항상 자동으로 무시됩니다.

컨텍스트

템플릿 클래스 ara::core::PolymorphicAllocator은 AUTOSAR Adaptive에서 C++ 표준 패턴에 따라 상태 저장 다형성 메모리 할당을 위한 인터페이스를 구현하며 기본 요소 유형 value_type을 정의합니다 [SWS_CORE_06572]. 이 클래스는 컨테이너나 애플리케이션 구조와 같은 호출 구성 요소와 구체적인 메모리 리소스 사이에서 어댑터 역할을 합니다. 메서드 resource()을 통해 사용된 MemoryResource에 대한 포인터를 언제든지 쿼리할 수 있습니다 [SWS_CORE_06557]. 이러한 캡슐화를 통해 메모리 요청은 메모리 관리의 구체적인 구현으로부터 의미론적으로 분리됩니다.

diag_context caller Aufrufer / Container allocator PolymorphicAllocator caller->allocator Allokationsaufruf resource MemoryResource allocator->resource Speicherdelegierung

컨텍스트 다이어그램: 호출자와 메모리 리소스 사이의 할당자 통합. 출처: [SWS_CORE_06557], [SWS_CORE_06572].

수명 주기

할당자의 인스턴스는 기본값으로 생성되거나 [SWS_CORE_06541], 특정 MemoryResource에 대한 포인터를 사용하여 생성됩니다 [SWS_CORE_06542]. 할당자는 메모리 리소스를 참조하기만 하므로 해당 수명 주기에 대한 책임은 호출자에게 있는 것으로 추정됩니다. 질문 Q-adde89798a03cf8b (열림) 일반 복사 생성자 [SWS_CORE_06543] 외에도 변환 생성자를 통해 다른 요소 유형의 할당자로부터 초기화할 수 있습니다 U [SWS_CORE_06544].

소유권 이전과 관련하여 일반 복사 할당 연산자는 삭제되었습니다(=delete) [SWS_CORE_06545]. 반면에 AUTOSAR는 이동 생성자 [SWS_CORE_06546] 및 표준 이동 할당 연산자 [SWS_CORE_00066]을 명시적으로 정의합니다. 컨테이너의 복사 작업 시 메서드 select_on_container_copy_construction()는 해당 할당자 인스턴스를 생성합니다 [SWS_CORE_06573].

동시성과 관련하여 기본 및 변환 생성자와 메모리 리소스 쿼리는 스레드 안전으로 명시되어 있습니다([SWS_CORE_06541], [SWS_CORE_06542], [SWS_CORE_06544], [SWS_CORE_06557]). 반면 이동 작업([SWS_CORE_06546]), 복사 선택([SWS_CORE_06573]) 및 모든 할당, 생성 및 할당 해제 작업은 스레드 안전하지 않은 것으로 선언되어 있습니다.

사용 경로

정상적인 흐름에는 메모리 프로비저닝, 객체 생성, 그리고 추후 객체 파괴 및 메모리 해제가 포함됩니다:

  • 메모리 할당: Tp 유형의 객체 n개에 대한 원시 메모리는 allocate()를 사용하여 요청됩니다 [SWS_CORE_06547]. 대안으로 정렬이 포함된 바이트 단위 할당을 위한 allocate_bytes() [SWS_CORE_06549] 및 형식화된 할당을 위한 템플릿 allocate_object()이 제공됩니다 [SWS_CORE_06551].
  • 객체 초기화: 메서드 construct()은 이전에 할당된 메모리 영역에 객체를 생성합니다 [SWS_CORE_06555]. 결합된 작업으로서 new_object()는 한 번의 호출로 할당과 제자리 생성을 제공합니다 [SWS_CORE_06553].
  • 소멸 및 해제: 소멸은 destroy() [SWS_CORE_06556]을 통해 수행되며, 이어서 deallocate() [SWS_CORE_06548], deallocate_bytes() [SWS_CORE_06550] 또는 deallocate_object() [SWS_CORE_06552]을 통해 해제됩니다. 두 작업은 대안으로 delete_object()을 사용하여 결합할 수 있습니다 [SWS_CORE_06554].
할당, 생성, 소멸 및 해제 흐름호출자PolymorphicAllocatorMemoryResourceallocate(n)Speicher anfordernSpeicheradresseTp*(또는 nullptr)construct(p, args...)Objektkonstruktiondestroy(p)Objektdestruktiondeallocate(p, n)Speicher freigeben

시퀀스 다이어그램: 할당, 생성, 소멸 및 해제의 일반적인 흐름. 출처: [SWS_CORE_06547], [SWS_CORE_06548], [SWS_CORE_06555], [SWS_CORE_06556].

오류 시나리오

이 클래스는 예외 없는 시스템에 대한 엄격한 요구 사항을 충족하기 위해 주요 오류 처리 메커니즘에서 ISO C++ 표준과 차이가 있습니다:

이 가이드는 AUTOSAR R25-11의 ara::core::PolymorphicAllocator 사양을 기반으로 하며 자동으로 작성되었습니다.

멤버 맵

클래스 다이어그램

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

G nara__core__PolymorphicAllocator970 PolymorphicAllocator + PolymorphicAllocator() + operator=() + allocate() + allocate_bytes() + allocate_object() + construct() + deallocate() + deallocate_bytes() + deallocate_object() + delete_object() + destroy() + new_object() + resource() + select_on_container_copy_construction()

상세 보기

개요에서 항목을 선택하세요.

생성자 및 소멸자

≙ [mem.poly.allocator.class]

오버로드 PolymorphicAllocator 5
PolymorphicAllocator () noexcept; SWS_CORE_06541
PolymorphicAllocator (MemoryResource *r) noexcept; SWS_CORE_06542
PolymorphicAllocator (const PolymorphicAllocator &other) noexcept=default; SWS_CORE_06543
template <class U> PolymorphicAllocator (const PolymorphicAllocator< U > &other) noexcept; SWS_CORE_06544
PolymorphicAllocator (PolymorphicAllocator &&other) noexcept; SWS_CORE_06546

메서드

allocate 함수

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception ≙ [mem.poly.allocator.class]

[[nodiscard]] Tp * allocate (std::size_t n) noexcept;

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr ≙ [mem.poly.allocator.class]

[[nodiscard]] void * allocate_bytes (std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr ≙ [mem.poly.allocator.class]

template <class T> [[nodiscard]] T * allocate_object (std::size_t n=1) noexcept;
construct 함수

except for the following deviations: 1. Function is conditionally noexcept ≙ [mem.poly.allocator.class]

template <class T, class... Args> void construct (T *p, Args &&... args) noexcept(std::is_nothrow_ constructible< T, Args... >::value);
deallocate 함수

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

void deallocate (Tp *p, std::size_t n) noexcept;

except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

void deallocate_bytes (void *p, std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

except for the following deviations: 1. Function is nullptr 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

template <class T> void deallocate_object (T *p, std::size_t n=1) noexcept;

except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: errors will be silently ignored ≙ [mem.poly.allocator.class]

template <class T> void delete_object (T *p) noexcept(std::is_nothrow_destructible< T >::value);
destroy 함수

except for the following deviations: 1. Function is conditionally noexcept ≙ [mem.poly.allocator.class]

template <class T> void destroy (T *p) noexcept(std::is_nothrow_destructible< T >::value);
new_object 함수

except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception ≙ [mem.poly.allocator.class]

template <class T, class... CtorArgs> [[nodiscard]] T * new_object (CtorArgs &&... ctor_args) noexcept(std::is_nothrow_constructible< T, CtorArgs... >::value);
resource 함수

≙ [mem.poly.allocator.class]

MemoryResource * resource () const noexcept;

except for the following deviations: 1. The function is noexcept ≙ [mem.poly.allocator.class]

PolymorphicAllocator select_on_container_copy_construction () const noexcept;

연산자

operator= 함수 2

[AUTOSAR defined] not present in ISO-14882. Move assignment operator

오버로드 = 2
PolymorphicAllocator & operator= (PolymorphicAllocator &&other) noexcept=default; SWS_CORE_00066

타입 별칭

value_type 타입 별칭

≙ [mem.poly.allocator.class]

using value_type = Tp;

메서드 문서

함수 PolymorphicAllocator [SWS_CORE_06541]

PolymorphicAllocator () noexcept;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06541
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06541@rel:R25-11#d6f28a83
Content hash
d6f28a83
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06541
Status: valid/unmigrated Version: rel:R25-11#195a35ec Versionshistorie & Revisions (1 transition, 4 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_06541@rel:R25-11#195a35ec
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#7e6fd9e52026-09-30
  • R23-11rel:R23-11#1465b8862026-10-14
  • R24-11rel:R24-11#a1bf01392026-10-14
  • R25-11rel:R25-11#195a35ec2026-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

함수 PolymorphicAllocator [SWS_CORE_06542]

PolymorphicAllocator (MemoryResource *r) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06542
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06542@rel:R25-11#70c74148
Content hash
70c74148
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06542
Status: valid/unmigrated Version: rel:R25-11#8bd93278 Versionshistorie & Revisions (1 transition, 4 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_06542@rel:R25-11#8bd93278
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8ff7601b2026-09-30
  • R23-11rel:R23-11#d5a7d6172026-10-14
  • R24-11rel:R24-11#728611b82026-10-14
  • R25-11rel:R25-11#8bd932782026-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

함수 PolymorphicAllocator [SWS_CORE_06543]

PolymorphicAllocator (const PolymorphicAllocator &other) noexcept=default;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept

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

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

Record
AUTOSAR/AP/record/SWS_CORE_06543
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06543@rel:R25-11#df8ac690
Content hash
df8ac690
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06543
Status: valid/unmigrated Version: rel:R25-11#5d62e6ca Versionshistorie & Revisions (1 transition, 4 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_06543@rel:R25-11#5d62e6ca
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#50677d202026-09-30
  • R23-11rel:R23-11#fc99e5522026-10-14
  • R24-11rel:R24-11#7f7cdd4b2026-10-14
  • R25-11rel:R25-11#5d62e6ca2026-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

함수 PolymorphicAllocator [SWS_CORE_06544]

template <class U> PolymorphicAllocator (const PolymorphicAllocator< U > &other) noexcept;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06544
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06544@rel:R25-11#f5170fab
Content hash
f5170fab
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06544
Status: valid/unmigrated Version: rel:R25-11#539ac7f5 Versionshistorie & Revisions (1 transition, 4 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_06544@rel:R25-11#539ac7f5
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1facdd412026-09-30
  • R23-11rel:R23-11#a331d77c2026-10-14
  • R24-11rel:R24-11#745d118b2026-10-14
  • R25-11rel:R25-11#539ac7f52026-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

함수 PolymorphicAllocator [SWS_CORE_06546] Upstream: RS_AP_00145

PolymorphicAllocator (PolymorphicAllocator &&other) noexcept;

[AUTOSAR defined] not present in ISO-14882. Move constructor

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherother PolymorphicAllocator to move from

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

Record
AUTOSAR/AP/record/SWS_CORE_06546
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06546@rel:R25-11#db4109e9
Content hash
db4109e9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06546
Status: valid/unmigrated Version: rel:R25-11#8cbb6f43 Versionshistorie & Revisions (1 transition, 4 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_06546@rel:R25-11#8cbb6f43
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#cbffc4452026-09-30
  • R23-11rel:R23-11#76904a592026-10-14
  • R24-11rel:R24-11#fb6303702026-10-14
  • R25-11rel:R25-11#8cbb6f432026-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

함수 allocate [SWS_CORE_06547]

[[nodiscard]] Tp * allocate (std::size_t n) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: e24ff27c5b25 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::core::PolymorphicAllocator 클래스의 멤버 함수 allocate은(는) Tp 타입의 n개 객체를 위한 초기화되지 않은 메모리를 동기식으로 요청하는 역할을 합니다 [SWS_CORE_06547]. 이 함수는 [mem.poly.allocator.class]의 기능을 따르지만, noexcept 선언 및 [[nodiscard]] 속성을 통해 C++ 표준에서 의도적으로 벗어납니다 [SWS_CORE_06547].

오류 발생 시 allocate은(는) std::bad_alloc과(와) 같은 예외를 던지지 않고 대신 nullptr을(를) 반환합니다 [SWS_CORE_06547]. [[nodiscard]](으)로 인해 호출자는 메모리 영역을 사용하기 전에 반환값을 명시적으로 받아 nullptr인지 확인해야 합니다 [SWS_CORE_06547]. 동시성과 관련하여 이 함수는 예외 안전으로 분류되지만 스레드 안전하지 않은 것으로 간주됩니다(not thread-safe) [SWS_CORE_06547]. 해석: 따라서 서로 다른 스레드에서 동일한 할당자를 통한 동기식 호출은 호출자에 의한 외부 보호가 필요할 것으로 보입니다. 질문 Q-b00116faadf930fe (열림)

예외가 없는 내결함성 동작은 마찬가지로 noexcept(으)로 정의되고 오류 발생 시 nullptr을(를) 반환하는 ara::core::MemoryResource::allocate [SWS_CORE_06503] 인터페이스와 직접 일치합니다. NullMemoryResource [SWS_CORE_06563]와(과) 같은 사전 정의된 인스턴스도 이 원칙을 사용하며 할당 호출 시 일관되게 nullptr을(를) 반환합니다. 상위 수준에서 이 메커니즘은 이러한 할당 특성에 맞춰 할당 연산자가 조정된 ara::core::Vector [SWS_CORE_01315]과(와) 같은 컨테이너와 상호작용합니다.

이 텍스트는 자동으로 생성되었습니다. 기준이 되는 것은 AUTOSAR 명세입니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
Tp *• If successful: As per corresponding usage in [mem.poly.allocator.class] • If unsuccessful: the returned pointer shall be nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_06547
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06547@rel:R25-11#6f25968e
Content hash
6f25968e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06547
Status: valid/unmigrated Version: rel:R25-11#c37fff24 Versionshistorie & Revisions (1 transition, 4 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_06547@rel:R25-11#c37fff24
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1a6944692026-09-30
  • R23-11rel:R23-11#eca29eb82026-10-14
  • R24-11rel:R24-11#ae9311ae2026-10-14
  • R25-11rel:R25-11#c37fff242026-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

함수 allocate_bytes [SWS_CORE_06549]

[[nodiscard]] void * allocate_bytes (std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: ed713f104c1d 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

클래스 ara::core::PolymorphicAllocator의 멤버 함수 allocate_bytes은(는) 지정된 정렬(Alignment) alignment(으)로 nbytes 크기의 원시 메모리를 예약합니다 [SWS_CORE_06549]. 정렬의 기본값은 alignof(std::max_align_t)에 해당합니다 [SWS_CORE_06549]. 이 함수는 헤더 ara/core/memory_resource.h을(를) 통해 포함되며 동기식으로 실행됩니다 [SWS_CORE_06549].

오류 처리 및 시맨틱

[mem.poly.allocator.class]에 따른 표준 동작과 달리, 구현에는 두 가지 편차가 있습니다 [SWS_CORE_06549]:

  • 이 함수는 noexcept(으)로 선언되어 있으며 예외를 발생시키지 않습니다 [SWS_CORE_06549].
  • 할당이 실패하면 함수는 예외를 던지는 대신 nullptr을(를) 반환합니다 [SWS_CORE_06549].

속성 [[nodiscard]](으)로 인해 호출자는 반환값을 평가해야 하며, 특히 메모리 영역 [SWS_CORE_06549]에 접근하기 전에 nullptr에 대한 검사를 수행해야 합니다.

동시성 및 제약사항

스레드 안전성과 관련하여 이 메서드는 not thread-safe로 명시되어 있습니다 [SWS_CORE_06549]. 따라서 동일한 인스턴스에 대한 병렬 호출에는 외부 동기화가 필요할 것으로 보입니다 [SWS_CORE_06549]. 질문 Q-85c74d55563cae38 (열림) 예외 안전성과 관련하여 이 연산은 exception safe로 간주됩니다 [SWS_CORE_06549].

이 텍스트는 사양을 기반으로 AI에 의해 작성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06549
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06549@rel:R25-11#c6b9b735
Content hash
c6b9b735
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06549
Status: valid/unmigrated Version: rel:R25-11#126a0b29 Versionshistorie & Revisions (1 transition, 4 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_06549@rel:R25-11#126a0b29
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#d65ae27d2026-09-30
  • R23-11rel:R23-11#d9ed47762026-10-14
  • R24-11rel:R24-11#9b3f93072026-10-14
  • R25-11rel:R25-11#126a0b292026-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

함수 allocate_object [SWS_CORE_06551]

template <class T> [[nodiscard]] T * allocate_object (std::size_t n=1) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: the returned pointer shall be nullptr

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: c04a4d5d02ff 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

템플릿 멤버 함수 allocate_object은(는) 클래스 ara::core::PolymorphicAllocator의 구성요소이며 헤더 파일 #include "ara/core/memory_resource.h"을(를) 통해 제공됩니다 [SWS_CORE_06551]. 이 함수는 T 타입의 객체 n개를 위한 메모리를 동기식으로 할당하며, 매개변수 n은(는) 기본적으로 값 1(으)로 설정되어 있습니다 [SWS_CORE_06551]. 컴파일러 속성 [[nodiscard]]은(는) 호출자가 반환된 타입화된 포인터 T*을(를) 무시하지 않도록 강제합니다.

오류 처리

이 명세는 표준 [mem.poly.allocator.class]과의 두 가지 명시적 편차를 정의합니다 [SWS_CORE_06551]:

  • 예외 없음: 이 함수는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)(으)로 명시되어 있습니다 [SWS_CORE_06551].
  • 오류 시 널 포인터: 메모리 할당이 실패하면 예외가 발생하지 않고 반드시 nullptr이(가) 반환됩니다 [SWS_CORE_06551].

따라서 호출자는 전달받은 포인터를 추가로 사용하기 전에 nullptr인지 즉시 확인해야 합니다.

동시성 및 제약사항

이 연산은 스레드 안전하지 않음(not thread-safe)(으)로 명시되어 있습니다 [SWS_CORE_06551]. 동일한 할당자 인스턴스를 동시 사용할 경우 데이터 레이스를 방지하기 위해 외부 동기화가 필요할 것으로 보입니다. 또한 이 함수는 순수 메모리만 예약합니다(해석: 예약된 메모리에서의 객체 생성은 후속 메커니즘의 몫입니다). 질문 Q-c41df2caaeb4c503 (열림)

이 텍스트는 AI에 의해 작성되었으며 AUTOSAR R25-11 명세를 기반으로 합니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06551
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06551@rel:R25-11#7b2c1b6c
Content hash
7b2c1b6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06551
Status: valid/unmigrated Version: rel:R25-11#e1e4da70 Versionshistorie & Revisions (1 transition, 4 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_06551@rel:R25-11#e1e4da70
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#3b58128a2026-09-30
  • R23-11rel:R23-11#68fdb6af2026-10-14
  • R24-11rel:R24-11#e6cdc1b02026-10-14
  • R25-11rel:R25-11#e1e4da702026-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

함수 construct [SWS_CORE_06555]

template <class T, class... Args> void construct (T *p, Args &&... args) noexcept(std::is_nothrow_ constructible< T, Args... >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: b824902bd6dd 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::core::PolymorphicAllocator([SWS_CORE_06555])의 템플릿 함수 construct은(는) 인수 args...을(를) 전달하여 전달받은 메모리 주소 p에 타입 T의 객체를 동기식으로 생성하는 데 사용됩니다. 이 함수는 헤더 ara/core/memory_resource.h을(를) 통해 정의되며 본질적으로 [mem.poly.allocator.class]의 규정을 따릅니다.

C++ 표준과의 명시적 편차는 예외 처리에 관한 것입니다: [SWS_CORE_06555]에 따라 이 함수는 std::is_nothrow_constructible<T, Args...>::value의 충족 여부에 따라 조건부로 noexcept(으)로 선언됩니다. 따라서 명세는 여기에 conditionally exception safe 속성을 부여합니다. 해석: T이(가) 예외 없이 생성될 수 없는 경우, 내부 오류 코드나 별도의 가로채기 메커니즘이 정의되어 있지 않으므로 어떠한 생성자 예외도 호출자에게 방해받지 않고 전파될 것으로 보입니다. 질문 Q-ad77510f396e59ae (열림)

동시성 및 경계 조건과 관련하여 construct은(는) 스레드 안전하지 않음(not thread-safe)(으)로 명시되어 있습니다([SWS_CORE_06555]). 따라서 동일한 Allocator 인스턴스 또는 동일한 메모리 영역에 대한 병렬 접근 시 호출 컨텍스트에서의 외부 동기화가 반드시 필요합니다.

타입 종속적 noexcept 선언의 아키텍처 패턴은 ara::core의 규칙에 해당하며, 이는 다른 것 중에서도 ara::core::Result의 생성자에도 적용됩니다([SWS_CORE_00725], [SWS_CORE_00726]).

이 사용 참고사항은 자동으로 생성되었으며 오직 AUTOSAR Adaptive 릴리스 R25-11의 명세만을 기반으로 합니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06555
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06555@rel:R25-11#84fb7f3a
Content hash
84fb7f3a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06555
Status: valid/unmigrated Version: rel:R25-11#0973fb97 Versionshistorie & Revisions (1 transition, 4 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_06555@rel:R25-11#0973fb97
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#797687e32026-09-30
  • R23-11rel:R23-11#62b249762026-10-14
  • R24-11rel:R24-11#44e873a92026-10-14
  • R25-11rel:R25-11#0973fb972026-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

함수 deallocate [SWS_CORE_06548]

void deallocate (Tp *p, std::size_t n) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 2c2725501203 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

ara::core::PolymorphicAllocator 클래스의 멤버 함수 deallocate은(는) 주소 p부터 Tp 타입의 n개 객체에 대해 이전에 할당된 메모리를 해제합니다 [SWS_CORE_06548]. 선언은 헤더 ara/core/memory_resource.h을(를) 통해 이루어집니다 [SWS_CORE_06548]. 이 함수는 기본적으로 [mem.poly.allocator.class]에 따른 표준 C++ 할당자의 시맨틱을 따르지만 두 가지 구체적인 편차가 있습니다 [SWS_CORE_06548].

오류 처리 및 예외 안전성

주요 편차로서 이 작업은 noexcept(으)로 선언되고 예외 안전(exception safe)으로 명시되어 있습니다 [SWS_CORE_06548]. 메모리 해제에 실패할 경우 발생하는 오류는 조용히 무시되므로(silently ignored) 예외가 발생하지도 않고 명시적인 오류 코드가 반환되지도 않습니다 [SWS_CORE_06548].

동시성 및 상호 작용

호출 컨텍스트와 관련하여 deallocate은(는) 스레드 안전하지 않음(not thread-safe)으로 분류됩니다 [SWS_CORE_06548]. 메모리 관리 개념에서 이 함수는 기본 베이스 클래스 ara::core::MemoryResource [SWS_CORE_06504]의 deallocate 메서드와 일치하며, 여기에도 noexcept 및 자동 오류 처리와 관련된 동일한 편차가 적용됩니다.

이 사용 지침은 자동으로 생성되었으며, 전적으로 AUTOSAR Adaptive의 명세 요구사항만을 기반으로 합니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06548
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06548@rel:R25-11#1005eaf6
Content hash
1005eaf6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06548
Status: valid/unmigrated Version: rel:R25-11#d1d0b454 Versionshistorie & Revisions (1 transition, 4 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_06548@rel:R25-11#d1d0b454
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#824b5be32026-09-30
  • R23-11rel:R23-11#af3c4e332026-10-14
  • R24-11rel:R24-11#92f9b2332026-10-14
  • R25-11rel:R25-11#d1d0b4542026-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

함수 deallocate_bytes [SWS_CORE_06550]

void deallocate_bytes (void *p, std::size_t nbytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept 2. If unsuccessful: errors will be silently ignored

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: faf22ebd97f2 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::core::PolymorphicAllocator의 함수 deallocate_bytes은(는) [SWS_CORE_06550]에 따라 이전에 할당된 메모리 영역을 해제하는 데 사용됩니다. 이 함수는 헤더 ara/core/memory_resource.h을(를) 통해 제공되며 기본적으로 [mem.poly.allocator.class]의 시맨틱을 따릅니다.

호출은 동기식으로 수행되며 [SWS_CORE_06550]에 따라 다음 매개변수를 필요로 합니다:

  • p: 해제할 메모리 영역에 대한 포인터(void*).
  • nbytes: 해제할 메모리의 바이트 단위 크기(std::size_t).
  • alignment: 원하는 정렬(기본값 alignof(std::max_align_t)).

오류 동작과 관련하여 구현에는 표준과의 구체적인 편차가 있습니다: 이 함수는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)으로 간주됩니다. [SWS_CORE_06550]에 따르면 해제에 실패할 경우 발생하는 오류는 자동으로 무시(silently ignored)됩니다. 예외는 발생하지 않으며 반환값도 제공되지 않습니다.

동시성 및 제약 조건과 관련하여 이 함수는 명시적으로 스레드 안전하지 않음(not thread-safe)(으)로 명시되어 있습니다 [SWS_CORE_06550]. 따라서 외부 동기화 없이 동일한 할당자 인스턴스에 동시 접근할 경우 정의되지 않은 동작이 발생할 것으로 보입니다. 질문 Q-33c80e3bb50ed64f (열림)

이 사용 참고사항은 릴리스 R25-11을 기반으로 자동으로 작성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06550
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06550@rel:R25-11#e165363a
Content hash
e165363a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06550
Status: valid/unmigrated Version: rel:R25-11#7305c652 Versionshistorie & Revisions (1 transition, 4 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_06550@rel:R25-11#7305c652
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b90edcee2026-09-30
  • R23-11rel:R23-11#9a13c45b2026-10-14
  • R24-11rel:R24-11#eeb59aac2026-10-14
  • R25-11rel:R25-11#7305c6522026-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

함수 deallocate_object [SWS_CORE_06552]

template <class T> void deallocate_object (T *p, std::size_t n=1) noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is nullptr 2. If unsuccessful: errors will be silently ignored

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: d1e41bdb2142 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::core::PolymorphicAllocator의 템플릿 함수 deallocate_object은(는) 이전에 예약된 객체 메모리를 해제하는 역할을 합니다 [SWS_CORE_06552]. 이 함수는 [mem.poly.allocator.class]에 따른 해당 C++ 표준 사용 방식을 따르지만, 구체적인 편차가 있습니다 [SWS_CORE_06552].

매개변수 및 호출 컨텍스트와 관련하여 다음 속성이 적용됩니다 [SWS_CORE_06552]:

  • 시그니처: template <class T> void deallocate_object (T *p, std::size_t n=1) noexcept; [SWS_CORE_06552].
  • 헤더: 이 함수는 #include "ara/core/memory_resource.h"을(를) 통해 사용할 수 있습니다 [SWS_CORE_06552].
  • 반환값: 이 연산은 반환값을 반환하지 않습니다(void) [SWS_CORE_06552].
  • 널 포인터 동작: 명시적 편차로서, 이 함수는 nullptr 전달 시 작동하거나 널 포인터를 지원하도록 명시되어 있습니다(“Function is nullptr”) [SWS_CORE_06552].

오류 처리와 관련하여 이 함수는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)으로 간주됩니다 [SWS_CORE_06552]. 할당 해제에 실패할 경우 발생하는 오류는 자동으로 무시(“errors will be silently ignored”)되므로 외부로 예외가 전파되지 않습니다 [SWS_CORE_06552].

주요 제약 사항으로 deallocate_object은(는) 스레드 안전하지 않음(not thread-safe)(으)로 분류되어 있습니다 [SWS_CORE_06552]. 따라서 여러 스레드에서 동일한 Allocator 인스턴스에 병렬로 접근할 경우 외부 동기화 메커니즘을 통해 호출을 보호해야 합니다.

이 텍스트는 AI에 의해 작성되었으며 릴리스 R25-11의 사양만을 기반으로 합니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06552
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06552@rel:R25-11#457d7cda
Content hash
457d7cda
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06552
Status: valid/unmigrated Version: rel:R25-11#8e127a90 Versionshistorie & Revisions (1 transition, 4 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_06552@rel:R25-11#8e127a90
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#97b0add92026-09-30
  • R23-11rel:R23-11#0e144f892026-10-14
  • R24-11rel:R24-11#30aa2ab62026-10-14
  • R25-11rel:R25-11#8e127a902026-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

함수 delete_object [SWS_CORE_06554]

template <class T> void delete_object (T *p) noexcept(std::is_nothrow_destructible< T >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: errors will be silently ignored

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: c42857d5d063 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::core::PolymorphicAllocator의 멤버 함수 delete_object은(는) [SWS_CORE_06554]에 따라 전달된 포인터 p이(가) 가리키는 T 타입의 객체를 소멸시키고 해제하는 데 사용됩니다. 이 함수는 헤더 파일 #include "ara/core/memory_resource.h"을(를) 통해 제공되며 구체적인 편차와 함께 [mem.poly.allocator.class]의 동작을 따릅니다.

호출 컨텍스트 및 시맨틱과 관련하여 다음 속성이 적용됩니다:

  • 반환값 및 예외: 이 함수는 반환값을 가지지 않습니다(void). 명세 noexcept(std::is_nothrow_destructible<T>::value)에 따라 조건부 예외 안전(conditionally noexcept)이므로, T의 소멸자가 예외를 발생시키지 않는 것으로 선언된 경우 예외를 발생시키지 않습니다 [SWS_CORE_06554].
  • 오류 처리: 연산이 실패하면 발생한 오류는 자동으로 무시됩니다(errors will be silently ignored) [SWS_CORE_06554]. 해석: 따라서 호출자는 오류 발생 시 오류 메시지나 오류 코드 또는 예외를 받지 못합니다. 질문 Q-9393b0f68a055e4b (열림)
  • 스레드 안전성: 이 연산은 스레드 안전하지 않음(not thread-safe)(으)로 명시되어 있습니다 [SWS_CORE_06554]. 여러 스레드에 걸쳐 동일한 할당자를 동시에 사용할 경우 동기화의 책임은 호출자에게 있습니다.

이 텍스트는 R25-11 명세를 기반으로 AI에 의해 생성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06554
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06554@rel:R25-11#34ae480e
Content hash
34ae480e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06554
Status: valid/unmigrated Version: rel:R25-11#9b4d40a0 Versionshistorie & Revisions (1 transition, 4 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_06554@rel:R25-11#9b4d40a0
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#052ca7492026-09-30
  • R23-11rel:R23-11#3c9cbc572026-10-14
  • R24-11rel:R24-11#d8a2d49d2026-10-14
  • R25-11rel:R25-11#9b4d40a02026-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

함수 destroy [SWS_CORE_06556]

template <class T> void destroy (T *p) noexcept(std::is_nothrow_destructible< T >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: d8b5334c8292 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

클래스 ara::core::PolymorphicAllocator([SWS_CORE_06556])의 템플릿 멤버 함수 destroy은(는) 포인터 p이(가) 가리키는 T 타입의 객체를 소멸시키는 데 사용됩니다. 이 함수는 헤더 ara/core/memory_resource.h에 선언되어 있으며 기본적으로 [mem.poly.allocator.class]([SWS_CORE_06556])의 표준화된 동작을 따릅니다. 메서드 호출은 반환값을 제공하지 않으며 호출 스레드의 컨텍스트에서 동기식으로 실행됩니다. 해석: 이때 p은(는) 이전에 인스턴스화된 유효한 객체를 가리키는 것으로 전제될 것으로 보입니다. 질문 Q-a4faf7034eb683dd (열림)

오류 처리 및 예외 안전성

오류 처리와 관련하여 이 함수는 조건부 예외 안전(conditionally exception safe)(으)로 분류되어 있습니다([SWS_CORE_06556]). 표준 요구사항 [mem.poly.allocator.class]과의 구체적인 편차로서 destroy은(는) 조건부로 noexcept(std::is_nothrow_destructible<T>::value)(으)로 선언되어 있습니다([SWS_CORE_06556]). 전달된 T 타입의 소멸자가 예외를 던지지 않는 한 전체 호출에 대해 예외 없음이 적용되며, 그렇지 않은 경우 소멸자에서 발생한 예외가 외부로 벗어날 수 있습니다.

동시성 및 제약사항

동시성 동작과 관련하여 destroy은(는) 스레드 안전하지 않음(not thread-safe)(으)로 명시되어 있습니다([SWS_CORE_06556]). 여러 스레드가 ara::core::PolymorphicAllocator의 동일한 인스턴스 또는 소멸 대상 객체에 동시에 접근하는 경우 적절한 외부 동기화 메커니즘을 구축해야 합니다.

이 사용 참고사항은 AUTOSAR Adaptive 릴리스 R25-11 명세를 기반으로 자동으로 생성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06556
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06556@rel:R25-11#670ccc92
Content hash
670ccc92
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06556
Status: valid/unmigrated Version: rel:R25-11#abadf693 Versionshistorie & Revisions (1 transition, 4 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_06556@rel:R25-11#abadf693
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b20f3b522026-09-30
  • R23-11rel:R23-11#4cffca7a2026-10-14
  • R24-11rel:R24-11#c0cdac192026-10-14
  • R25-11rel:R25-11#abadf6932026-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

함수 new_object [SWS_CORE_06553]

template <class T, class... CtorArgs> [[nodiscard]] T * new_object (CtorArgs &&... ctor_args) noexcept(std::is_nothrow_constructible< T, CtorArgs... >::value);

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. Function is conditionally noexcept 2. If unsuccessful: nullptr is returned, instead of raising any Exception

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: d4720bb5fd75 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::core::PolymorphicAllocator(#include "ara/core/memory_resource.h"에 정의됨)의 템플릿 멤버 함수 new_object은(는) 메모리를 동기식으로 할당하고 전달된 생성자 인수 ctor_args을(를) 사용하여 타입 T의 객체를 생성합니다 [SWS_CORE_06553].

사용에는 표준 [mem.poly.allocator.class]과의 다음 규정 및 편차가 적용됩니다 [SWS_CORE_06553]:

  • 호출 및 반환값: 객체 생성이 성공하면 새 인스턴스에 대한 타입화된 포인터 T*이(가) 반환됩니다. 속성 [[nodiscard]]은(는) 호출자가 반환값을 평가하도록 강제합니다.
  • 오류 처리: 실패 시 [mem.poly.allocator.class]과(와) 달리 예외가 발생하지 않고 nullptr이(가) 반환됩니다. 따라서 호출자는 접근하기 전에 결과 포인터가 nullptr인지 반드시 확인해야 합니다.
  • 예외 안전성: 이 함수는 조건부 예외 안전(conditionally exception safe)(으)로 명시되어 있습니다. 객체 생성 자체가 예외를 발생시키지 않는다는 것이 보장되는 경우에만(noexcept(std::is_nothrow_constructible<T, CtorArgs...>::value)) 정확히 noexcept입니다.
  • 동시성: 이 함수는 스레드 안전하지 않음(not thread-safe)(으)로 선언되어 있습니다. 해석: ara::core::PolymorphicAllocator의 동일한 인스턴스에 동시 접근하는 경우, 적절한 외부 동기화에 대한 책임은 호출자에게 있을 것으로 보입니다. 질문 Q-3d0ecfe34187c91e (열림)

이 사용 지침은 AUTOSAR R25-11을 기반으로 자동 생성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
T*• If successful: As per corresponding usage in [mem.poly.allocator.class] • If unsuccessful: the returned pointer shall be nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_06553
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06553@rel:R25-11#2a79870f
Content hash
2a79870f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06553
Status: valid/unmigrated Version: rel:R25-11#a6ad2786 Versionshistorie & Revisions (1 transition, 4 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_06553@rel:R25-11#a6ad2786
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#d2723bd62026-09-30
  • R23-11rel:R23-11#914b6df22026-10-14
  • R24-11rel:R24-11#700266922026-10-14
  • R25-11rel:R25-11#a6ad27862026-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

함수 operator= [SWS_CORE_00066] Upstream: RS_AP_00145

PolymorphicAllocator & operator= (PolymorphicAllocator &&other) noexcept=default;

[AUTOSAR defined] not present in ISO-14882. Move assignment operator

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

Parameter (in)

ParameterBeschreibung
otherother PolymorphicAllocator to move from

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

Record
AUTOSAR/AP/record/SWS_CORE_00066
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00066@rel:R25-11#a18d5e3b
Content hash
a18d5e3b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00066
Status: valid/unmigrated Version: rel:R25-11#b0c562e4 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_00066@rel:R25-11#b0c562e4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#9ab9307f2026-09-30
  • R24-11rel:R24-11#49e75ee42026-10-14
  • R25-11rel:R25-11#b0c562e42026-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

함수 operator= [SWS_CORE_06545]

PolymorphicAllocator & operator= (const PolymorphicAllocator &)=delete;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator

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

Record
AUTOSAR/AP/record/SWS_CORE_06545
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06545@rel:R25-11#20cc4e00
Content hash
20cc4e00
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06545
Status: valid/unmigrated Version: rel:R25-11#ebba2fe5 Versionshistorie & Revisions (1 transition, 4 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_06545@rel:R25-11#ebba2fe5
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#6662d26d2026-09-30
  • R23-11rel:R23-11#19b7dc922026-10-14
  • R24-11rel:R24-11#9e9fa6da2026-10-14
  • R25-11rel:R25-11#ebba2fe52026-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

함수 resource [SWS_CORE_06557]

MemoryResource * resource () const noexcept;

As per corresponding usage in [mem.poly.allocator.class]

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 90f4d7f53a57 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

메서드 resource은(는) 헤더 파일 #include "ara/core/memory_resource.h"에 속한 클래스 ara::core::PolymorphicAllocator의 상수 멤버 함수입니다 [SWS_CORE_06557]. 이 메서드는 [mem.poly.allocator.class]에 대한 명세 참조에 따라 연관된 메모리 리소스 [SWS_CORE_06557]을(를) 동기식으로 가져오는 역할을 합니다.

사용법 및 시그니처

함수 시그니처는 MemoryResource * resource () const noexcept; [SWS_CORE_06557]입니다. 호출은 매개변수 없이 ara::core::PolymorphicAllocator의 인스턴스에서 동기식으로 이루어집니다. 반환값으로 이 함수는 MemoryResource* 타입의 포인터를 반환합니다 [SWS_CORE_06557]. 해석: 반환된 포인터는 할당자가 메모리 연산에 사용하는 구체적인 메모리 리소스를 직접 가리킬 것으로 보입니다. 질문 Q-392683a38a4e490b (열림)

오류 처리 및 동시성

  • 예외 안전성: 이 함수는 noexcept(으)로 선언되어 있으며 exception safe(으)로 분류되어 있습니다 [SWS_CORE_06557]. 예외를 발생시키지 않으며 특정 오류 코드가 정의되어 있지 않습니다.
  • 스레드 안전성: 명세는 이 메서드를 명시적으로 thread-safe(으)로 지정합니다 [SWS_CORE_06557]. const(으)로 지정됨으로써 여러 스레드에 걸친 동시 읽기 접근이 안전합니다.

상호 작용

모듈 core에서 resource은(는) ara::core::PolymorphicAllocator에 의해 캡슐화된 MemoryResource을(를) 쿼리하고 해당 연산에 접근하기 위한 인터페이스를 제공합니다 [SWS_CORE_06557].

이 사용 지침은 AUTOSAR Adaptive R25-11 사양을 기반으로 AI에 의해 생성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06557
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06557@rel:R25-11#691a3b8f
Content hash
691a3b8f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06557
Status: valid/unmigrated Version: rel:R25-11#95a9a731 Versionshistorie & Revisions (1 transition, 4 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_06557@rel:R25-11#95a9a731
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#03dbf6b12026-09-30
  • R23-11rel:R23-11#071c0a122026-10-14
  • R24-11rel:R24-11#4d44fc3f2026-10-14
  • R25-11rel:R25-11#95a9a7312026-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

함수 select_on_container_copy_construction [SWS_CORE_06573]

PolymorphicAllocator select_on_container_copy_construction () const noexcept;

As per corresponding usage in [mem.poly.allocator.class] except for the following deviations: 1. The function is noexcept

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: c103d893236c 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

멤버 함수 select_on_container_copy_construction은(는) 클래스 ara::core::PolymorphicAllocator의 스코프에 속하며 헤더 파일 #include "ara/core/memory_resource.h"을(를) 통해 선언됩니다([SWS_CORE_06573]). 이 함수는 컨테이너의 복사 생성 시 PolymorphicAllocator의 새 인스턴스를 생성하기 위해 동기식으로 호출됩니다([SWS_CORE_06573]). 이때 기능적 동작은 규정 [mem.poly.allocator.class]을(를) 따릅니다([SWS_CORE_06573]). 해석: 결과로 생성되는 할당자는 기본 생성되어 소스 컨테이너의 메모리 리소스를 반드시 복사하는 대신 표준 메모리 리소스를 사용할 것으로 보입니다. 질문 Q-134ed967dc22e133 (열림)

오류 처리 및 예외 안전성

일반 C++ 명세와의 주요 편차는 이 함수가 AUTOSAR에서 명시적으로 noexcept(으)로 선언되어 있다는 점입니다([SWS_CORE_06573]). 실행은 예외 안전(exception safe)(으)로 정의되어 있습니다([SWS_CORE_06573]). 호출이 오류 없이 종료되는 것이 보장되므로, 이 인터페이스에 대해 특정 오류 코드, 오류 표시를 위한 반환값 또는 DET나 DEM으로의 메시지는 제공되지 않습니다.

동시성 및 제약사항

명세에 따르면 이 함수는 not thread-safe([SWS_CORE_06573])(으)로 분류되어 있습니다. 이는 외부 동기화 없이 여러 스레드에서 동일한 PolymorphicAllocator 인스턴스를 동시에 호출하면 데이터 레이스로 이어질 수 있음을 의미합니다. 동시성 환경에서 컨테이너를 복사하기 전에 사용자가 할당자 객체에 대한 접근을 보호해야 합니다.

이 사용 참고사항은 릴리스 R25-11에 대한 AUTOSAR 명세를 기반으로 자동으로 작성되었습니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_06573
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06573@rel:R25-11#f9de0e25
Content hash
f9de0e25
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06573
Status: valid/unmigrated Version: rel:R25-11#23e4ce94 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_06573@rel:R25-11#23e4ce94
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f78e279c2026-09-30
  • R24-11rel:R24-11#70871b2b2026-10-14
  • R25-11rel:R25-11#23e4ce942026-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

타입 별칭 문서

타입 별칭 value_type [SWS_CORE_06572]

using value_type = Tp;

As per corresponding usage in [mem.poly.allocator.class]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::PolymorphicAllocator
Symbolvalue_type

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

Record
AUTOSAR/AP/record/SWS_CORE_06572
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06572@rel:R25-11#baecbe24
Content hash
baecbe24
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06572
Status: valid/unmigrated Version: rel:R25-11#8c0c50c3 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_06572@rel:R25-11#8c0c50c3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2bb07c522026-09-30
  • R24-11rel:R24-11#92a2e3f52026-10-14
  • R25-11rel:R25-11#8c0c50c32026-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