Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Chapter 21. Boost.Tribool

Douglas Gregor

Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction
Tutorial
Basic usage
Renaming the indeterminate state
tribool input/output
Reference
Header <boost/logic/tribool.hpp>
Header <boost/logic/tribool_fwd.hpp>
Header <boost/logic/tribool_io.hpp>
Testsuite
Acceptance tests

Introduction

The 3-state boolean library contains a single class, boost::logic::tribool, along with support functions and operator overloads that implement 3-state boolean logic.


PrevUpHomeNext