EL4121 Embedded System / mbed-os

Dependents:   cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more

Embed: (wiki syntax)

« Back to documentation index

SafeBool.h File Reference

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.
template<typename T , typename U >
void operator!= (const SafeBool< T > &lhs, const SafeBool< U > &rhs)
 Avoid conversion to bool between different classes.

Detailed Description

Definition in file SafeBool.h.