30 lines
723 B
C++
30 lines
723 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: auList.hpp
|
||
|
Date: 2022-2-1
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
#if !defined(AURORA_RUNTIME_AU_LIST)
|
||
|
#define AURORA_RUNTIME_AU_LIST std::vector
|
||
|
#endif
|
||
|
|
||
|
#if defined(_CPPSHARP) || defined(_AURORA_NO_SPECIAL_ARRAY_OPTIMIAZATION) || (!defined(_AUHAS_AURORARUNTIME) && !defined(AURORA_ENGINE_KERNEL))
|
||
|
|
||
|
template<typename T>
|
||
|
using AuList = AURORA_RUNTIME_AU_LIST<T>;
|
||
|
|
||
|
#else
|
||
|
|
||
|
namespace Aurora::Memory
|
||
|
{
|
||
|
template<class T>
|
||
|
struct SpeedyArrayAllocator;
|
||
|
}
|
||
|
|
||
|
template<typename T>
|
||
|
using AuList = AuConditional_t<AuIsClass_v<T>, AURORA_RUNTIME_AU_LIST<T>, AURORA_RUNTIME_AU_LIST<T, Aurora::Memory::SpeedyArrayAllocator<T>>>;
|
||
|
|
||
|
#endif
|