size from class fcf::TypeInfo
Property: size
Type:
Class:
Package: fcfBasis
File: bits/PartType/TypeInfoDefinition.hpp
Available from version: 1.0.1
The size of a data type in bytes.
For reference types, the size returned is the size of a pointer.
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 size: " << ti->size << std::endl;
}
return 0;
}
Output:
int type size: 4
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.