C++ Template generic listmap