Definition from Wiktionary, the free dictionary
Jump to: navigation, search



From a keyword in C++ and derived programming languages, short for Boolean.



bool ‎(plural bools)

  1. (computing, programming) A Boolean variable, one whose value is either true or false.
    • 2000, Mark A DeLoura, Game programming gems
      The base class BitArray acts just like a normal C++ array of bools, although you are of course free to interpret the bits as integers...
    • 2000, Herb Sutter, Exceptional C++
      With an automatic conversion, bools will interfere with overload resolution...
    • 2007, Joseph C Rattz, Pro LINQ: Language Integrated Query in C# 2008
      Listing 7-11 shows an example where the initial data type is string, but I will obtain its value as a bool.