![]() |
Exiv2
|
Specialization of slices for constant containers. More...
#include <slice.hpp>
Public Types | |
using | iterator = typename container::iterator |
using | const_iterator = typename container::const_iterator |
using | value_type = typename std::remove_cv<typename container::value_type>::type |
using | iterator |
using | const_iterator |
using | value_type |
![]() | |
using | iterator |
using | const_iterator |
using | value_type |
![]() | |
using | iterator |
using | const_iterator |
using | value_type |
![]() | |
using | iterator |
using | const_iterator |
using | value_type |
Public Member Functions | |
Slice | subSlice (size_t begin, size_t end) const |
Slice | subSlice (size_t begin, size_t end) |
Slice< const container > | subSlice (size_t begin, size_t end) const |
![]() | |
value_type & | at (size_t index) |
const value_type & | at (size_t index) const |
iterator | begin () noexcept |
iterator | end () noexcept |
![]() | |
ConstSliceBase (container &data, size_t begin, size_t end) | |
const value_type & | at (size_t index) const |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
slice_type | subSlice (size_t begin, size_t end) const |
![]() | |
SliceBase (size_t begin, size_t end) | |
size_t | size () const noexcept |
![]() | |
ConstSliceBase (const container &data, size_t begin, size_t end) | |
const value_type & | at (size_t index) const |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
slice_type | subSlice (size_t begin, size_t end) const |
Additional Inherited Members | |
![]() | |
using | base_type |
![]() | |
ConstSliceBase< Internal::ContainerStorage, const container > | to_const_base () const noexcept |
slice_type | subSlice (size_t begin, size_t end) |
![]() | |
void | rangeCheck (size_t index) const |
![]() | |
Internal::ContainerStorage< container > | storage_ |
![]() | |
size_t | begin_ |
size_t | end_ |
![]() | |
Internal::ContainerStorage< const container > | storage_ |
Specialization of slices for constant containers.
|
inline |
Construct a sub-slice of this slice with the given bounds. The bounds are evaluated with respect to the current slice.
[in] | begin | First element in the new slice. |
[in] | end | First element beyond the new slice. |
std::out_of_range | when begin or end are invalid |
|
inlinenodiscard |
Constructs a new constant subSlice. Behaves otherwise exactly like the non-const version.