AuROXTL/Include/auROXTL/auList.hpp
Jamie Reece Wilson 0d01c3050d [+] AuHashMapOfHeap
[+] AuListOfHeap
[+] AuBSTOfHeap
2024-04-20 23:38:11 +01:00

29 lines
868 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
#include "auMemoryModel.hpp"
#if defined(AURORA_ROXTL_CONTAINERS_USE_PURE)
template <class T, class Allocator_t = AuConditional_t<AuIsClass_v<T>, Aurora::Memory::ClassArrayAllocator<T>, Aurora::Memory::PrimitiveArrayAllocator<T>>>
using AuList = AURORA_RUNTIME_AU_LIST<T, Allocator_t>;
#else
template <class T, class Allocator_t = AuConditional_t<AuIsClass_v<T>, Aurora::Memory::ClassArrayAllocator<T>, Aurora::Memory::PrimitiveArrayAllocator<T>>>
using AuList = AURORA_RUNTIME_AU_LIST<T, Allocator_t>;
#endif
template <class T>
using AuListOfHeap = AuList<T, Aurora::Memory::CppHeapWrapper<T>>;