ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
TT_CharOfSize< TCharSize > Struct Template Reference

Description:

template<int TCharSize>
struct alib::characters::TT_CharOfSize< TCharSize >

This helper-struct is used to determine the corresponding ALib character type, in cases that a fixed size of characters is required. Specializations for size values 1, 2 and 4 exists.

As an example, the QT Class Library uses a 2-byte character width, independent of compiler and platform. Therefore, to convert a QT character value to an ALib character value, the destination type is:

     typename TT_CharOfSize<2>::type
Template Parameters
TCharSizeThe size of the required character type in bytes.

Definition at line 603 of file chartraits.hpp.

#include <chartraits.hpp>

Inheritance diagram for TT_CharOfSize< TCharSize >:
[legend]
Collaboration diagram for TT_CharOfSize< TCharSize >:
[legend]

Public Type Index:

using type = void
 

Type Definition Details:

◆ type

template<int TCharSize>
using type = void

One of the ALib character types, nchar, wchar or xchar.

Definition at line 608 of file chartraits.hpp.


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