FlowArithmeticCalculator
1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
misc.h
Go to the documentation of this file.
1
#ifndef MISC_H
2
#define MISC_H
3
4
#include <cstdint>
5
#include <format>
6
#include <string>
7
8
namespace
business_logic
{
15
template
<
typename
T>
16
inline
std::string
stringifyAddressOf
(
const
T* value) {
17
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
18
return
std::format(
"0x{:x}"
,
reinterpret_cast<
std::intptr_t
>
(value));
19
}
20
}
// namespace business_logic
21
22
#endif
// MISC_H
business_logic
The business logic module.
Definition
BlocksManager.cpp:3
business_logic::stringifyAddressOf
std::string stringifyAddressOf(const T *value)
Convert a pointer to a string in format "0x..." containing its hexadecimal address.
Definition
misc.h:16
src
business_logic
utils
misc.h
Generated by
1.9.8