| 48 | \*---------------------------------------------------------------------------*/ |
| 49 | |
| 50 | class zero |
| 51 | { |
| 52 | public: |
| 53 | |
| 54 | typedef zero value_type; |
| 55 | |
| 56 | // Constructors |
| 57 | |
| 58 | //- Construct null |
| 59 | zero() |
| 60 | {} |
| 61 | |
| 62 | |
| 63 | // Member operators |
| 64 | |
| 65 | //- Return 0 for bool |
| 66 | inline operator bool() const |
| 67 | { |
| 68 | return 0; |
| 69 | } |
| 70 | |
| 71 | //- Return 0 for label |
| 72 | inline operator label() const |
| 73 | { |
| 74 | return 0; |
| 75 | } |
| 76 | |
| 77 | //- Return 0 for float |
| 78 | inline operator float() const |
| 79 | { |
| 80 | return 0; |
| 81 | } |
| 82 | |
| 83 | //- Return 0 for double |
| 84 | inline operator double() const |
| 85 | { |
| 86 | return 0; |
| 87 | } |
| 88 | }; |
| 89 | |
| 90 | |
| 91 | // Global zero |
no outgoing calls
no test coverage detected