std::wmemchr

Defined in header <cwchar> const wchar_t* wmemchr( const wchar_t* ptr, wchar_t ch, std::size_t count ); wchar_t* wmemchr( wchar_t* ptr, wchar_t ch, std::size_t count ); Locates the first occurrence of wide character ch in the initial count wide characters of the wide character array pointed to by ptr. If count is zero, the function returns a null pointer. Parameters ptr - pointer to the wide character array to be examined ch - wide character

std::weibull_distribution::weibull_distribution

explicit weibull_distribution( RealType a = 1.0, RealType b = 1.0 ); (1) (since C++11) explicit weibull_distribution( const param_type& params ); (2) (since C++11) Constructs a new distribution object. The first version uses a and b as the distribution parameters, the second version uses params as the distribution parameters. Parameters a - the a distribution parameter (shape) b - the b distribution parameter (scale) params - the distribution parameter set

std::weibull_distribution::reset

void reset(); (since C++11) Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Parameters (none). Return value (none). Complexity Constant.

std::weibull_distribution::param

param_type param() const; (1) (since C++11) void param( const param_type& params ); (2) (since C++11) Manages the associated distribution parameter set. 1) Returns the associated parameter set. 2) Sets the associated parameter set to params. Parameters params - new contents of the associated parameter set Return value 1) The associated parameter set. 2) (none). Complexity Constant.

std::weibull_distribution::min

result_type min() const; (since C++11) Returns the minimum value potentially generated by the distribution. Parameters (none). Return value The minimum value potentially generated by the distribution. Complexity Constant. See also max returns the maximum potentially generated value (public member function)

std::weibull_distribution::max

result_type max() const; (since C++11) Returns the maximum value potentially generated by the distribution. Parameters (none). Return value The maximum value potentially generated by the distribution. Complexity Constant. See also min returns the minimum potentially generated value (public member function)

std::weibull_distribution::a

RealType a() const; (1) (since C++11) RealType b() const; (2) (since C++11) Returns the parameters the distribution was constructed with. 1) Returns the a parameter. It defines the shape of the distribution. The default value is 1.0. 2) Returns the b parameter. It defines the scale of the distribution. The default value is 1.0. Parameters (none). Return value 1) The value of the a parameter. 2) The value of the b parameter. Complexity Constant. See also param

std::weibull_distribution

Defined in header <random> template< class RealType = double > class weibull_distribution; (since C++11) The weibull_distribution meets the requirements of a RandomNumberDistribution and produces random numbers according to the Weibull distribution: f(x;a,b) = ab ⎛⎜⎝ xb ⎞⎟⎠a-1 exp⎛⎜⎝-⎛⎜⎝ xb ⎞⎟⎠a⎞⎟⎠ a is the shape parameter and b the scale parameter. std::weibull_distribution satisfies RandomNumberDistribution. Template parameters RealType - The result

std::weak_ptr::weak_ptr

constexpr weak_ptr(); (1) (since C++11) weak_ptr( const weak_ptr& r ); (2) (since C++11) template< class Y > weak_ptr( const weak_ptr<Y>& r ); (2) (since C++11) template< class Y > weak_ptr( const std::shared_ptr<Y>& r ); (2) (since C++11) weak_ptr( weak_ptr&& r ); (3) (since C++14) template< class Y > weak_ptr( weak_ptr<Y>&& r ); (3) (since C++14) Constructs new weak_ptr that potentially sh

std::weak_ptr::use_count

long use_count() const; (since C++11) Returns the number of shared_ptr instances that share ownership of the managed object, or ​0​ if the managed object has already been deleted, i.e. *this is empty. Parameters (none). Return value The number of shared_ptr instances sharing the ownership of the managed object. Exceptions noexcept specification: noexcept Notes expired() may be faster than use_count(). Example See also expired checks whether the referenced object