Files
cppdraft_translate/cppdraft/support/initlist/access.md
2025-10-25 03:02:53 +03:00

1.2 KiB

[support.initlist.access]

17 Language support library [support]

17.11 Initializer lists [support.initlist]

17.11.4 Initializer list access [support.initlist.access]

🔗

constexpr const E* begin() const noexcept;

1

#

Returns: A pointer to the beginning of the array.

If size() == 0 the values of begin() and end() are unspecified but they shall be identical.

🔗

constexpr const E* end() const noexcept;

2

#

Returns: begin() + size().

🔗

constexpr size_t size() const noexcept;

3

#

Returns: The number of elements in the array.

4

#

Complexity: Constant time.