void let::assign(X & x, const Y & y) which assign the variable x to a value y,Y let::convert(const X& x,type::As<Y>()), which return a value of type Y, from a value of type X. The empty class type::As<Y> is used to specify the output type.let or in the namespace of the data.
namespace let { void assign(X0 & x, const Y0 & y) { ... } }
If no specialization of let::assign(X& x, const Y&y) for given types X, Y is available the operator = will be used: x=y;
#include <synaps/arithm/let.h>
Here is an example of convertion from a string to an int and a double type:
int i; let::assign(i, "23432432"); double d; let::assign(d,"4343.43234");
synaps/arithm/let.h. ![]() |