Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32def.h
Link against:

Typedef TBool

typedef int TBool;

Support

Supported from 5.0

Description

Boolean type which takes the value either ETrue or EFalse.

Although only a single bit would theoretically be necessary to represent a Boolean, a machine word is used instead, so that these quantities can be easily passed. Also, TBool must map onto int because of C++’s interpretation of operands in conditional expressions.

On EPOC implementations in which the compiler supports the ANSI-recommended bool type, TBool will be typedef’ed to bool instead of int.