name from class fcf::TypeInfo
Property: name
Type:
Class:
Package: fcfBasis
File: bits/PartType/TypeInfoDefinition.hpp
Available from version: 1.0.1
Human-readable name of the type
Example:
#include <iostream>
#define FCF_BASIS_IMPLEMENTATION
#include <fcfBasis/basis.hpp>
int main() {
{
const fcf::TypeInfo * ti = fcf::Type <int>().typeInfo ();
std::cout << "int type name: " << ti->name << std::endl;
}
{
const fcf::TypeInfo * ti = fcf::Type < std::list<std::string> >().typeInfo ();
std::cout << "std::list<std::string> type name: " << ti->name << std::endl;
}
return 0;
}
CMakeLists.txt file:
add_executable(app main.cpp)
target_include_directories(app PRIVATE ../path_to_libraries_folder)
Output:
int type name: int
std::list<std::string> type name: std::list<std::string>
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.