PrevUpHomeNext

utx::real_uct


utx::real_uct

utx::real_uct is the concept of utxcpp basic class types of real number types. See Utxcpp class types .

The basic class types of utxcpp that satisfy utx::real_uct are the classes of integral and floating types.

"real" means the real number in math.

Example

c++ example.

#include <utxcpp/core.hpp>

template <utx::real_uct type_xta>
class my_data
{
};

int main()
{
	my_data<utx::ix32> d1;	// OK
	//my_data<utx::i32> d2;	// error, utx::i32 is not class type.
	static_assert(utx::real_uct<utx::ix32>);
	utx::print(utx::real_uct<utx::ix32>, utx::real_uct<utx::i32>);	// true false
}

See also

utx::real_meric

utx::real_number

utx::ix32 utx::i32

utx::ux32 utx::u32

utx::ix64 utx::i64

utx::ux64 utx::u64

utx::fx32 utx::f32

utx::fx64 utx::f64

utx::print


PrevUpHomeNext

utx::print

esv::print