OpenTTD Source 20250613-master-ga1786fa1f4
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  TypedIndexContainer< Container, Index >
 A sort-of mixin that implements 'at(pos)' and 'operator[](pos)' only for a specific type. 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.