Template Function Pennylane::Util::getAllocator¶
Defined in File CPUMemoryModel.hpp
Function Documentation¶
-
template<class T>
constexpr auto Pennylane::Util::getAllocator(CPUMemoryModel memory_model) -> Util::AlignedAllocator<T>¶ Get a corresponding allocator for standard library containers.
- Template Parameters
T – Data type