OGS
|
Provides access to the (possibly upcasted) elements of a random access container.
Example:
For further usage examples take a look into the unit tests.
Definition at line 218 of file ContainerTools.h.
#include <ContainerTools.h>
Public Member Functions | |
PolymorphicRandomAccessContainerView (PolymorphicRandomAccessContainerView const &)=delete | |
PolymorphicRandomAccessContainerView (PolymorphicRandomAccessContainerView &&)=default | |
template<typename Container > | |
explicit (false) PolymorphicRandomAccessContainerView(Container &container) | |
template<typename Container > | |
explicit (false) PolymorphicRandomAccessContainerView(Container const &container) | |
PolymorphicRandomAccessContainerView & | operator= (PolymorphicRandomAccessContainerView const &)=delete |
PolymorphicRandomAccessContainerView & | operator= (PolymorphicRandomAccessContainerView &&)=default |
detail::PolymorphicRandomAccessContainerViewIterator< Element > | begin () const noexcept |
detail::PolymorphicRandomAccessContainerViewIterator< Element > | end () const noexcept |
std::size_t | size () const noexcept |
Element & | operator[] (std::size_t n) const |
Private Attributes | |
std::unique_ptr< detail::PolymorphicRandomAccessContainerViewInterface< Element > > | impl_ |
|
delete |
|
default |
|
inlinenodiscardnoexcept |
Definition at line 252 of file ContainerTools.h.
|
inlinenodiscardnoexcept |
Definition at line 257 of file ContainerTools.h.
|
inline |
Definition at line 226 of file ContainerTools.h.
|
inline |
Definition at line 236 of file ContainerTools.h.
|
default |
|
delete |
|
inlinenodiscard |
Definition at line 264 of file ContainerTools.h.
|
inlinenodiscardnoexcept |
Definition at line 262 of file ContainerTools.h.
|
private |
Definition at line 272 of file ContainerTools.h.