A C++ encapsulation of an array and its size.
More...
#include <Span.hpp>
template<typename T>
class playrho::Span< T >
A C++ encapsulation of an array and its size.
- Note
- This is conceptually like the Guideline Support Library's span template class.
- See also
- http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0122r1.pdf
Definition at line 39 of file Span.hpp.
◆ data_type
Data type.
Definition at line 44 of file Span.hpp.
◆ pointer
Pointer type.
Definition at line 47 of file Span.hpp.
◆ const_pointer
Constant pointer type.
Definition at line 50 of file Span.hpp.
◆ size_type
Size type.
Definition at line 53 of file Span.hpp.
◆ Span() [1/6]
◆ Span() [2/6]
◆ Span() [3/6]
Initializing constructor.
Definition at line 61 of file Span.hpp.
◆ Span() [4/6]
template<typename T >
template<std::size_t SIZE>
Initializing constructor.
Definition at line 68 of file Span.hpp.
◆ Span() [5/6]
template<typename T >
template<typename U , typename = std::enable_if_t< !std::is_array<U>::value >>
Initializing constructor.
Definition at line 72 of file Span.hpp.
◆ Span() [6/6]
Initializing constructor.
Definition at line 76 of file Span.hpp.
◆ begin()
Gets the "begin" iterator value.
Definition at line 80 of file Span.hpp.
◆ cbegin()
Gets the "begin" iterator value.
Definition at line 83 of file Span.hpp.
◆ end()
Gets the "end" iterator value.
Definition at line 86 of file Span.hpp.
◆ cend()
Gets the "end" iterator value.
Definition at line 89 of file Span.hpp.
◆ operator[]() [1/2]
Accesses the indexed element.
Definition at line 92 of file Span.hpp.
◆ operator[]() [2/2]
Accesses the indexed element.
Definition at line 99 of file Span.hpp.
◆ size()
Gets the size of this span.
Definition at line 106 of file Span.hpp.
◆ data()
Direct access to data.
Definition at line 109 of file Span.hpp.
◆ empty()
Checks whether this span is empty.
Definition at line 112 of file Span.hpp.
The documentation for this class was generated from the following file: