PLCnext API Documentation 25.0.2.69
format_cast.hxx
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include <cctype>
9#include <utility>
10
11namespace Arp
12{
13
14template<typename T>
15inline auto format_cast(T&& value)
16{
17 return std::forward<T>(value);
18}
19
20inline auto format_cast(int8 value)
21{
22 return static_cast<int>(value);
23}
24
25inline auto format_cast(uint8 value)
26{
27 return static_cast<unsigned int>(value);
28}
29
30} // end of namespace Arp
31
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