OpenTTD Source: StrongType::Integer Struct Reference

OpenTTD Source 15.0-beta1

Data Structures
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 52 of file strong_typedef_type.hpp.

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

- src/core/strong_typedef_type.hpp