OpenTTD Source 20260206-master-g4d4e37dbf1
StrongType::Integer Struct Reference

Mix-in which makes the new Typedef behave more like an integer. More...

#include <strong_typedef_type.hpp>

Data Structures

struct  mixin

Detailed Description

Mix-in which makes the new Typedef behave more like an integer.

This means you can add and subtract from it.

Operators like divide, multiply and module are explicitly denied, as that often makes little sense for the new type. If you want to do these actions on the new Typedef, you are better off first casting it to the base type.

Definition at line 37 of file strong_typedef_type.hpp.


The documentation for this struct was generated from the following file: