TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
to_char_type()
[3/4]
template<typename BasicJsonType , typename CharType >
template<typename C = CharType, enable_if_t< std::is_signed< C >::value &&std::is_unsigned< char >::value > * = nullptr>
static CharType
nlohmann::detail::binary_writer
< BasicJsonType, CharType >::to_char_type
(
std::uint8_t
x
)
inline
static
noexcept
Definition at line
15487
of file
json.hpp
.
15488
{
15489
static_assert
(
sizeof
(std::uint8_t) ==
sizeof
(CharType),
"size of CharType must be equal to std::uint8_t"
);
15490
static_assert
(std::is_trivial<CharType>::value,
"CharType must be trivial"
);
15491
CharType result;
15492
std::memcpy(&result, &x,
sizeof
(x));
15493
return
result;
15494
}
nlohmann
detail
binary_writer
Generated on Thu Apr 7 2022 14:11:00 for TerraForge3D by
1.9.3