Template Function Pennylane::Util::getAllocator

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