Home | History | Annotate | Download | only in utility

Lines Matching refs:destination

45  * The source and the destination must have the same storage size (e.g. copying
49 * @tparam Destination the destination type (even if it is a reference, this
52 * @returns the source, reinterpreted as the destination type
54 template <class Destination, class Source>
55 typename std::remove_reference<Destination>::type binaryCopy(const Source source)
57 static_assert(sizeof(Source) == sizeof(Destination),
58 "Source and Destination must have the same size");
60 using Destination_ = decltype(binaryCopy<Destination>(source));
65 Destination_ destination;
69 return hack.destination;