Check out example codes for "use c++17 g++". It will help you in understanding the concepts better.

Code Example 1

g++ -std=c++1z

Learn ReactJs, React Native from akashmittal.com