aboutsummaryrefslogtreecommitdiff
path: root/common/array.h
diff options
context:
space:
mode:
authorColin Snover2017-01-08 13:12:58 -0600
committerColin Snover2017-01-08 14:08:16 -0600
commit3cfc396ecd49c1f52ca7804b8d05b4a511045ece (patch)
tree18370081876cde9222b8030dff5ef8757b11eadf /common/array.h
parent9c60bcf0697e48f607edaa75e1308b9a7ca79d3e (diff)
downloadscummvm-rg350-3cfc396ecd49c1f52ca7804b8d05b4a511045ece.tar.gz
scummvm-rg350-3cfc396ecd49c1f52ca7804b8d05b4a511045ece.tar.bz2
scummvm-rg350-3cfc396ecd49c1f52ca7804b8d05b4a511045ece.zip
COMMON: Simplify Span code
Implicitly generated constructors can be used instead of explicit constructors, which reduces the amount of necessary boilerplate. Long lists of identical typedefs to the superclass are now defined using a macro. data() const now returns a pointer to data that matches the value_type of the data, instead of forcing the data to be const. This better matches the intent of the Span class, which provides a view into data, rather than being a container that holds data.
Diffstat (limited to 'common/array.h')
0 files changed, 0 insertions, 0 deletions