why it's not inbuilt in C++ like java.