half_caster< T, U, R > Struct Template Reference

half_caster&lt; T, U, R &gt; Struct Template Reference#

half: half_float::detail::half_caster< T, U, R > Struct Template Reference
half_float::detail::half_caster< T, U, R > Struct Template Reference

Helper class for half casts. More...

#include <half.hpp>

Inherited by half_float::detail::half_caster< half, expr, R >.

Detailed Description

template<typename T, typename U, std::float_round_style R = (std::float_round_style)( -1 )>
struct half_float::detail::half_caster< T, U, R >

Helper class for half casts.

This class template has to be specialized for all valid cast argument to define an appropriate static cast member function and a corresponding type member denoting its return type.

Template Parameters
Tdestination type
Usource type
Rrounding mode to use

Definition at line 2067 of file half.hpp.


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-half/checkouts/latest/include/half.hpp