ATLAS Offline Software
Loading...
Searching...
No Matches
IMemoryResourceProvider.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4#ifndef ATHDEVICEINTERFACES_IMEMORYRESOURCEPROVIDER_H
5#define ATHDEVICEINTERFACES_IMEMORYRESOURCEPROVIDER_H
6
7// System include(s).
8#include <memory_resource>
9
10namespace AthDevice {
11
14
15 public:
17 virtual ~IMemoryResourceProvider() = default;
18
20 virtual std::pmr::memory_resource& mr() const = 0;
21
22}; // class IMemoryResourceProvider
23
24} // namespace AthDevice
25
26#endif // ATHDEVICEINTERFACES_IMEMORYRESOURCEPROVIDER_H
Interface for a component that provides a "memory resource".
virtual std::pmr::memory_resource & mr() const =0
Get the provided std::pmr::memory_resource object.
virtual ~IMemoryResourceProvider()=default
Destructor.