- random[meta header]
- std[meta namespace]
- function template[meta id-type]
- cpp11[meta cpp]
namespace std {
template <class RealType>
bool operator!=(
const normal_distribution<RealType>& a,
const normal_distribution<RealType>& b);
}
非等値比較を行う。
!(a == b)
定数時間
#include <iostream>
#include <random>
int main()
{
std::normal_distribution<> a(0.0, 1.0);
std::normal_distribution<> b(0.0, 1.5);
if (a != b) {
std::cout << "not equal" << std::endl;
}
else {
std::cout << "equal" << std::endl;
}
}
not equal
- C++11
- Clang: ??
- GCC:
- GCC, C++11 mode: 4.7.2
- ICC: ??
- Visual C++: ??