A container-like data-structure not storing anything and with empty implementations in many container-interface functions. More...
#include <FakeContainer.hpp>
Inherits FakeAssigner.
Classes | |
| struct | const_iterator |
Public Types | |
| using | value_type = T |
| using | size_type = std::size_t |
Public Member Functions | |
| template<class... Args> | |
| constexpr | FakeContainer (Args &&...) noexcept |
| template<class S > | |
| constexpr void | init (S const &, bool) noexcept |
| constexpr void | finish () noexcept |
| template<class... Args> | |
| constexpr void | scatter (Args &&...) noexcept |
| template<class Arg > | |
| constexpr void | push_back (Arg &&) noexcept |
| template<class... Args> | |
| constexpr void | emplace_back (Args &&...) noexcept |
| template<class Size > | |
| constexpr void | reserve (Size &&) noexcept |
| template<class Size > | |
| constexpr void | resize (Size &&) noexcept |
| constexpr bool | empty () const noexcept |
| This container is never empty. | |
| template<class Index > | |
| constexpr FakeContainer & | operator[] (Index &&) noexcept |
| template<class Index > | |
| constexpr FakeContainer const & | operator[] (Index &&) const noexcept |
| template<class Index > | |
| constexpr FakeContainer & | at (Index &&) noexcept |
| Mutable element access. | |
| template<class Index > | |
| constexpr FakeContainer const & | at (Index &&) const noexcept |
| Const element access. | |
| constexpr FakeContainer & | front () noexcept |
| constexpr FakeContainer const & | front () const noexcept |
| constexpr | operator T () const noexcept |
| Container can be cast to the constant integral value. | |
| constexpr const_iterator | begin () const noexcept |
| Return iterator that always redirects to a bool true. | |
| constexpr const_iterator | cbegin () const noexcept |
| Return iterator that always redirects to a bool true. | |
| template<class T > | |
| constexpr FakeAssigner & | operator= (T &&) noexcept |
| Assignment operators from a fake assigner. | |
| template<class T > | |
| constexpr FakeAssigner & | operator+= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator-= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator*= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator/= (T &&) noexcept |
Public Member Functions inherited from FakeAssigner | |
| template<class T > | |
| constexpr FakeAssigner & | operator= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator+= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator-= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator*= (T &&) noexcept |
| template<class T > | |
| constexpr FakeAssigner & | operator/= (T &&) noexcept |
A container-like data-structure not storing anything and with empty implementations in many container-interface functions.
This container that does nothing can be used as a dummy argument to functions expecting a container, in order to omit specializations of these functions for not providing a container.
|
inlineconstexprnoexcept |
Const element access does return the container itself This allows to emulate nested containers
|
inlineconstexprnoexcept |
Mutable element access does return the container itself This allows to emulate nested containers