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

Method extend_unchecked

Source/external/fast_float.h:1918–1922  ·  view source on GitHub ↗

add items to the vector, from a span, without bounds checking

Source from the content-addressed store, hash-verified

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;
1920 std::copy_n(s.ptr, s.len(), ptr);
1921 set_len(len() + s.len());
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()) {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected