最終更新日時(UTC): 2024年06月11日 13時45分38秒 Akira Takahashi が更新
履歴 編集
namespace std { bool operator!=( const bernoulli_distribution& a, const bernoulli_distribution& b); }
非等値比較を行う。
!(a == b)
定数時間
#include <iostream> #include <random> int main() { std::bernoulli_distribution a(0.5); std::bernoulli_distribution b(0.7); if (a != b) { std::cout << "not equal" << std::endl; } else { std::cout << "equal" << std::endl; } }
not equal