Template Function Pennylane::getAllocator

Function Documentation

template<class T>
constexpr auto Pennylane::getAllocator(CPUMemoryModel memory_model) -> Util::AlignedAllocator<T>

Get a corresponding allocator for standard library containers.

Template Parameters

T – Data type