specifiers from class fcf::TypeInfo
Property: specifiers
Type:
Class:
Package: fcfBasis
File: bits/PartType/TypeInfoDefinition.hpp
Available from version: 1.0.1
Registered specifiers (e.g., Less, Equal, Add) for this type
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 ();
fcf::TypeIndex lessSpecifierTypeId = fcf::Type <fcf::LessSpecifier >().index ();
const fcf::SpecifierInfo & si = ti->specifiers .find(lessSpecifierTypeId)->second;
fcf::LessSpecifier::CallType call = (fcf::LessSpecifier::CallType )si.call ;
int left = 1;
int right = 2;
bool lessValue = call(&left, &right);
std::cout << "1 < 2: " << lessValue << std::endl;
return 0;
}
Output:
1 < 2: 1
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.