5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INITIALIZER_LIST_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INITIALIZER_LIST_HPP_
46 constexpr auto begin() const noexcept ->
iterator {
return element_ptr_; }
51 constexpr auto end() const noexcept ->
iterator {
return element_ptr_ + element_count_; }
57 constexpr auto size() const noexcept ->
size_type {
return element_count_; }
73 element_count_{count} {}
T value_type
The type of each element.
Definition initializer_list.hpp:26
reference const_reference
The type of a reference to the stored element.
Definition initializer_list.hpp:36
constexpr auto end() const noexcept -> iterator
Get a pointer to one-past-the-last element.
Definition initializer_list.hpp:51
size_t size_type
The type of the size.
Definition initializer_list.hpp:28
T const * iterator
The type of the iterator.
Definition initializer_list.hpp:30
constexpr auto begin() const noexcept -> iterator
Get a pointer to the first element.
Definition initializer_list.hpp:46
constexpr auto size() const noexcept -> size_type
Get the number of elements in the list.
Definition initializer_list.hpp:57
iterator const_iterator
The type of the iterator.
Definition initializer_list.hpp:32
T const & reference
The type of a reference to the stored element.
Definition initializer_list.hpp:34
constexpr initializer_list() noexcept
Construct an empty list.
Definition initializer_list.hpp:41
base class to ease the definition of required types for simple iterators
Definition basic_iterator.hpp:30
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29