utility Namespace Reference

utility Namespace Reference#

Rocprofiler SDK Developer API: rocprofiler::sdk::utility Namespace Reference
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
rocprofiler::sdk::utility Namespace Reference

Data Structures

struct  name_info
 
struct  name_info_impl
 

Functions

template<typename Tp >
auto as_hex (Tp val, unsigned long width=0)
 

Function Documentation

◆ as_hex()

template<typename Tp >
auto rocprofiler::sdk::utility::as_hex ( Tp  val,
unsigned long  width = 0 
)

Definition at line 37 of file utility.hpp.

38{
39 auto ss = std::stringstream{};
40 ss << "0x" << std::hex << std::setfill('0') << std::setw(width) << val;
41 return ss.str();
42}

Referenced by cereal::save(), and cereal::save().

+ Here is the caller graph for this function: