QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
quickcpplib::_xxx::detach_cast::detail Namespace Reference

Classes

struct  bit_castable_overload
 
struct  byte_array_wrapper
 
struct  reinterpret_cast_overload
 

Functions

template<class To , class From , typename = decltype( quickcpplib::_xxx ::bit_cast::bit_cast<To, From>(std::declval<From>()) )>
constexpr bool _is_bit_cast_valid (int)
 
template<class To , class From >
constexpr bool _is_bit_cast_valid (...)
 
template<class To , class From >
constexpr bool is_bit_cast_valid ()
 

Function Documentation

◆ _is_bit_cast_valid() [1/2]

template<class To , class From , typename = decltype( quickcpplib::_xxx ::bit_cast::bit_cast<To, From>(std::declval<From>()) )>
constexpr bool quickcpplib::_xxx::detach_cast::detail::_is_bit_cast_valid ( int  )
inlineconstexpr
69 {
70 return true;
71 };

◆ _is_bit_cast_valid() [2/2]

template<class To , class From >
constexpr bool quickcpplib::_xxx::detach_cast::detail::_is_bit_cast_valid (   ...)
inlineconstexpr
74 {
75 return false;
76 };

◆ is_bit_cast_valid()

template<class To , class From >
constexpr bool quickcpplib::_xxx::detach_cast::detail::is_bit_cast_valid ( )
inlineconstexpr
79 {
80 return _is_bit_cast_valid<To, From>(5);
81 };