sparrow 0.3.0
|
A view that repeats a value a given number of times. More...
#include <repeat_container.hpp>
Public Types | |
using | value_type = T |
using | self_type = repeat_view<value_type> |
using | const_iterator = repeat_view_iterator<value_type> |
Public Member Functions | |
constexpr | repeat_view (const T &value, size_t count) noexcept |
Constructs a repeat_view. | |
constexpr const_iterator | begin () const noexcept |
constexpr const_iterator | end () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
constexpr size_t | size () const noexcept |
A view that repeats a value a given number of times.
Definition at line 67 of file repeat_container.hpp.
using sparrow::repeat_view< T >::const_iterator = repeat_view_iterator<value_type> |
Definition at line 73 of file repeat_container.hpp.
using sparrow::repeat_view< T >::self_type = repeat_view<value_type> |
Definition at line 72 of file repeat_container.hpp.
using sparrow::repeat_view< T >::value_type = T |
Definition at line 71 of file repeat_container.hpp.
|
constexprnoexcept |
Constructs a repeat_view.
value | The value to repeat |
count | The number of times to repeat the value |
Definition at line 144 of file repeat_container.hpp.
|
constexprnoexcept |
Definition at line 151 of file repeat_container.hpp.
|
constexprnoexcept |
Definition at line 163 of file repeat_container.hpp.
|
constexprnoexcept |
Definition at line 169 of file repeat_container.hpp.
|
constexprnoexcept |
Definition at line 157 of file repeat_container.hpp.
|
nodiscardconstexprnoexcept |
Definition at line 175 of file repeat_container.hpp.