#include <iostream>
using namespace std;

int main() {
	
	// nullptr が使えるようになった。
	int *ptr = nullptr;
	
	// if文で直接判断可能
	if (ptr) {
		cout << "ptr!" << endl;
	} else {
		cout << "no ptr" << endl;
	}
	
	// もちろん nullptr と比較しても可
	if (ptr != nullptr) {
		cout << "ptr!" << endl;
	} else {
		cout << "no ptr" << endl;
	}
	
	return 0;
}