#include <iostream>
#include <type_traits>
#include <cstdlib>

int main() 
{
	auto p1 = new int();
	auto p2 = std::malloc(sizeof(int));
	
	std::cout << std::boolalpha;
	
	std::cout << std::is_same<decltype(p1), int*>::value << std::endl
	          << std::is_same<decltype(p1), void*>::value << std::endl;
	
	std::cout << std::is_same<decltype(p2), int*>::value << std::endl
	          << std::is_same<decltype(p2), void*>::value << std::endl;
	          
	std::free(p2);
	delete p1;
}