std::get(std::pair)

Defined in header <utility> (1) template< size_t N, class T1, class T2 > typename std::tuple_element<I, std::pair<T1,T2> >::type& get( pair<T1, T2>& p ); (since C++11) (until C++14) template< size_t N, class T1, class T2 > constexpr std::tuple_element_t<I, std::pair<T1,T2> >& get( pair<T1, T2>& p ); (since C++14) (2) template< size_t N, class T1, class T2 > const typename std::tuple_element

std::getenv

Defined in header <cstdlib> char* getenv( const char* env_var ); Searches the environment list provided by the host environment (the OS), for a string that matches the C string pointed to by env_var and returns a pointer to the C string that is associated with the matched environment list member. This function is not required to be thread-safe. Another call to getenv, as well as a call to the POSIX functions setenv(), unsetenv(), and putenv() may invalidate the pointer ret

std::get(std::array)

template< size_t I, class T, size_t N > constexpr T& get( array<T,N>& a ); (1) (since C++11) template< size_t I, class T, size_t N > constexpr T&& get( array<T,N>&& a ); (2) (since C++11) template< size_t I, class T, size_t N > constexpr const T& get( const array<T,N>& a ); (3) (since C++11) template< size_t I, class T, size_t N > constexpr const T&& get( const array<T,N>&& a );

std::getchar

Defined in header <cstdio> int getchar(); Reads the next character from stdin. Equivalent to std::getc(stdin). Parameters (none). Return value The obtained character on success or EOF on failure. If the failure has been caused by end of file condition, additionally sets the eof indicator (see feof()) on stdin. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stdin. See also fgetcgetc gets a character from a file str

std::get(std::tuple)

(1) template< std::size_t I, class... Types > typename std::tuple_element<I, tuple<Types...> >::type& get( tuple<Types...>& t ); (since C++11) (until C++14) template< std::size_t I, class... Types > constexpr std::tuple_element_t<I, tuple<Types...> >& get( tuple<Types...>& t ); (since C++14) (2) template< std::size_t I, class... Types > typename std::tuple_element<I, tuple<Types...> >::type&

std::geometric_distribution

Defined in header <random> template< class IntType = int > class geometric_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|p) = p · (1 − p). i The value represents the number of yes/no trials (each succeeding with probability p) which are necessary to obtain a single success. std::geometric_distribution<>(p) is exactly equivalent to std::negative_binomial_distribution<

std::geometric_distribution::geometric_distribution

explicit geometric_distribution( double p = 0.5 ); (1) (since C++11) explicit geometric_distribution( const param_type& params ); (2) (since C++11) Constructs new distribution object. The first version uses p as the distribution parameter, the second version uses params as the distribution parameter. Parameters p - the p distribution parameter (probability of a trial generating true) params - the distribution parameter set Notes Requires that 0 < p <

std::geometric_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::geometric_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::geometric_distribution::p

double p() const; (since C++11) Returns the p distribution parameter the distribution was constructed with. The parameter defines the probability of a trial generating true. The default value is 0.5. Parameters (none). Return value Floating point value identifying the p distribution parameter. See also param gets or sets the distribution parameter object (public member function)