Can I use the STL <list> and <iterator> libraries with the mbed framework?

I am getting some weird behaviour using the iterator objects. I wrote a bunch of tests to ensure my logic was sound but since the tests are running on my mac book and not my target MCU (stm32f401re) I am starting to think the compiler is doing some c++ things?

So simple question:

Can I use the std::list library and the std::iterator with the mbed framework?