xieite ::cast <>
Defined in header <xieite/fn/cast.hpp> A functor for casting something explicitly.
Declaration
template <typename T >constexpr auto cast = [][[nodiscard ]](auto&& x )XIEITE_ARROW (static_cast <T >(x ) );
Example
Output:int main () {double x =3.14159 ;auto y =xieite ::cast <int >(x );xieite ::dump (y ); }
[View in Compiler Explorer]3