7 #ifndef FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_TYPE_CONVERSIONS_H
8 #define FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_TYPE_CONVERSIONS_H
31 std::ios_base &(* format)(std::ios_base &) = std::dec)
33 if((!std::numeric_limits<N>::is_signed && number != std::numeric_limits<N>::max())
34 || (std::numeric_limits<N>::is_signed && number != std::numeric_limits<N>::min()))
36 std::ostringstream ss;
37 ss << format << number;
50 template<
typename N>
inline bool indexIsValid(
const std::vector<N> &list, std::size_t index)
52 return index < list.size();
std::string getBinaryRepresentation(unsigned long long number, unsigned long long numberOfBits)
Definition: type_conversions.cpp:18
bool indexIsValid(const std::vector< N > &list, std::size_t index)
Definition: type_conversions.h:50
std::string getNumberAsString(N number, std::ios_base &(*format)(std::ios_base &)=std::dec)
Definition: type_conversions.h:29
Definition: archive_wrapper.h:19