PMDK C++ bindings  1.8.2
This is the C++ bindings documentation for PMDK's libpmemobj.
Public Member Functions | List of all members
pmem::obj::slice< Iterator > Class Template Reference

pmem::obj::slice - provides interface to access sequence of objects. More...

#include <libpmemobj++/slice.hpp>

Public Member Functions

 slice (Iterator begin, Iterator end)
 Constructor taking two RandomAccess iterators which define a range. More...
 
 slice (const slice &other) noexcept=default
 Defaulted copy constructor.
 
sliceoperator= (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...
 

Detailed Description

template<typename Iterator>
class pmem::obj::slice< Iterator >

pmem::obj::slice - provides interface to access sequence of objects.

Constructor & Destructor Documentation

◆ slice()

template<typename Iterator>
pmem::obj::slice< Iterator >::slice ( Iterator  begin,
Iterator  end 
)
inline

Constructor taking two RandomAccess iterators which define a range.

Exceptions
std::out_of_rangeif it_end < it_begin.

Member Function Documentation

◆ at()

template<typename Iterator>
reference pmem::obj::slice< Iterator >::at ( size_type  idx)
inline

Element access operator.

Exceptions
std::out_of_rangeif idx is greater or equal to size.

◆ operator[]()

template<typename Iterator>
reference pmem::obj::slice< Iterator >::operator[] ( size_type  idx)
inline

Element access operator.

No bounds checking is performed.


The documentation for this class was generated from the following file: