Skip to content

Function safe_cast

function safe_cast(const InType &) test

template <typename OutType, typename InType>
inline OutType safe_cast(const InType& val)

Casts between integral types after range-checking the source value.

Template parameters
OutType Destination integral type.
InType Source integral type.
Parameters
val Value to convert.
Returns
val converted to OutType via static_cast.

Fully qualified name: kfr::safe_cast(const InType &)

Declared at test/assert.hpp:171

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.