test/numeric_limits.cpp
Go to the documentation of this file.
1 
9 /*****************************************************************************
10 ** Includes
11 *****************************************************************************/
12 
13 #include <iostream>
14 #include <gtest/gtest.h>
15 #include <float.h>
16 #include "../../include/ecl/type_traits/numeric_limits.hpp"
17 
18 /*****************************************************************************
19 ** Main
20 *****************************************************************************/
21 
22 int main(int argc, char **argv) {
23 
24  std::cout << "Sizeof Float: " << __SIZEOF_FLOAT__ << std::endl;
25  std::cout << "Sizeof Double: " << __SIZEOF_DOUBLE__ << std::endl;
26  std::cout << "Sizeof Long Double: " << __SIZEOF_LONG_DOUBLE__ << std::endl;
28  std::cout << i << std::endl;
30  std::cout << i << std::endl;
32 // std::cout << i << std::endl;
33 // i = ecl::numeric_limits<unsigned char>::max();
34 // std::cout << i << std::endl;
35 // int bytes = ecl::numeric_limits<unsigned char>::bytes;
36 // std::cout << "Bytes: " << bytes << std::endl;
37 //
38 // bytes = ecl::numeric_limits<ecl::uint16>::bytes;
39 // std::cout << "Bytes: " << bytes << std::endl;
40 // int maximum = ecl::numeric_limits<ecl::uint16>::maximum;
41 // std::cout << "Max: " << maximum << std::endl;
42 
43 // std::cout << 5 ULL << std::endl;
44  testing::InitGoogleTest(&argc,argv);
45  return RUN_ALL_TESTS();
46 }
47 
48 
int main(int argc, char **argv)
Expands the std numeric_limits class.


ecl_type_traits
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:18