std::gamma_distribution::gamma_distribution

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

std::gamma_distribution::alpha

RealType alpha() const; (1) (since C++11) RealType beta() const; (2) (since C++11) Returns the distribution parameters the distribution has been constructed with. 1) Returns the α distribution parameter. It is also known as the shape parameter. The default value is 1.0. 2) Returns the β distribution parameter. It is also known as the scale parameter. The default value is 1.0. Parameters (none). Return value 1) Floating point value identifying the α parameter 2) Floating

std::gamma_distribution

Defined in header <random> template< class RealType = double > class gamma_distribution; (since C++11) Produces random positive floating-point values x, distributed according to probability density function: P(x|α,β) = e-x/β βα · Γ(α) · xα-1 where α is known as the shape parameter and β is known as the scale parameter. For floating-point α, the value obtained is the sum of α independent exponentially distributed random variables, each of which has a mean of β st

std::fwrite

Defined in header <cstdio> std::size_t fwrite( const void* buffer, std::size_t size, std::size_t count, std::FILE* stream ); Writes up to count binary objects from the given array buffer to the output stream stream. The objects are written as if by reinterepreting each object as an array of unsigned char and calling std::fputc size times for each object to write those unsigned chars into stream, in order. The file position indicator for the stream is advanced by the number

std::fwide

Defined in header <cwchar> int fwide( std::FILE* stream, int mode ); If mode > 0, attempts to make stream wide-oriented. If mode < 0, attempts to make stream byte-oriented. If mode==0, only queries the current orientation of the stream. If the orientation of the stream has already been decided (by executing output or by an earlier call to fwide), this function does nothing. Parameters stream - pointer to the C I/O stream to modify or query mode - integer

std::future_status

Defined in header <future> enum class future_status { ready, timeout, deferred }; (since C++11) Specifies state of a future as returned by wait_for and wait_until functions of std::future and std::shared_future. Constant Explanation deferred the shared state contains a deferred function, so the result will be computed only when explicitly requested ready the shared state is ready timeout the shared state did not become ready before specified timeo

std::future_error::what

virtual const char* what() const; (since C++11) Returns the explanatory string. Parameters (none). Return value Pointer to a null-terminated string with explanatory information. Exceptions noexcept specification: noexcept See also code returns the error code (public member function)

std::future_error::future_error

future_error( std::error_code ec ); (since C++11) Constructs a new future error object containing error code ec. Parameters ec - error code

std::future_error::code

const std::error_code& code() const; (since C++11) Returns the stored error code. Parameters (none). Return value The stored error code. Exceptions noexcept specification: noexcept See also what returns the explanatory string specific to the error code (public member function)

std::future_error

Defined in header <future> class future_error; (since C++11) The class std::future_error defines an exception object that is thrown on failure by the functions in the thread library that deal with asynchronous execution and shared states (std::future, std::promise, etc). Similar to std::system_error, this exception carries an error code compatible with std::error_code. Inheritance diagram. Member functions (constructor) creates a std::future_error object (publi