Skip to content

Function compiletime::trunc

function trunc(T) math

template <typename T>
constexpr inline T trunc(T x) { … }

Compile-time truncation toward zero.

Template parameters
T Value type (must be representable as a long long).
Parameters
x Value to truncate.
Returns
x truncated to an integer of type T.

Fully qualified name: kfr::compiletime::trunc(T)

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