|
libsl3 1.2.50004
A C++ interface for SQLite
|
Wrapper to provide begin, end and random access of a container. More...
#include <sl3/container.hpp>
Public Member Functions | |
| Container () noexcept | |
| Constructor. | |
| Container (ContainerType container) noexcept(std::is_nothrow_move_constructible< ContainerType >::value) | |
| Constructor. | |
| Container (std::initializer_list< value_type > container) | |
| Constructor. | |
| Container (const Container &)=default | |
| Copy Constructor. | |
| Container & | operator= (const Container &)=default |
| Assignment. | |
| Container (Container &&) noexcept(std::is_nothrow_move_constructible< ContainerType >::value)=default | |
| Move constructor. | |
| Container & | operator= (Container &&)=default |
| Move assignment. | |
| virtual | ~Container () noexcept(std::is_nothrow_destructible< ContainerType >::value)=default |
| Destructor. | |
| iterator | begin () |
| Iterator access. | |
| const_iterator | begin () const |
| Iterator access. | |
| iterator | end () |
| Iterator access. | |
| const_iterator | end () const |
| Iterator access. | |
| const_iterator | cbegin () const |
| Iterator access. | |
| const_iterator | cend () const |
| Iterator access. | |
| size_type | size () const |
| Container size. | |
| reference | at (size_t i) |
| checked random access | |
| const_reference | at (size_t i) const |
| checked random access | |
| reference | operator[] (size_t i) |
| unchecked random access | |
| const_reference | operator[] (size_t i) const |
| unchecked random access | |
Protected Attributes | |
| ContainerType | _cont |
| Container T. | |
Wrapper to provide begin, end and random access of a container.
| ContainerType | a container like for example std::vector |
A ContainerType has begin, end, random access and size.
This class makes these methods accessible and hides the others, like a push_back, erase, ... A derived class can decide which other methods shall become visible.
|
inlinenoexcept |
Constructor.
Create an empty container.
|
inlinenoexcept |
Constructor.
| container | values |
|
inline |
Constructor.
| container | values |
|
default |
Copy Constructor.
|
defaultnoexcept |
Move constructor.
|
virtualdefaultnoexcept |
Destructor.
|
inline |
checked random access
| i | index |
| sl3::ErrOutOfRange | if index is invalid |
|
inline |
checked random access
| i | index |
| sl3::ErrOutOfRange | if index is invalid |
|
inline |
Iterator access.
|
inline |
Iterator access.
|
inline |
Iterator access.
|
inline |
Iterator access.
|
inline |
Iterator access.
|
inline |
Iterator access.
|
default |
Assignment.
|
default |
Move assignment.
|
inline |
unchecked random access
| i | index behaves undefined if given index is invalid |
|
inline |
unchecked random access
| i | index behaves undefined if given index is invalid |
|
inline |
Container size.
|
protected |
Container T.