out_of_range
描述 (Description)
它是一个超出范围的异常,标准库的某些组件(如vector,deque,string和bitset)也会抛出此类异常,以指示超出范围的参数。
声明 (Declaration)
以下是std :: out_of_range的声明。
class out_of_range;
C++11
class out_of_range;
参数 (Parameters)
没有
返回值 (Return Value)
没有
异常 (Exceptions)
No-throw guarantee - 没有成员抛出异常。
成员 (Members)
constructor - what_arg与成员返回的值具有相同的内容。
what minus; It is used to get string identifying exception.