xieite ::as <>
Defined in header <xieite/fn/as.hpp>
A functor for casting something implicitly.
Declarations
Implicitly casts something to another type.template <typename T >constexpr auto as = [][[nodiscard ]](std ::type_identity_t <T >x )static noexcept {return x ; };
Example
Output:int main () {int x =5 ;auto y =xieite ::as <double >(x );xieite ::dump (y ); }
[View in Compiler Explorer]5