ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
integers.inl File Reference

Description:

This header-file is part of module ALib Lang of the ALib C++ Framework.

© 2013-2025 A-Worx GmbH, Germany. Published under Boost Software License.

Definition in file integers.inl.

Go to the source code of this file.

Namespaces

namespace  alib
namespace  alib::lang

Macros

#define ALIB_SIZEOF_INTEGER

Typedefs

using alib::integer = lang::integer
 Type alias in namespace alib.
using alib::lang::integer = platform_specific
using alib::intGap_t = lang::intGap_t
 Type alias in namespace alib.
using alib::lang::intGap_t = platform_specific
using alib::lang::uinteger = platform_specific
using alib::uinteger = lang::uinteger
 Type alias in namespace alib.
using alib::lang::uintGap_t = platform_specific
using alib::uintGap_t = lang::uintGap_t
 Type alias in namespace alib.

Macro Definition Documentation

◆ ALIB_SIZEOF_INTEGER

#define ALIB_SIZEOF_INTEGER

Contains the size of std::size_t, std::ptrdiff_t, void*, alib::integer, and alib::uinteger, which all should be the same, but independent on the compiler and platform (processor type). Usually, this configuration macro is deduced (in the internal header lang/integers.inl). If this deduction fails, this may result in two possible outcomes:

  1. A dedicated compilation error hinting to this documentation.
  2. Less directly connected compilation errors.

In this case, the right value has to be provided to the compiler. When doing this, configuration macros

have to be provided as well. This is true for each of these configuration macros: If one of them is given explicitly to the compiler, all the five have to be given. Otherwise, an explicit error message will be given during compilation.

Definition at line 15 of file integers.inl.