ATLAS Offline Software
Loading...
Searching...
No Matches
HexString.h File Reference

Provides a utility class to format integral types as hexadecimal strings at compile time or with VERY high performance at runtime. More...

#include <string_view>
#include <type_traits>
Include dependency graph for HexString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CxxUtils::detail::FixedString< N >
 Helper structure to allow string literals to be passed as non-type template parameters. More...
class  CxxUtils::detail::BasicHexString< FormatStr, Digits >
 A class that formats an integer as a hexadecimal string embedded within a format string. More...

Namespaces

namespace  CxxUtils
namespace  CxxUtils::detail

Typedefs

template<detail::FixedString FormatStr>
using CxxUtils::HexString = detail::BasicHexString<FormatStr, detail::UpperHexDigits>
template<detail::FixedString FormatStr>
using CxxUtils::hexstring = detail::BasicHexString<FormatStr, detail::LowerHexDigits>

Variables

constexpr char CxxUtils::detail::UpperHexDigits [] = "0123456789ABCDEF"
constexpr char CxxUtils::detail::LowerHexDigits [] = "0123456789abcdef"

Detailed Description

Provides a utility class to format integral types as hexadecimal strings at compile time or with VERY high performance at runtime.

It should be prefered over std::format in well-understood hot pathways.

Definition in file HexString.h.