[*] ...and reserve

This commit is contained in:
Reece Wilson 2023-08-07 23:25:02 +01:00
parent bc1f673881
commit 47f9d09cd8

View File

@ -308,13 +308,16 @@ inline bool AuTryReserve(Container &container, AuUInt uRequired)
}
}
AUROXTL_COMMODITY_TRY
if constexpr (__audetail::AuHasreserve_v<Container>)
{
container.reserve(uRequired);
}
AUROXTL_COMMODITY_CATCH
{
return false;
AUROXTL_COMMODITY_TRY
{
container.reserve(uRequired);
}
AUROXTL_COMMODITY_CATCH
{
return false;
}
}
if constexpr (__audetail::AuHascapacity_v<Container>)