|
xrpld
|
Adapter to constrain a container interface. More...
#include <const_container.h>
Public Types | |
| using | value_type = cont_type::value_type |
| using | size_type = cont_type::size_type |
| using | difference_type = cont_type::difference_type |
| using | iterator = cont_type::const_iterator |
| using | const_iterator = cont_type::const_iterator |
Public Member Functions | |
| bool | empty () const |
| Returns true if the container is empty. | |
| size_type | size () const |
| Returns the number of items in the container. | |
| const_iterator | begin () const |
| Returns forward iterators for traversal. | |
| const_iterator | cbegin () const |
| const_iterator | end () const |
| const_iterator | cend () const |
Protected Member Functions | |
| cont_type & | cont () |
| cont_type const & | cont () const |
Private Types | |
| using | cont_type = Container |
Private Attributes | |
| cont_type | cont_ |
Adapter to constrain a container interface.
The interface allows for limited read only operations. Derived classes provide additional behavior.
Definition at line 14 of file const_container.h.
|
private |
Definition at line 17 of file const_container.h.
| using beast::unit_test::detail::ConstContainer< Container >::value_type = cont_type::value_type |
Definition at line 35 of file const_container.h.
| using beast::unit_test::detail::ConstContainer< Container >::size_type = cont_type::size_type |
Definition at line 36 of file const_container.h.
| using beast::unit_test::detail::ConstContainer< Container >::difference_type = cont_type::difference_type |
Definition at line 37 of file const_container.h.
| using beast::unit_test::detail::ConstContainer< Container >::iterator = cont_type::const_iterator |
Definition at line 38 of file const_container.h.
| using beast::unit_test::detail::ConstContainer< Container >::const_iterator = cont_type::const_iterator |
Definition at line 39 of file const_container.h.
|
protected |
Definition at line 23 of file const_container.h.
|
nodiscardprotected |
Definition at line 29 of file const_container.h.
|
nodiscard |
Returns true if the container is empty.
Definition at line 43 of file const_container.h.
|
nodiscard |
Returns the number of items in the container.
Definition at line 50 of file const_container.h.
|
nodiscard |
Returns forward iterators for traversal.
Definition at line 58 of file const_container.h.
|
nodiscard |
Definition at line 64 of file const_container.h.
|
nodiscard |
Definition at line 70 of file const_container.h.
|
nodiscard |
Definition at line 76 of file const_container.h.
|
private |
Definition at line 19 of file const_container.h.