C++ for host_fill