class invalid_argument : public logic_error {
public:
invalid_argument(const string& what_arg);
};
The class serves as the base class for all exceptions thrown to report an invalid argument. The value returned by what() is a copy of what_arg.data().