PrevUpHomeNext

esv::ix32


Imagination will take you everywhere.

esv::ix32 - esv::i32

esv::ix32 is the esvcpp integral class type, which is the using typealias of esv::class_type. esv::ix32 is the 32-bit signed integral class type, it has all features of basic 32 bit signed integral, it can be used as int, and has more features.

esv::ix32 - esv::i32, the class type of esv::i32.

esv::ix32 supports all basic operators +, -, *, /, %, &&, || and bitwise operators +, -, *, /, <<, >>, &, |, etc.

Some special member functions for esv::class_type, is available for esv::ix32 too:

operator basic_type () operator()() .value()

Because of the "operator basic_type ()" member function, esv::ix32 can be used to assign to int, then esv::ix32 and int can be doubleaction assigned each other:

esv::ix32 x = 123;
int y = x;
esv::ix32 z = y;

esv::ix32 also has stream input and output operators: operator<< and operator>>, so std::cout, std::cin, and more other iostreams can be used on esv::ix32.

esv::ix32 c++ example

#include <esvcpp/core.hpp>

int main()
{
	esv::ix32 x = 123;
	std::cout << "x=>" << x << std::endl; // x=>123
	esv::print(x, x(), x.value()); // 123 123 123
	esv::print(x << 1); // 246
}

See Also

esv::print


PrevUpHomeNext

esv::print