zero Class Reference

A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are known to be zero at compile-time. More...

Inheritance diagram for zero:

Public Types

typedef zero value_type
 

Public Member Functions

 zero ()
 Construct null. More...
 
 operator bool () const
 Return 0 for bool. More...
 
 operator label () const
 Return 0 for label. More...
 
 operator float () const
 Return 0 for float. More...
 
 operator double () const
 Return 0 for double. More...
 
 operator long double () const
 Return 0 for double. More...
 

Detailed Description

A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are known to be zero at compile-time.

Source files

Definition at line 49 of file zero.H.

Member Typedef Documentation

◆ value_type

typedef zero value_type

Definition at line 53 of file zero.H.

Constructor & Destructor Documentation

◆ zero()

zero ( )
inline

Construct null.

Definition at line 58 of file zero.H.

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline

Return 0 for bool.

Definition at line 65 of file zero.H.

◆ operator label()

operator label ( ) const
inline

Return 0 for label.

Definition at line 71 of file zero.H.

◆ operator float()

operator float ( ) const
inline

Return 0 for float.

Definition at line 77 of file zero.H.

◆ operator double()

operator double ( ) const
inline

Return 0 for double.

Definition at line 83 of file zero.H.

◆ operator long double()

operator long double ( ) const
inline

Return 0 for double.

Definition at line 89 of file zero.H.


The documentation for this class was generated from the following file: