MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / reinterpret_bits

Function reinterpret_bits

external/json/json.hpp:9716–9723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9714
9715template <typename Target, typename Source>
9716Target reinterpret_bits(const Source source)
9717{
9718 static_assert(sizeof(Target) == sizeof(Source), "size mismatch");
9719
9720 Target target;
9721 std::memcpy(&target, &source, sizeof(Source));
9722 return target;
9723}
9724
9725struct diyfp // f * 2^e
9726{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected