OpenTTD Source: ConvertibleThroughBase Concept Reference

OpenTTD Source 15.0-RC2

ConvertibleThroughBase Concept Reference

A type is considered 'convertible through base()' when it has a 'base()' function that returns something that can be converted to int64_t. More...

`#include <convertible_through_base.hpp>`

## Concept definition

template<typename T>
concept ConvertibleThroughBase = requires(T const a) {
typename T::BaseType;
{ a.base() } noexcept -> std::convertible_to<int64_t>;
}
ConvertibleThroughBase
A type is considered 'convertible through base()' when it has a 'base()' function that returns someth...
Definition convertible_through_base.hpp:19

## Detailed Description

A type is considered 'convertible through base()' when it has a 'base()' function that returns something that can be converted to int64_t.

Template Parameters

  T | The type under consideration.

Definition at line 19 of file convertible_through_base.hpp.