The __cpluspluspreprocessor macro is defined if the compilation unit is compiled with a C++ compiler. Its value corresponds to the C++ standard that the compiler uses to compile a compilation unit.
In PowerShell, its value can quickly be printed like so:
write-output '' | g++ -dM -E -x c++ - | select-string __cplusplus # or
ech '' | g++ -dM -E -x c++ - | findstr __cplusplus # or
#include <iostream>
#include <iomanip>
int main(int argc, char* argv[]) {
// Compile with g++ -std=c++11 or g++ -std=c++14 to
// have different output.
// See also https://stackoverflow.com/a/7132549/180275
std::cout << std::setw(6) << argv[0] << ": " << __cplusplus << std::endl;
}