FCF 2.0 development in progress...
> > > > > >
[News] [C++ Libraries API] [C++ Downloads] [Donate to the project] [Contacts]

name from class fcf::TypeInfo

Property: name

Type: std::string

Class: fcf::TypeInfo

Package: fcfBasis

File: bits/PartType/TypeInfoDefinition.hpp

Available from version: 1.0.1

The human-readable name of the type.

This name must be unique in the fcf type system.

Example:

#include <iostream> // Define an implementation macro to include the implementation section in header files #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; }

Output:

int type name: int std::list<std::string> type name: std::list<std::string>