ReactOS  0.4.15-dev-1177-g6cb3b62
_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); }
_StorageT storage_type
Definition: _tools.h:403
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

◆ 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); }
_StorageT storage_type
Definition: _tools.h:403
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

◆ 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

Definition at line 421 of file _tools.h.

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

Referenced by _DequeIteCast< _StorageT, _ValueT >::to_storage_type_cite(), and _DequeIteCast< _StorageT, _ValueT >::to_storage_type_ite().

◆ to_storage_type_ptr()

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

Definition at line 417 of file _tools.h.

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

Referenced by _DequeIteCast< _StorageT, _ValueT >::to_storage_type_cite(), and _DequeIteCast< _StorageT, _ValueT >::to_storage_type_ite().

◆ 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
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

◆ 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

Definition at line 414 of file _tools.h.

415  { return __REINTERPRET_CAST(value_type const&, __ref); }
_ValueT value_type
Definition: _tools.h:404
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

Referenced by _UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate >::operator()(), and _BinaryPredWrapper< _StorageT, _ValueT, _BinaryPredicate >::operator()().

◆ to_value_type_pptr()

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

Definition at line 410 of file _tools.h.

411  { return __REINTERPRET_CAST(value_type **, __ptr); }
_ValueT value_type
Definition: _tools.h:404
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

Referenced by _DequeIteCast< _StorageT, _ValueT >::to_value_type_cite(), and _DequeIteCast< _StorageT, _ValueT >::to_value_type_ite().

◆ to_value_type_ptr()

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

Definition at line 406 of file _tools.h.

407  { return __REINTERPRET_CAST(value_type*, __ptr); }
_ValueT value_type
Definition: _tools.h:404
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

Referenced by _DequeIteCast< _StorageT, _ValueT >::to_value_type_cite(), and _DequeIteCast< _StorageT, _ValueT >::to_value_type_ite().

◆ 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); }
_ValueT value_type
Definition: _tools.h:404
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

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