目录

domain_error

描述 (Description)

它是域错误异常。数学函数的域是为其定义的值的子集。 例如,平方根函数仅针对非负数定义。 因此,这种函数的负数将有资格作为域错误。

声明 (Declaration)

以下是std :: domain_error的声明。

class domain_error;

C++11

class domain_error;

参数 (Parameters)

没有

返回值 (Return Value)

没有

异常 (Exceptions)

No-throw guarantee - 没有成员抛出异常。

成员 (Members)

  • constructor - what_arg与成员返回的值具有相同的内容。

  • what - 用于获取字符串识别异常。

↑回到顶部↑
WIKI教程 @2018