The most up-to-date package seem to be g++-7 so that is what I would recommend. It should be alright for most of C++17.
If you need a later version you could always build and install GCC from source, but be warned, it can be a bit tricky and the build process alone can take quite a bit of time so I wouldn't recommend it unless you are an expert or absolutely need the latest features.
Ah, apparently I got too many hits when searching for "g++" so it didn't show all of them.
I don't see why you wouldn't want to install g++-9 which is the latest version.
BTW, if you would like a nice IDE to go with that, I recommend Code::Blocks. http://www.codeblocks.org/
It has a very nice editor and a lot of people like it.