|
OpenTTD Source
12.0-beta1
|
A trimmed down version of what std::span will be in C++20. More...
#include <span_type.hpp>
Data Fields | |
| const typedef T & | const_reference |
| const typedef T * | const_pointer |
Private Attributes | |
| pointer | first |
| pointer | last |
A trimmed down version of what std::span will be in C++20.
It is fully forwards compatible, so if this codebase switches to C++20, all "span" instances can be replaced by "std::span" without loss of functionality.
Currently it only supports basic functionality:
It is meant to simplify function parameters, where we only want to walk a continuous list.
Definition at line 60 of file span_type.hpp.