MCPcopy Create free account
hub / github.com/celtera/libremidi / copy_construct

Method copy_construct

include/libremidi/system_error2.hpp:1459–1465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457 }
1458
1459 static string_ref::state_type copy_construct(const string_ref& base) noexcept
1460 {
1461 const shared_string_ref& s = static_cast<const shared_string_ref&>(base);
1462 const string_arena_base* a = s.get_arena();
1463 if (a) a->ref_count.fetch_add(1, std::memory_order_relaxed);
1464 return s.state();
1465 }
1466
1467 static string_ref::state_type move_construct(string_ref&& base) noexcept
1468 {

Callers

nothing calls this directly

Calls 2

get_arenaMethod · 0.80
stateMethod · 0.80

Tested by

no test coverage detected