Mbed OS Reference
Loading...
Searching...
No Matches
common/SafeBool.h File Reference

Go to the source code of this file.

Data Structures

class  base
 Base class of all SafeBool instances. More...
 
class  SafeBool< T >
 Safe conversion of objects in boolean context. More...
 

Namespaces

namespace  SafeBool_
 Private namespace used to host details of the SafeBool implementation.
 

Functions

template<typename T , typename U >
void operator== (const SafeBool< T > &lhs, const SafeBool< U > &rhs)
 Avoid conversion to bool between different classes. More...
 
template<typename T , typename U >
void operator!= (const SafeBool< T > &lhs, const SafeBool< U > &rhs)
 Avoid conversion to bool between different classes. More...