Check out example codes for "check compiler version c++". It will help you in understanding the concepts better.

Code Example 1

#include <iostream> #include <typeinfo>  int main() {     if (__cplusplus == 201703L) std::cout << "C++17\n";     else if (__cplusplus == 201402L) std::cout << "C++14\n";     else if (__cplusplus == 201103L) std::cout << "C++11\n";     else if (__cplusplus == 199711L) std::cout << "C++98\n";     else std::cout << "pre-standard C++\n";  }</textarea>          <div class="answer_source">Source: <a target="_blank" href="https://stackoverflow.com/questions/2324658/how-to-determine-the-version-of-the-c-standard-used-by-the-compiler">stackoverflow.com</a></div>         <br/>

Learn ReactJs, React Native from akashmittal.com