Name
out_of_range class — Argument out of range
Synopsis
class out_of_range : public logic_error { public: explicit out_of_range(const string& what_arg); };
The out_of_range
class is
used when an index or similar value is out of its expected or
allowed range. For example, the at
member (of deque
, string
, and vector
) throws out_of_range
if the index is
invalid.
See Also
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.