MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / try_extend

Method try_extend

app/src/ThirdParty/fast_float.h:3505–3512  ·  view source on GitHub ↗

try to add items to the vector, returning if items were added

Source from the content-addressed store, hash-verified

3503
3504 // try to add items to the vector, returning if items were added
3505 FASTFLOAT_CONSTEXPR20 bool try_extend(limb_span s) noexcept {
3506 if (len() + s.len() <= capacity()) {
3507 extend_unchecked(s);
3508 return true;
3509 } else {
3510 return false;
3511 }
3512 }
3513
3514 // resize the vector, without bounds checking
3515 // if the new size is longer than the vector, assign value to each

Callers 1

long_mulFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected