std::initializer_list

(not to be confused with member initializer list). Defined in header <initializer_list> template< class T > class initializer_list; (since C++11) An object of type std::initializer_list<T> is a lightweight proxy object that provides access to an array of objects of type const T. A std::initializer_list object is automatically constructed when: a braced-init-list is used in list-initialization, including function-call list initialization and assignment expressio

std::initializer_list::initializer_list

initializer_list(); (since C++11) (until C++14) constexpr initializer_list(); (since C++14) Constructs an empty initializer list. Parameters (none). Exceptions noexcept specification: noexcept Complexity Constant. Example #include <iostream> #include <initializer_list> int main() { std::initializer_list<int> empty_list; std::cout << "empty_list.size(): " << empty_list.size() << '\n'; // create initializer lists u

std::initializer_list::begin

const T* begin() const; (since C++11) (until C++14) constexpr const T* begin() const; (since C++14) Returns a pointer to the first element in the initializer list. If the initializer list is empty, the values of begin() and end() are unspecified, but will be identical. Parameters (none). Return value a pointer to the first element in the initializer list. Exceptions noexcept specification: noexcept Complexity Constant. See also end returns a pointer to one pas

std::indirect_array

Defined in header <valarray> template< class T > class indirect_array; std::gslice_array is a helper template used by std::indirect_array subscript operator. It has reference semantics to a subset of the array specified by an indirect array (std::valarray<std::size_t> object). Member types Type Definition value_type T Member functions (constructor) constructs a indirect_array (public member function) (destructor) destroys a indirect_arr

std::indirect_array::operators

void operator+=( const std::valarray<T>& other ); void operator-=( const std::valarray<T>& other ); void operator*=( const std::valarray<T>& other ); void operator/=( const std::valarray<T>& other ); void operator%=( const std::valarray<T>& other ); void operator&=( const std::valarray<T>& other ); void operator|=( const std::valarray<T>& other ); void operator^=( const std::vala

std::independent_bits_engine::min

static constexpr result_type min(); (since C++11) Returns the minimum value potentially generated by the engine adaptor. This value is equal to 0u. Parameters (none). Return value The minimum potentially generated value. Complexity Constant. See also max [static] gets the largest possible value in the output range (public static member function)

std::independent_bits_engine::seed

void seed(); (1) (since C++11) void seed( result_type value ); (2) (since C++11) template< class Sseq > void seed( Sseq& seq ); (3) (since C++11) Reinitializes the internal state of the underlying engine using a new seed value. 1) Seeds the underlying engine with the default seed value. Effectively calls e.seed(), where e is the underlying engine. 2) Seeds the underlying engine with the seed value s. Effectively calls e.seed(value), where e is the underlying eng

std::indirect_array::indirect_array

indirect_array( const indirect_array& other ); indirect_array() = delete; Constructs a indirect_array from another indirect_array other. The default constructor is implicitly deleted. Parameters other - indirect_array to initialize with

std::independent_bits_engine

Defined in header <random> template< class Engine, std::size_t W, class UIntType > class independent_bits_engine; (since C++11) independent_bits_engine is a random number engine adaptor that produces random numbers with different number of bits than that of the wrapped engine. Template parameters Engine - the type of the wrapped engine W - the number of bits the generated numbers should have UIntType - the type of the generated random

std::independent_bits_engine::max

static constexpr result_type max(); (since C++11) Returns the maximum value potentially generated by the engine adaptor. This value is equal to 2w-1. Parameters (none). Return value The maximum potentially generated value. Complexity Constant. See also min [static] gets the smallest possible value in the output range (public static member function)