Harlinn.Windows 0.1
Loading...
Searching...
No Matches
half_float::detail::expr Struct Reference

#include <half.hpp>

Public Member Functions

HALF_CONSTEXPR expr (float f) HALF_NOEXCEPT
 
HALF_CONSTEXPR operator float () const HALF_NOEXCEPT
 

Private Attributes

float value_
 Internal expression value stored in single-precision.
 

Detailed Description

Temporary half-precision expression. This class represents a half-precision expression which just stores a single-precision value internally.

Constructor & Destructor Documentation

◆ expr()

HALF_CONSTEXPR half_float::detail::expr::expr ( float f)
inlineexplicit

Conversion constructor.

Parameters
fsingle-precision value to convert

Member Function Documentation

◆ operator float()

HALF_CONSTEXPR half_float::detail::expr::operator float ( ) const
inline

Conversion to single-precision.

Returns
single precision value representing expression value

Member Data Documentation

◆ value_

float half_float::detail::expr::value_
private

Internal expression value stored in single-precision.


The documentation for this struct was generated from the following file: