MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / try_extend

Method try_extend

Source/external/fast_float.h:1924–1931  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers 1

long_mulFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected