mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Beefy::String changes, lambda hotswap fixes
Changed some string internals related to StringViewsma Added an "incompatible capture" error for lambdas when the captures change
This commit is contained in:
parent
767a3fafd9
commit
2f01cc14dd
25 changed files with 544 additions and 180 deletions
|
@ -483,6 +483,15 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
// template <typename TAltKey>
|
||||
// bool TryAddWith(const TAltKey& key, TKey** keyPtr, TValue** valuePtr)
|
||||
// {
|
||||
// if (!Insert(key, false, keyPtr, valuePtr))
|
||||
// return false;
|
||||
// new (*valuePtr) TValue();
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// Returns uninitialized valuePtr - must use placement new
|
||||
bool TryAddRaw(const TKey& key, TKey** keyPtr, TValue** valuePtr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue