pmem::obj::slice - provides interface to access sequence of objects.
More...
#include <libpmemobj++/slice.hpp>
|
| slice (Iterator begin, Iterator end) |
| Constructor taking two RandomAccess iterators which define a range. More...
|
|
| slice (const slice &other) noexcept=default |
| Defaulted copy constructor.
|
|
slice & | operator= (const slice &other) noexcept=default |
| Defaulted assignment operator.
|
|
iterator | begin () const noexcept |
| Returns iterator to the beginning of the range.
|
|
iterator | end () const noexcept |
| Returns iterator to the end of the range.
|
|
reverse_iterator | rend () const noexcept |
| Returns reverse iterator to the end.
|
|
reverse_iterator | rbegin () const noexcept |
| Returns reverse iterator to the beginning.
|
|
reference | at (size_type idx) |
| Element access operator. More...
|
|
reference | operator[] (size_type idx) |
| Element access operator. More...
|
|
template<typename Iterator>
class pmem::obj::slice< Iterator >
pmem::obj::slice - provides interface to access sequence of objects.
◆ slice()
template<typename Iterator>
Constructor taking two RandomAccess iterators which define a range.
- Exceptions
-
std::out_of_range | if it_end < it_begin. |
◆ at()
template<typename Iterator>
Element access operator.
- Exceptions
-
std::out_of_range | if idx is greater or equal to size. |
◆ operator[]()
template<typename Iterator>
Element access operator.
No bounds checking is performed.
The documentation for this class was generated from the following file: