try to add items to the vector, returning if items were added
| 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 |