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

Method try_push

Source/external/fast_float.h:1909–1916  ·  view source on GitHub ↗

append item to vector, returning if item was added

Source from the content-addressed store, hash-verified

1907 }
1908 // append item to vector, returning if item was added
1909 FASTFLOAT_CONSTEXPR14 bool try_push(limb value) noexcept {
1910 if (len() < capacity()) {
1911 push_unchecked(value);
1912 return true;
1913 } else {
1914 return false;
1915 }
1916 }
1917 // add items to the vector, from a span, without bounds checking
1918 FASTFLOAT_CONSTEXPR20 void extend_unchecked(limb_span s) noexcept {
1919 limb* ptr = data + length;

Callers 3

small_add_fromFunction · 0.80
small_mulFunction · 0.80
shl_bitsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected