User nullptr and foreach from C++11

- User nullptr and foreach from C++11