ReactOS 0.4.16-dev-401-g45b008d
_CastTraits< _StorageT, _ValueT > Struct Template Reference

#include <_tools.h>

Public Types

typedef _StorageT storage_type
 
typedef _ValueT value_type
 

Static Public Member Functions

static value_typeto_value_type_ptr (storage_type *__ptr)
 
static value_type constto_value_type_cptr (storage_type const *__ptr)
 
static value_type ** to_value_type_pptr (storage_type **__ptr)
 
static value_typeto_value_type_ref (storage_type &__ref)
 
static value_type constto_value_type_cref (storage_type const &__ref)
 
static storage_typeto_storage_type_ptr (value_type *__ptr)
 
static storage_type constto_storage_type_cptr (value_type const *__ptr)
 
static storage_type ** to_storage_type_pptr (value_type **__ptr)
 
static storage_type constto_storage_type_cref (value_type const &__ref)
 
template<class _Tp1 >
static _Tp1 constto_storage_type_crefT (_Tp1 const &__ref)
 

Detailed Description

template<class _StorageT, class _ValueT>
struct _CastTraits< _StorageT, _ValueT >

Definition at line 402 of file _tools.h.

Member Typedef Documentation

◆ storage_type

template<class _StorageT , class _ValueT >
typedef _StorageT _CastTraits< _StorageT, _ValueT >::storage_type

Definition at line 403 of file _tools.h.

◆ value_type

template<class _StorageT , class _ValueT >
typedef _ValueT _CastTraits< _StorageT, _ValueT >::value_type

Definition at line 404 of file _tools.h.

Member Function Documentation

◆ to_storage_type_cptr()

template<class _StorageT , class _ValueT >
static storage_type const * _CastTraits< _StorageT, _ValueT >::to_storage_type_cptr ( value_type const __ptr)
inlinestatic

Definition at line 419 of file _tools.h.

420 { return __REINTERPRET_CAST(storage_type const*, __ptr); }
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586
_StorageT storage_type
Definition: _tools.h:403

◆ to_storage_type_cref()

template<class _StorageT , class _ValueT >
static storage_type const & _CastTraits< _StorageT, _ValueT >::to_storage_type_cref ( value_type const __ref)
inlinestatic

Definition at line 423 of file _tools.h.

424 { return __REINTERPRET_CAST(storage_type const&, __ref); }

◆ to_storage_type_crefT()

template<class _StorageT , class _ValueT >
template<class _Tp1 >
static _Tp1 const & _CastTraits< _StorageT, _ValueT >::to_storage_type_crefT ( _Tp1 const __ref)
inlinestatic

Definition at line 426 of file _tools.h.

427 { return __ref; }

◆ to_storage_type_pptr()

template<class _StorageT , class _ValueT >
static storage_type ** _CastTraits< _StorageT, _ValueT >::to_storage_type_pptr ( value_type **  __ptr)
inlinestatic

◆ to_storage_type_ptr()

template<class _StorageT , class _ValueT >
static storage_type * _CastTraits< _StorageT, _ValueT >::to_storage_type_ptr ( value_type __ptr)
inlinestatic

◆ to_value_type_cptr()

template<class _StorageT , class _ValueT >
static value_type const * _CastTraits< _StorageT, _ValueT >::to_value_type_cptr ( storage_type const __ptr)
inlinestatic

Definition at line 408 of file _tools.h.

409 { return __REINTERPRET_CAST(value_type const*, __ptr); }
_ValueT value_type
Definition: _tools.h:404

◆ to_value_type_cref()

template<class _StorageT , class _ValueT >
static value_type const & _CastTraits< _StorageT, _ValueT >::to_value_type_cref ( storage_type const __ref)
inlinestatic

◆ to_value_type_pptr()

template<class _StorageT , class _ValueT >
static value_type ** _CastTraits< _StorageT, _ValueT >::to_value_type_pptr ( storage_type **  __ptr)
inlinestatic

◆ to_value_type_ptr()

template<class _StorageT , class _ValueT >
static value_type * _CastTraits< _StorageT, _ValueT >::to_value_type_ptr ( storage_type __ptr)
inlinestatic

◆ to_value_type_ref()

template<class _StorageT , class _ValueT >
static value_type & _CastTraits< _StorageT, _ValueT >::to_value_type_ref ( storage_type __ref)
inlinestatic

Definition at line 412 of file _tools.h.

413 { return __REINTERPRET_CAST(value_type&, __ref); }

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