C++ example for Cortex-M4 using gnu g++ compiler?

I want to build and simulate a C++ project for Cortex-M4, using the g++ arm compiler, in Arm Dev Studio.

Which example would be suitable as a template please?