About 94 results
Open links in new tab
  1. std::array - cppreference.com

    std::array is a container that encapsulates fixed size arrays. This container is an aggregate type with the same semantics as a struct holding a C-style array T[N] as its only non-static data member. Unlike a …

  2. Array declaration - cppreference.com

    Array-to-pointer decay There is an implicit conversion from lvalues and rvalues of array type to rvalues of pointer type: it constructs a pointer to the first element of an array. This conversion is used …

  3. Standard library header <array> (C++11) - cppreference.com

    namespace std { template<class T, size_t N> struct array { // types using value_type = T; using pointer = T*; using const_pointer = const T*; using reference = T ...

  4. Array declaration - cppreference.com

    Array declaration Array is a type consisting of a contiguously allocated nonempty sequence of objects with a particular element type. The number of those objects (the array size) never changes during …

  5. std::get (std::array) - cppreference.com

    Extracts the I th element from the array using tuple-like interface. I must be an integer value in range [0, N). This is enforced at compile time as opposed to at () or operator [].

  6. std::array<T,N>::size - cppreference.com

    Return value The number of elements in the container. Complexity Constant. Example The following code uses size to display the number of elements in a std::array:

  7. deduction guides for std::array - cppreference.com

    One deduction guide is provided for std::array to provide an equivalent of std::experimental::make_array for construction of std::array from a variadic parameter pack.

  8. cppreference.com

    What links here Related changes Upload file Special pages Printable version Permanent link Page information

  9. std::experimental::make_array - cppreference.com

    Notes make_array is removed in Library Fundamentals TS v3 because the deduction guide for std::array and std::to_array have been already in C++20. Possible implementation

  10. std::array<T,N>::data - cppreference.com

    Returns a pointer to the first element of the underlying array serving as element storage. The pointer is such that range [data(), data() + size ()) is always a valid range, even if the container is empty (data() …