Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 958 Bytes

op_not_equal.md

File metadata and controls

65 lines (48 loc) · 958 Bytes

operator!=

  • random[meta header]
  • std[meta namespace]
  • function template[meta id-type]
  • cpp11[meta cpp]
namespace std {
  template <class RealType>
  bool operator!=(
    const extreme_value_distribution<RealType>& a,
    const extreme_value_distribution<RealType>& b);
}

概要

非等値比較を行う。

戻り値

!(a == b)

計算量

定数時間

#include <iostream>
#include <random>

int main()
{
  std::extreme_value_distribution<> a(0.0, 1.0);
  std::extreme_value_distribution<> b(0.5, 1.0);

  if (a != b) {
    std::cout << "not equal" << std::endl;
  }
  else {
    std::cout << "equal" << std::endl;
  }
}

出力

not equal

バージョン

言語

  • C++11

処理系

参照