| 59 | |
| 60 | template <typename T> |
| 61 | AsHexStringHelper<T> AsHexString(const T & container) |
| 62 | { |
| 63 | static_assert (sizeof(container[0]) == 1 && is_pod_v<std::decay_t<decltype(container[0])>>, "Only works on containers of byte-size PODs."); |
| 64 | |
| 65 | return AsHexStringHelper<T>{container}; |
| 66 | } |
| 67 | |
| 68 | template <typename T> |
| 69 | std::string bin(const T & value, size_t bits = sizeof(T)*8) |