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  

operator_bool_generator Struct Template Reference

Template which provides the types and conversion operations for safe and highly-portable "operator bool() const". More...

#include <stlsoft_operator_bool.h>

List of all members.

Static Public Methods

return_type true_value ()
 Returns the value representing the true condition.

return_type false_value ()
 Returns the value representing the false condition.

template<typename U> return_type translate (U b)
 Does the ternary operator for you.


Detailed Description

template<typename T>
struct stlsoft::operator_bool_generator< T >

Template which provides the types and conversion operations for safe and highly-portable "operator bool() const".


Member Function Documentation

return_type false_value   [inline, static]
 

Returns the value representing the false condition.

return_type translate   b [inline, static]
 

Does the ternary operator for you.

return_type true_value   [inline, static]
 

Returns the value representing the true condition.


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

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