'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Function template truncate_cast

odtone::truncate_cast

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/cast.hpp>


template<typename T, typename U> T truncate_cast(U from);

Description

Cast operation, which can convert a class object into another class type.

[Note] Note

T and U must be an integral type.

Returns:

The converted object.


PrevUpHomeNext