24 lines
469 B
C++
24 lines
469 B
C++
|
|
#include <stdio.h>
|
|
#include <string>
|
|
#include <list>
|
|
#include <boost/array.hpp>
|
|
#include <boost/variant.hpp>
|
|
|
|
|
|
typedef boost::variant<int,long,double, const char*, _int64, std::string*, boost::array<int,128>*> tVarinat;
|
|
|
|
int main ()
|
|
{
|
|
tVarinat v;
|
|
std::list<int> l;
|
|
|
|
printf( "size %d\n", sizeof( tVarinat ) );
|
|
printf( "size %d\n", sizeof( std::string ) );
|
|
printf( "size %d\n", sizeof( l ) );
|
|
printf( "size %d\n", sizeof( boost::array<int,128> ) );
|
|
|
|
return 0;
|
|
}
|
|
|