10namespace Arp {
namespace Base {
namespace Core
18inline decltype(
auto) fmt_cast(T&& value)
20 return std::forward<T>(value);
28inline auto fmt_cast(
const std::shared_ptr<T>& value)
30 return static_cast<void*
>(value.get());
35inline auto fmt_cast(
const std::shared_ptr<const T>& value)
37 return static_cast<const void*
>(value.get());
41inline auto fmt_cast(
int8 value)
43 return static_cast<int>(value);
47inline auto fmt_cast(
uint8 value)
49 return static_cast<unsigned int>(value);
56inline auto fmt_cast(
byte value)
65using Arp::Base::Core::fmt_cast;
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
std::int8_t int8
The Arp integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:27
Root namespace for the PLCnext API