try to add items to the vector, returning if items were added
| 1922 | } |
| 1923 | // try to add items to the vector, returning if items were added |
| 1924 | FASTFLOAT_CONSTEXPR20 bool try_extend(limb_span s) noexcept { |
| 1925 | if (len() + s.len() <= capacity()) { |
| 1926 | extend_unchecked(s); |
| 1927 | return true; |
| 1928 | } else { |
| 1929 | return false; |
| 1930 | } |
| 1931 | } |
| 1932 | // resize the vector, without bounds checking |
| 1933 | // if the new size is longer than the vector, assign value to each |
| 1934 | // appended item. |