std::extrem...distribution(3)
πΈ NAME πΈ
std::extreme_value_distribution::extreme_value_distribution β aka std::extreme_value_distribution::extreme_value_distribution, because this page really said the name twice and honestly? Iconic. We're on the std::extrem...distribution(3) page from the C++ Standard Library manual, and today's topic is the constructor itself, bestie π.
β¨ Synopsis β¨
Three constructor flavors, all (since C++11), all giving very specific main-character energy:
extreme_value_distribution() : extreme_value_distribution(0.0) {}
(1) (since C++11)
explicit extreme_value_distribution( RealType a, RealType b = 1.0 );
(2) (since C++11)
explicit extreme_value_distribution( const param_type& params );
(3) (since C++11)
Constructs a new distribution object. That's the whole assignment, no cap π«Ά.
(1)is the no-arg one, and its initializer callsextreme_value_distribution(0.0).(2)usesaandbas the distribution parameters.(3)usesparamsas the distribution parameters.
π Parameters π
aβ theadistribution parameter (location) πbβ thebdistribution parameter (scale) πparamsβ the distribution parameter set π
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards β periodt.
- DR:
P0935R0 - Applied to:
C++11 - Behavior as published: default constructor was
explicit - Correct behavior: made
implicit
So the default constructor got that glow-up from explicit to implicit, and we love that for it πβ¨.
Source/version shoutout: http://cppreference.com, dated 2024.06.10, on the std::extrem...distribution(3) page π
π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms