[*] ...and reserve
This commit is contained in:
parent
bc1f673881
commit
47f9d09cd8
@ -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>)
|
||||
|
Loading…
Reference in New Issue
Block a user