C++ list comprehensions