[*/+] Fix AuArray detection in some third party library by introducing AuArray<T, N>::insert(itr, copy)

[*] Rename ArrayList to AuLinkedList
This commit is contained in:
Reece Wilson 2024-11-14 13:22:12 +00:00
parent a105bdeb31
commit 75fddc41d9
3 changed files with 19 additions and 2 deletions

View File

@ -366,6 +366,22 @@ struct AuArray
return this->elements;
}
// required for MSVC std::inserter. some serialization libraries will accept this type, and then break during deserialization over this.
T *insert(T *pLocation, const T &copy)
{
// TODO: AuResetMember
*pLocation = copy;
return pLocation;
}
T *insert(T *pLocation, T &&copy)
{
// TODO: AuResetMember
*pLocation = AuMove(copy);
return pLocation;
}
// oh look, its that feature in that nearly 30 year old programming language intended to replace xerox alto's OOP language for the internet era.
AuUInt HashCode() const
{

View File

@ -1,6 +1,7 @@
/***
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: auLinkedList.hpp
File: auArrayList.hpp
Date: 2023-1-18
Author: Reece
@ -12,4 +13,4 @@
#endif
template <class T>
using AuArrayList = AURORA_RUNTIME_AU_ARRAY_LIST<T>;
using AuLinkedList = AURORA_RUNTIME_AU_ARRAY_LIST<T>;

View File

@ -170,7 +170,7 @@ namespace __audetail
#include <auROXTL/auBST.hpp>
#include <auROXTL/auVector.hpp>
#include <auROXTL/auArray.hpp>
#include <auROXTL/auArrayList.hpp>
#include <auROXTL/auLinkedList.hpp>
#include <auROXTL/auAtomic.hpp>
#include <auROXTL/MemoryModel/auMemoryView.hpp>
#include <auROXTL/auOptional.hpp>