OpenTTD Source 20250312-master-gcdcc6b491d
convertible_through_base.hpp File Reference

Concept for unifying the convert through 'base()' behaviour of several 'strong' types. More...

Go to the source code of this file.

Data Structures

class  ReferenceThroughBaseContainer< Container >
 A sort-of mixin that adds 'at(pos)' and 'operator[](pos)' implementations for 'ConvertibleThroughBase' types. More...
 

Concepts

concept  ConvertibleThroughBase
 A type is considered 'convertible through base()' when it has a 'base()' function that returns something that can be converted to int64_t.
 
concept  ConvertibleThroughBaseOrTo
 Type is convertible to TTo, either directly or through ConvertibleThroughBase.
 

Detailed Description

Concept for unifying the convert through 'base()' behaviour of several 'strong' types.

Definition in file convertible_through_base.hpp.