OpenTTD Source 20250220-master-gf89924a727
|
A sort-of mixin that adds 'at(pos)' and 'operator[](pos)' implementations for 'ConvertibleThroughBase' types. More...
#include <convertible_through_base.hpp>
Public Member Functions | |
Container::reference | at (size_t pos) |
Container::reference | at (const ConvertibleThroughBase auto &pos) |
Container::const_reference | at (size_t pos) const |
Container::const_reference | at (const ConvertibleThroughBase auto &pos) const |
Container::reference | operator[] (size_t pos) |
Container::reference | operator[] (const ConvertibleThroughBase auto &pos) |
Container::const_reference | operator[] (size_t pos) const |
Container::const_reference | operator[] (const ConvertibleThroughBase auto &pos) const |
A sort-of mixin that adds 'at(pos)' and 'operator[](pos)' implementations for 'ConvertibleThroughBase' types.
This to prevent having to call '.base()' for many container accesses.
Definition at line 37 of file convertible_through_base.hpp.
|
inline |
Definition at line 40 of file convertible_through_base.hpp.
|
inline |
Definition at line 43 of file convertible_through_base.hpp.
|
inline |
Definition at line 39 of file convertible_through_base.hpp.
|
inline |
Definition at line 42 of file convertible_through_base.hpp.
|
inline |
Definition at line 46 of file convertible_through_base.hpp.
|
inline |
Definition at line 49 of file convertible_through_base.hpp.
|
inline |
Definition at line 45 of file convertible_through_base.hpp.
|
inline |
Definition at line 48 of file convertible_through_base.hpp.