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  

c_conversion Struct Template Reference

Implements conversion via C-style casts. More...

#include <stlsoft_conversion_veneer.h>

List of all members.

Public Types

typedef T value_type
 The value type.

typedef C conversion_type
 The conversion type.


Static Public Methods

conversion_typeconvert_pointer (value_type *pv)
 Converts a pointer to the value_type to a pointer to the conversion_type.

conversion_type const * convert_const_pointer (value_type const *pv)
 Converts a pointer-to-const to the value_type to a pointer-to-const to the conversion_type.

conversion_typeconvert_reference (value_type &v)
 Converts a reference to the value_type to a reference to the conversion_type.

conversion_type const & convert_const_reference (value_type const &v)
 Converts a reference-to-const to the value_type to a reference-to-const to the conversion_type.


Detailed Description

template<typename T, typename C>
struct stlsoft::c_conversion< T, C >

Implements conversion via C-style casts.

Parameters:
T  The value type
C  The conversion type


Member Typedef Documentation

typedef C conversion_type
 

The conversion type.

typedef T value_type
 

The value type.


Member Function Documentation

conversion_type const* convert_const_pointer value_type const *    pv [inline, static]
 

Converts a pointer-to-const to the value_type to a pointer-to-const to the conversion_type.

conversion_type const& convert_const_reference value_type const &    v [inline, static]
 

Converts a reference-to-const to the value_type to a reference-to-const to the conversion_type.

conversion_type* convert_pointer value_type   pv [inline, static]
 

Converts a pointer to the value_type to a pointer to the conversion_type.

conversion_type& convert_reference value_type   v [inline, static]
 

Converts a reference to the value_type to a reference to the conversion_type.


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

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