A standard defines what is and what is not valid C++ code.
There are multiple standards:
The C++14 working draft of the Standard () can be downloaded freely and legally at the GitHub of the next C++ Standard its working draft.
- Working Draft, Standard for Programming Language C++. 2014-08-22. N3936.