ReactOS 0.4.15-dev-8109-gd7be748
__char_wrapper< _CharT > Struct Template Reference

#include <_string_sum.h>

Public Types

typedef const _CharT & const_reference

Public Member Functions

 __char_wrapper (_CharT __val)
_CharT getValue () const
size_t size () const
const_reference operator[] (size_t __n) const

Private Attributes

_CharT _Val

Detailed Description

template<class _CharT>
struct __char_wrapper< _CharT >

Definition at line 25 of file _string_sum.h.

Member Typedef Documentation

◆ const_reference

template<class _CharT >
typedef const _CharT& __char_wrapper< _CharT >::const_reference

Definition at line 26 of file _string_sum.h.

Constructor & Destructor Documentation

◆ __char_wrapper()

template<class _CharT >
__char_wrapper< _CharT >::__char_wrapper ( _CharT  __val)

Definition at line 28 of file _string_sum.h.

28: _Val(__val) {}
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656

Member Function Documentation

◆ getValue()

template<class _CharT >
_CharT __char_wrapper< _CharT >::getValue ( ) const

Definition at line 30 of file _string_sum.h.

30{ return _Val; }

◆ operator[]()

template<class _CharT >
const_reference __char_wrapper< _CharT >::operator[] ( size_t  __n) const

Definition at line 33 of file _string_sum.h.

33 {
34 //To avoid a check on __n we use this strange implementation
35 return (&_Val)[__n];
36 }
return __n
Definition: _algo.h:75

◆ size()

template<class _CharT >
size_t __char_wrapper< _CharT >::size ( ) const

Definition at line 31 of file _string_sum.h.

31{ return 1; }

Member Data Documentation

◆ _Val

template<class _CharT >
_CharT __char_wrapper< _CharT >::_Val

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