libzypp  13.10.6
TriBool.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_TRIBOOL_H
13 #define ZYPP_TRIBOOL_H
14 
15 #include <iosfwd>
16 #include <boost/logic/tribool.hpp>
17 
19 namespace zypp
20 {
21 
39  typedef boost::logic::tribool TriBool;
40  using boost::logic::tribool;
41  using boost::logic::indeterminate;
42 
44 } // namespace zypp
46 namespace boost
47 {
48  namespace logic
49  {
51  inline std::ostream & operator<<(std::ostream & s, const tribool & obj)
52  {
53  if (indeterminate(obj))
54  s << "indeterminate";
55  else if (obj)
56  s << "true";
57  else
58  s << "false";
59  return s;
60  }
61  }
62 }
63 #endif // ZYPP_TRIBOOL_H
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
Definition: TriBool.h:39
std::ostream & operator<<(std::ostream &str, const ::_Dataiterator *obj)
Definition: LookupAttr.cc:799