converters from class fcf::TypeInfo
Property: converters
Type:
Class:
Package: fcfBasis
File: bits/PartType/TypeInfoDefinition.hpp
Available from version: 1.0.1
Map of conversion functions for converting FROM this type
Example:
#include <iostream>
#define FCF_BASIS_IMPLEMENTATION
#include <fcfBasis/basis.hpp>
int main() {
const fcf::TypeInfo * ti = fcf::Type <int>().typeInfo ();
int intValue = 5;
std::string strValue;
fcf::ConvertFunction convertFunction = ti->converters .find(fcf::Type < std::string >().index ())->second;
convertFunction(&strValue, &intValue, 0);
std::cout << "Converted string value: '" << strValue << "'"<< std::endl;
return 0;
}
Output:
Converted string value: '5'
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.