try to add items to the vector, returning if items were added
| 1745 | } |
| 1746 | // try to add items to the vector, returning if items were added |
| 1747 | bool try_extend(limb_span s) noexcept { |
| 1748 | if (len() + s.len() <= capacity()) { |
| 1749 | extend_unchecked(s); |
| 1750 | return true; |
| 1751 | } else { |
| 1752 | return false; |
| 1753 | } |
| 1754 | } |
| 1755 | // resize the vector, without bounds checking |
| 1756 | // if the new size is longer than the vector, assign value to each |
| 1757 | // appended item. |