MCPcopy Create free account
hub / github.com/boostorg/json / release_key

Method release_key

include/boost/json/detail/string_impl.hpp:225–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 std::size_t capacity);
224
225 char const*
226 release_key(
227 std::size_t& n) noexcept
228 {
229 BOOST_ASSERT(
230 k_.k == key_string_);
231 n = k_.n;
232 auto const s = k_.s;
233 // prevent deallocate
234 k_.k = short_string_;
235 return s;
236 }
237
238 void
239 destroy(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected