DEENESPTFRRUARHIKOZHNL

클래스 ara::core::MemoryResource

[SWS_CORE_06500] Upstream: RS_AP_00130

class MemoryResource {...};

Implementation of std::pmr::memory_resource type from [mem.res.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 · 온도: 제어 불가 · 프롬프트: efd95fd8a941 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

예외 없는 메모리 할당 및 해제를 위한 기본 인터페이스 역할을 합니다.

이 클래스는 C++ 표준 인터페이스를 모델로 한 다형성 메모리 리소스용 추상 기본 인터페이스를 제공합니다. Non-Virtual-Interface 패턴을 통해 할당 및 해제 요청을 파생된 리소스 클래스로 위임합니다 [SWS_CORE_06503]. C++ 표준과 달리 모든 인터페이스 함수는 예외 안전으로 선언되어 있으므로 메모리 오류는 예외가 아닌 널 포인터 반환을 통해 신호됩니다 [SWS_CORE_06566]. 또한 할당 및 해제 작업은 기본적으로 스레드 안전하게 설계되지 않았습니다.

컨텍스트

클래스 ara::core::MemoryResource은(는) AUTOSAR Adaptive Platform(모듈 core)에서 C++ 표준 타입 std::pmr::memory_resource을(를) 모델로 한 메모리 관리용 추상 기본 인터페이스를 제공합니다. 이는 교체 가능한 할당 전략의 공통 기반 역할을 하며, 호출하는 데이터 구조를 구체적인 메모리 제공 메커니즘으로부터 분리합니다. ISO-C++ 표준과의 중요한 차이점으로서 AUTOSAR 사양은 동적 예외를 완전히 배제하고 모든 작업에 대해 엄격한 noexcept 보장을 명시합니다 [SWS_CORE_06501].

이 아키텍처는 Non-Virtual-Interface 패턴(NVI)을 따릅니다. 공용 비가상 멤버 함수는 호출자를 위한 고정 인터페이스를 정의하는 반면, 실제 동작은 파생 클래스에서 프라이빗 순수 가상 멤버 함수를 통해 구현되어야 합니다. 해석: 구체적인 메모리 리소스는 애플리케이션별 버퍼 또는 풀 관리를 제공하기 위해 ara::core::MemoryResource에서 파생되어 프라이빗 기본 인터페이스 do_allocate [SWS_CORE_06566], do_deallocate [SWS_CORE_06567] 및 do_is_equal [SWS_CORE_06568]을(를) 재정의할 것으로 보입니다. 질문 Q-d09d47b0a8f6b822 (열림)

수명 주기

특수화의 인스턴스화는 noexcept=default(으)로 지정된 매개변수 없는 기본 생성자를 통해 수행됩니다 [SWS_CORE_06501]. 마찬가지로 noexcept 복사 생성자 [SWS_CORE_06502] 및 noexcept 복사 대입 연산자 [SWS_CORE_06507]이(가) 제공됩니다. C++ 표준 외에도 AUTOSAR는 모두 noexcept=default(으)로 정의된 이동 생성자 [SWS_CORE_06574] 및 이동 대입 연산자 [SWS_CORE_06575]을(를) 명시적으로 정의합니다.

다형성 인스턴스의 수명주기는 예외 안전으로 선언된 가상 소멸자를 통해 보호됩니다 [SWS_CORE_06506]. 동시성과 관련하여 소멸자뿐만 아니라 할당 및 해제 함수 allocate [SWS_CORE_06503] 및 deallocate [SWS_CORE_06504]도 스레드 안전하지 않은 것으로 명시되어 있음에 유의해야 합니다. 해석: 기본 메서드가 스레드 안전하지 않은 것으로 지정되어 있으므로, 스레드 안전한 할당 및 해제는 상위 동기화 메커니즘이나 특수화된 하위 클래스가 담당할 것으로 보입니다. 질문 Q-adac4b6cf6e0db7c (열림) 반면 is_equal을(를) 통한 동등성 검사는 명시적으로 스레드 안전하게 설계되었습니다 [SWS_CORE_06505].

사용 경로

메모리 관리의 기본 흐름은 공용 NVI 인터페이스를 통한 메모리 블록의 요청, 선택적 동일성 검사 및 후속 해제로 구성됩니다:

  • 메모리 할당: 호출자는 바이트 크기와 선택적 정렬을 지정하여 allocate을(를) 호출합니다 [SWS_CORE_06503]. 이 메서드는 내부적으로 구체적인 클래스 [SWS_CORE_06566]의 프라이빗 순수 가상 함수 do_allocate(으)로 위임합니다.
  • 동등성 검사: 두 메모리 리소스가 서로 동등하여 한쪽의 메모리를 다른 쪽에서 해제할 수 있는지 확인하기 위해 사용자는 is_equal을(를) 호출하며 [SWS_CORE_06505], 이는 do_is_equal(으)로 위임됩니다 [SWS_CORE_06568].
  • 메모리 해제: 사용이 완료된 후 블록은 포인터, 바이트 크기 및 정렬을 지정하여 deallocate을(를) 통해 반환되며 [SWS_CORE_06504], 이를 통해 do_deallocate(으)로의 내부 전달이 수행됩니다 [SWS_CORE_06567].
메모리 할당 및 해제 시 NVI 호출 위임호출자MemoryResourceKonkreteResourceUse Case: Speicherallokationallocate(bytes, alignment)do_allocate(bytes, alignment)altAllokation erfolgreichSpeicherzeigerSpeicherzeiger pAllokation fehlgeschlagennullptrnullptrUse Case: Speicherfreigabedeallocate(p, bytes, alignment)do_deallocate(p, bytes, alignment)복귀복귀

시퀀스 다이어그램: 할당 및 해제 시 NVI 패턴을 통한 호출 위임. 출처: [SWS_CORE_06503], [SWS_CORE_06504], [SWS_CORE_06566], [SWS_CORE_06567]

오류 시나리오

이 클래스의 핵심적인 특징은 예외를 완전히 배제한 점입니다. ISO-C++ 표준은 메모리 고갈 시 std::bad_alloc 타입의 예외를 규정하는 반면, AUTOSAR는 의도적으로 이와 다릅니다. allocate 또는 do_allocate에서 할당이 실패하면 함수는 반드시 nullptr을(를) 반환합니다 [SWS_CORE_06503], [SWS_CORE_06566]. allocate의 [[nodiscard]] 속성을 통해 호출자는 항상 반환값을 수신하고 접근 전에 유효성을 검사하도록 권장됩니다.

해제 작업 deallocate 및 do_deallocate의 경우, 메모리 반환 시 발생하는 모든 오류는 조용히 무시됩니다 [SWS_CORE_06504], [SWS_CORE_06567]. 예외가 발생하지도 않고 오류 코드가 반환되지도 않으므로, Adaptive Platform 컨텍스트에서 엄격한 실시간 및 안전 요구사항을 쉽게 준수할 수 있습니다.

이 텍스트는 AI에 의해 큐레이션되었으며 전적으로 AUTOSAR Adaptive Platform R25-11 사양을 기반으로 합니다.

멤버 맵

생성자 및 소멸자

2

연산자

1

클래스 다이어그램

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

G nara__core__MemoryResource130 MemoryResource + MemoryResource() + operator=() + ~MemoryResource() + allocate() + deallocate() + is_() + do_() nara__core__MonotonicBufferResource118 MonotonicBufferResource nara__core__MonotonicBufferResource118->nara__core__MemoryResource130 nara__core__SynchronizedPoolResource481 SynchronizedPoolResource nara__core__SynchronizedPoolResource481->nara__core__MemoryResource130 nara__core__UnsynchronizedPoolResource176 UnsynchronizedPoolResource nara__core__UnsynchronizedPoolResource176->nara__core__MemoryResource130

상세 보기

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

생성자 및 소멸자

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

오버로드 MemoryResource 3
MemoryResource () noexcept=default; SWS_CORE_06501
MemoryResource (const MemoryResource &other) noexcept=default; SWS_CORE_06502
MemoryResource (MemoryResource &&other) noexcept=default; SWS_CORE_06574

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

virtual ~MemoryResource () noexcept;

메서드

allocate 함수

except for the following deviations: 1. The function is noexcept 2. The function returns nullptr instead of (potentially) throwing a std::bad_alloc exception ≙ std::bad_alloc

[[nodiscard]] void * allocate (std::size_t bytes, std::size_t alignment=alignof(std::max_align_t)) noexcept;
deallocate 함수

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

void deallocate (void *p, std::size_t bytes, std::size_t alignment=max_align) noexcept;
do_ 함수 3

in [15] except for the following deviations: 1. The function is noexcept 2. The function returns nullptr instead of (potentially) throwing a std::bad_alloc exception ≙ std::bad_alloc

오버로드 do_ 3
virtual void * do_allocate (std::size_t bytes, std::size_t alignment) noexcept=0; SWS_CORE_06566
virtual void do_deallocate (void *p, std::size_t bytes, std::size_t alignment) noexcept=0; SWS_CORE_06567
virtual bool do_is_equal (const MemoryResource &other) const noexcept=0; SWS_CORE_06568
is_ 함수

≙ [mem.res]

bool is_equal (const MemoryResource &other) const noexcept;

연산자

operator= 함수 2

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

오버로드 = 2
MemoryResource & operator= (const MemoryResource &other) noexcept=default; SWS_CORE_06507
MemoryResource & operator= (MemoryResource &&other) noexcept=default; SWS_CORE_06575

메서드 문서

함수 MemoryResource [SWS_CORE_06501]

MemoryResource () noexcept=default;

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

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

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

Record
AUTOSAR/AP/record/SWS_CORE_06501
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06501@rel:R25-11#0d204c64
Content hash
0d204c64
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06501
Status: valid/unmigrated Version: rel:R25-11#b9f1b788 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_06501@rel:R25-11#b9f1b788
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#9befd4042026-09-30
  • R23-11rel:R23-11#f033a21e2026-10-14
  • R24-11rel:R24-11#fd91462c2026-10-14
  • R25-11rel:R25-11#b9f1b7882026-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

함수 MemoryResource [SWS_CORE_06502] Upstream: RS_AP_00130

MemoryResource (const MemoryResource &other) noexcept=default;

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

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

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

Record
AUTOSAR/AP/record/SWS_CORE_06502
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06502@rel:R25-11#59748a4f
Content hash
59748a4f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06502
Status: valid/unmigrated Version: rel:R25-11#c99831b9 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_06502@rel:R25-11#c99831b9
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#54ec446b2026-09-30
  • R23-11rel:R23-11#0d9d49792026-10-14
  • R24-11rel:R24-11#95d8ae9e2026-10-14
  • R25-11rel:R25-11#c99831b92026-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

함수 MemoryResource [SWS_CORE_06574] Upstream: RS_AP_00145

MemoryResource (MemoryResource &&other) noexcept=default;

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

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

Parameter (in)

ParameterBeschreibung
otherother MemoryResource to move from

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

Record
AUTOSAR/AP/record/SWS_CORE_06574
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06574@rel:R25-11#f8457657
Content hash
f8457657
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06574
Status: valid/unmigrated Version: rel:R25-11#95490182 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_06574@rel:R25-11#95490182
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#265cf3bf2026-09-30
  • R24-11rel:R24-11#ab47979b2026-10-14
  • R25-11rel:R25-11#954901822026-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_06503]

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

As per corresponding usage in [mem.res] except for the following deviations: 1. The function is noexcept 2. The function returns nullptr instead of (potentially) throwing a std::bad_alloc exception

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

ara::core::MemoryResource 클래스의 멤버 함수 allocate은(는) 지정된 바이트 크기 및 정렬을 갖는 선형 메모리를 할당하는 데 사용됩니다 [SWS_CORE_06503]. 이 함수는 C++ 표준 인터페이스 [mem.res]을(를) 따르지만, 예외 처리 측면에서 크게 다릅니다 [SWS_CORE_06503].

사용법 및 매개변수

호출은 bytes(요청할 바이트 수) 및 기본적으로 alignof(std::max_align_t)(으)로 설정된 선택적 매개변수 alignment을(를) 통해 동기적으로 수행됩니다 [SWS_CORE_06503]. 반환값에는 [[nodiscard]] 속성이 부여되어 있으므로 호출자는 제공된 void* 타입의 포인터를 반드시 평가해야 합니다 [SWS_CORE_06503].

오류 처리 및 예외 안전성

기본 동작과 달리 이 함수는 오류 발생 시 std::bad_alloc 타입의 예외를 발생시키지 않고 noexcept(으)로 선언되며 예외 안전(exception safe)한 것으로 간주됩니다 [SWS_CORE_06503]:

  • 성공: [mem.res]에 따라 할당된 메모리 영역에 대한 유효한 포인터를 반환합니다 [SWS_CORE_06503].
  • 실패: 메모리 할당이 실패하면 함수는 대신 nullptr을(를) 반환합니다 [SWS_CORE_06503]. 따라서 호출자는 항상 결과를 널 포인터인지 명시적으로 확인해야 합니다.

동시성 및 상호 작용

이 함수는 스레드 안전하지 않음(not thread-safe)으로 명시되어 있습니다 [SWS_CORE_06503]. 따라서 MemoryResource의 동일한 인스턴스에 대한 병렬 호출은 호출자에 의한 외부 동기화가 필요합니다. 이러한 내결함성 예외 없는 패턴은 AUTOSAR Adaptive의 다른 메모리 컴포넌트에서도 일관되게 발견됩니다. 예를 들어 ara::core::PolymorphicAllocator::allocate은(는) 예외 없이 동일한 방식을 사용하며 [SWS_CORE_06547], 특수 인스턴스 NullMemoryResource 또한 nullptr을(를) 반환하여 메모리 고갈을 알립니다 [SWS_CORE_06563].

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

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

Rückgabewert

TypBeschreibung
void *• If successful: As per corresponding usage in [mem.res] • 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_06503
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06503@rel:R25-11#ad7ea036
Content hash
ad7ea036
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06503
Status: valid/unmigrated Version: rel:R25-11#8ff560e7 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_06503@rel:R25-11#8ff560e7
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1fa3c3192026-09-30
  • R23-11rel:R23-11#a898640f2026-10-14
  • R24-11rel:R24-11#f8eb1c392026-10-14
  • R25-11rel:R25-11#8ff560e72026-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_06504]

void deallocate (void *p, std::size_t bytes, std::size_t alignment=max_align) noexcept;

As per corresponding usage in [mem.res] 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 · 온도: 제어 불가 · 프롬프트: 65d739156bbe 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::core::MemoryResource 클래스의 deallocate 함수는 [SWS_CORE_06504]에 따라 메모리 영역을 해제하는 역할을 합니다. 사용법은 기본적으로 [mem.res]의 표준 동작을 따르지만 특정한 차이점이 있습니다. 호출은 void deallocate(void *p, std::size_t bytes, std::size_t alignment=max_align) noexcept 시그니처를 통해 동기식으로 수행되며, 해제할 블록을 가리키는 포인터 p, 크기 bytes 및 선택적으로 정렬이 전달됩니다 [SWS_CORE_06504].

오류 동작과 관련하여 이 함수는 noexcept 및 예외 안전(exception safe)으로 명시되어 있습니다 [SWS_CORE_06504]. 해제가 실패할 경우 오류는 조용히 무시됩니다(errors will be silently ignored) [SWS_CORE_06504]. 예외가 발생하지 않으며 DET 또는 DEM을 통해 오류 메시지가 출력되지 않습니다.

동시성과 관련하여 이 함수는 명시적으로 스레드 안전하지 않음(not thread-safe)으로 분류되어 있습니다 [SWS_CORE_06504]. 따라서 동일한 리소스 인스턴스에 대한 동시 액세스는 호출자가 외부에서 동기화해야 합니다.

할당자 개념과의 상호작용 측면에서 이 함수는 [SWS_CORE_06548]에 정의된 ara::core::PolymorphicAllocator 클래스의 형식화된 인터페이스 deallocate과(와) 일치하며, 이는 noexcept 및 자동 오류 처리와 관련하여 유사한 차이점을 보입니다.

이 사용 지침은 AI 큐레이션 어시스턴트에 의해 자동으로 생성되었으며, 전적으로 AUTOSAR R25-11의 명세 데이터만을 기반으로 합니다.

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::MemoryResource
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_06504
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06504@rel:R25-11#32e8e06b
Content hash
32e8e06b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06504
Status: valid/unmigrated Version: rel:R25-11#6dfbadd7 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_06504@rel:R25-11#6dfbadd7
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#9fe074b52026-09-30
  • R23-11rel:R23-11#99cc78692026-10-14
  • R24-11rel:R24-11#8ebb7f8c2026-10-14
  • R25-11rel:R25-11#6dfbadd72026-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

함수 do_ [SWS_CORE_06566]

virtual void * do_allocate (std::size_t bytes, std::size_t alignment) noexcept=0;

As per corresponding usage in [mem.res] in [15] except for the following deviations: 1. The function is noexcept 2. The function returns nullptr instead of (potentially) throwing a std::bad_alloc exception

Literaturverzeichnis SWS Core: [15] ISO/IEC 14882:2020, Programming languages – C++ – www.iso.org

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

ara::core::MemoryResource 클래스의 순수 가상 메서드 do_allocate은(는) 지정된 바이트 크기 및 정렬을 갖는 메모리 블록을 할당하는 데 사용됩니다[SWS_CORE_06566]. 매개변수로 바이트 수(bytes) 및 요구되는 정렬(alignment)을 받습니다. 성공적으로 할당되면 예약된 메모리 영역에 대한 void * 타입의 포인터를 동기식으로 반환합니다[SWS_CORE_06566].

오류 처리와 관련하여 이 함수는 일반적인 C++ 표준에서 의도적으로 벗어납니다. noexcept(으)로 선언되어 실패 시 std::bad_alloc 예외를 발생시키지 않고 대신 nullptr을(를) 반환합니다[SWS_CORE_06566]. 따라서 호출자는 할당 결과를 항상 널 포인터인지 확인해야 합니다.

동시성과 관련하여 이 메서드는 not thread-safe로 지정되어 있습니다[SWS_CORE_06566]. 파생 구현이 자체 보호를 제공하지 않는 한, 동일한 인스턴스를 통한 병렬 호출에는 외부 동기화가 필요합니다. private 가시성으로 인해 사용자에 의한 호출은 일반적으로 기반 클래스의 상위 인터페이스를 통해 간접적으로 수행될 것으로 보입니다. 질문 Q-5cbdabf121ed4550 (열림)

메모리 관리의 상호 작용에서 이 메서드는 할당된 메모리 해제를 담당하고 오류를 암묵적으로 무시하는 do_deallocate의 직접적인 대응 요소입니다[SWS_CORE_06567]. 또한 비교 함수 do_is_equal은(는) 할당 및 해제와 관련하여 두 리소스 인스턴스가 서로 호환되는지 확인합니다[SWS_CORE_06568].

이 사용 지침은 명세를 기반으로 자동 생성되었습니다.

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

Rückgabewert

TypBeschreibung
void *• If successful: As per corresponding usage in [mem.res] • 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_06566
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06566@rel:R25-11#d3f010e6
Content hash
d3f010e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06566
Status: valid/unmigrated Version: rel:R25-11#f000b35f 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_06566@rel:R25-11#f000b35f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b88f78552026-09-30
  • R24-11rel:R24-11#1a8107de2026-10-14
  • R25-11rel:R25-11#f000b35f2026-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

함수 do_ [SWS_CORE_06567]

virtual void do_deallocate (void *p, std::size_t bytes, std::size_t alignment) noexcept=0;

As per corresponding usage in [mem.res] 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 · 온도: 제어 불가 · 프롬프트: fca1a9bccecb 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::core::MemoryResource 클래스의 순수 가상 멤버 함수 do_deallocate(ara/core/memory_resource.h에 선언됨)은 [SWS_CORE_06567]에 따라 이전에 예약된 메모리를 해제하는 데 사용됩니다. 이 함수는 메모리 영역에 대한 포인터 p, 해당 크기 bytes 및 요구되는 정렬 alignment을(를) 받습니다. 시맨틱은 기본적으로 C++ 표준 [mem.res]에 해당하지만, 두 가지 중요한 Adaptive 전용 편차를 보입니다[SWS_CORE_06567].

첫째, 이 함수는 noexcept(으)로 선언되어 있으며 예외 안전성(exception safe)을 보장합니다[SWS_CORE_06567]. 둘째, 해제 중 발생하는 모든 오류는 암묵적으로 무시되므로 실패한 연산이 오류 메시지를 트리거하거나 프로그램 흐름을 중단해서는 안 됩니다[SWS_CORE_06567].

동시성과 관련하여 do_deallocate은(는) not thread-safe(으)로 지정되어 있으며 private 가시성을 갖습니다[SWS_CORE_06567]. 다형성 메모리 리소스의 구현 세부사항으로서 상위 공개 호출 인터페이스를 통해 동기식으로 실행될 것으로 보입니다. 질문 Q-3f97e122ee7fb281 (열림) 동일한 리소스에 대한 경쟁적 해제는 필요한 경우 파생 클래스에서 독립적으로 동기화되어야 합니다.

core 모듈에서 이 함수는 오류 시 예외 대신 nullptr을(를) 반환하는 할당 do_allocate [SWS_CORE_06566]의 대응 요소입니다. 다른 리소스와의 비교는 할당 해제와 달리 명시적으로 thread-safe(으)로 정의된 do_is_equal [SWS_CORE_06568] 메서드를 통해 수행됩니다.

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

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

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

Record
AUTOSAR/AP/record/SWS_CORE_06567
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06567@rel:R25-11#92db9420
Content hash
92db9420
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06567
Status: valid/unmigrated Version: rel:R25-11#d951e36f 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_06567@rel:R25-11#d951e36f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7bf9805c2026-09-30
  • R24-11rel:R24-11#3e71af902026-10-14
  • R25-11rel:R25-11#d951e36f2026-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

함수 do_ [SWS_CORE_06568]

virtual bool do_is_equal (const MemoryResource &other) const noexcept=0;

As per corresponding usage in [mem.res]

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

순수 가상 멤버 함수 do_is_equal은(는) ara::core::MemoryResource의 네임스페이스 내 헤더 #include "ara/core/memory_resource.h"에 선언되어 있습니다([SWS_CORE_06568]). 이 함수는 C++ 사양 [mem.res]에 따라 현재 메모리 리소스와 전달된 참조 const MemoryResource &other의 일치 여부를 동기식으로 비교하는 데 사용됩니다([SWS_CORE_06568]). 이 메서드는 private 가시성(private)으로 정의되어 있으므로 해당 호출은 구현 세부사항으로서 ara::core::MemoryResource 클래스의 공개 인터페이스를 통해 다형적으로 처리될 것으로 보입니다([SWS_CORE_06568]). 질문 Q-cbe02f652b43d6ec (열림)

실행 및 오류 안전성과 관련하여 do_is_equal은(는) exception safe 및 noexcept(으)로 선언되어 있습니다([SWS_CORE_06568]). 따라서 어떠한 경우에도 예외를 발생시켜서는 안 되며 결과를 불리언 반환값을 통해 직접 알립니다([SWS_CORE_06568]). 또한 이 메서드는 thread-safe(으)로 지정되어 있으므로 파생 구현은 동시 비교 시에도 스레드 안전성을 보장해야 합니다([SWS_CORE_06568]).

메모리 관리의 다른 가상 메서드들과의 상호 작용에서 do_is_equal은(는) 파생 리소스 클래스의 커스터마이징 포인트 3인조를 완성합니다([SWS_CORE_06568]). 메모리 할당 do_allocate은(는) 오류 시 nullptr을(를) 반환하고([SWS_CORE_06566]) do_deallocate은(는) 오류를 암묵적으로 무시하는 반면([SWS_CORE_06567]), 두 함수는 모두 do_is_equal과(와) 달리 스레드 안전하지 않음(not thread-safe)(으)로 지정되어 있습니다([SWS_CORE_06566], [SWS_CORE_06567]). 이는 동시 리소스 비교를 보호해야 하는 do_is_equal의 특별한 요구사항을 강조합니다([SWS_CORE_06568]).

이 텍스트는 AI에 의해 생성되었으며 AUTOSAR 사양을 기반으로 한 사용 지침의 역할을 합니다.

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

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

Record
AUTOSAR/AP/record/SWS_CORE_06568
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06568@rel:R25-11#c925c52b
Content hash
c925c52b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06568
Status: valid/unmigrated Version: rel:R25-11#2eae7169 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_06568@rel:R25-11#2eae7169
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6efe7dbb2026-09-30
  • R24-11rel:R24-11#111ffd482026-10-14
  • R25-11rel:R25-11#2eae71692026-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

함수 is_ [SWS_CORE_06505]

bool is_equal (const MemoryResource &other) const noexcept;

As per corresponding usage in [mem.res]

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::MemoryResource
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_06505
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06505@rel:R25-11#9e84e7d1
Content hash
9e84e7d1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06505
Status: valid/unmigrated Version: rel:R25-11#fe89774e 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_06505@rel:R25-11#fe89774e
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1cb798172026-09-30
  • R23-11rel:R23-11#f33063dc2026-10-14
  • R24-11rel:R24-11#657307fe2026-10-14
  • R25-11rel:R25-11#fe89774e2026-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_06507] Upstream: RS_AP_00130

MemoryResource & operator= (const MemoryResource &other) noexcept=default;

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

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

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

Record
AUTOSAR/AP/record/SWS_CORE_06507
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06507@rel:R25-11#fe8733fa
Content hash
fe8733fa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06507
Status: valid/unmigrated Version: rel:R25-11#63abe892 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_06507@rel:R25-11#63abe892
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#653993ea2026-09-30
  • R23-11rel:R23-11#af6672232026-10-14
  • R24-11rel:R24-11#85add1f52026-10-14
  • R25-11rel:R25-11#63abe8922026-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_06575] Upstream: RS_AP_00145

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

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

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

Parameter (in)

ParameterBeschreibung
otherother MemoryResource to move from

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

Record
AUTOSAR/AP/record/SWS_CORE_06575
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06575@rel:R25-11#8717eb98
Content hash
8717eb98
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06575
Status: valid/unmigrated Version: rel:R25-11#8fb64462 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_06575@rel:R25-11#8fb64462
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#948a97b32026-09-30
  • R24-11rel:R24-11#617a865d2026-10-14
  • R25-11rel:R25-11#8fb644622026-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

함수 ~MemoryResource [SWS_CORE_06506]

virtual ~MemoryResource () noexcept;

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

Header-Datei#include "ara/core/memory_resource.h"
Scopeclass ara::core::MemoryResource
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_06506
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06506@rel:R25-11#beb624f9
Content hash
beb624f9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06506
Status: valid/unmigrated Version: rel:R25-11#2e224948 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_06506@rel:R25-11#2e224948
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1cb788282026-09-30
  • R23-11rel:R23-11#2af784a02026-10-14
  • R24-11rel:R24-11#5a037c852026-10-14
  • R25-11rel:R25-11#2e2249482026-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