STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ZERO_v Struct Reference

Represents a type that can be an active replacement for ZERO. More...

#include <stlsoft_zero.h>

List of all members.

Public Methods

 ZERO_v ()
 Default constructor.

 operator ss_sint8_t const () const
 A zero (of type ss_sint8_t).

 operator ss_uint8_t const () const
 A zero (of type ss_uint8_t).

 operator ss_sint16_t const () const
 A zero (of type ss_sint16_t).

 operator ss_uint16_t const () const
 A zero (of type ss_uint16_t).

 operator ss_sint32_t const () const
 A zero (of type ss_sint32_t).

 operator ss_uint32_t const () const
 A zero (of type ss_uint32_t).

 operator float const () const
 A zero (of type float).

 operator double const () const
 A zero (of type double).

 operator long double const () const
 A zero (of type long double).


Static Public Methods

ZERO_v create ()
 Static creation.


Detailed Description

Represents a type that can be an active replacement for ZERO.

This class can act as a replacement for the ZERO macro, by being validly assigned to or equated with pointer types only, as in

int i = ZERO; // error int *p = ZERO; // OK

if(i == ZERO) {} // error if(ZERO == i) {} // error

if(p == ZERO) {} // OK if(ZERO == p) {} // OK

When used via inclusion of the file stlsoft_zerodef.h, the macro ZERO is redefined as ZERO_v(), such that expressions containing ZERO will be valid against pointers only.


Constructor & Destructor Documentation

ZERO_v   [inline]
 

Default constructor.


Member Function Documentation

ZERO_v create   [inline, static]
 

Static creation.

operator double const   const [inline]
 

A zero (of type double).

operator float const   const [inline]
 

A zero (of type float).

operator long double const   const [inline]
 

A zero (of type long double).

operator ss_sint16_t const   const [inline]
 

A zero (of type ss_sint16_t).

operator ss_sint32_t const   const [inline]
 

A zero (of type ss_sint32_t).

operator ss_sint8_t const   const [inline]
 

A zero (of type ss_sint8_t).

operator ss_uint16_t const   const [inline]
 

A zero (of type ss_uint16_t).

operator ss_uint32_t const   const [inline]
 

A zero (of type ss_uint32_t).

operator ss_uint8_t const   const [inline]
 

A zero (of type ss_uint8_t).


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004