Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.12 KB

File metadata and controls

59 lines (42 loc) · 1.12 KB

max

  • random[meta header]
  • std[meta namespace]
  • normal_distribution[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
result_type max() const;

概要

生成し得る値の上限を取得する。

戻り値

値の範囲の上限を返す。

備考

#include <iostream>
#include <random>

int main()
{
  std::normal_distribution<> dist(0.0, 1.0);

  double max_val = dist.max();
  std::cout << max_val << std::endl;
}
  • max()[color ff0000]

出力例

inf

バージョン

言語

  • C++11

処理系

参照