MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / try_extend

Method try_extend

external/include/fast_float/fast_float.h:1747–1754  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers 1

long_mulFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected