STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
_Temporary_range< _Ty > Struct Template Reference

Public Types

using value_type = _Ty
 

Public Member Functions

 _Temporary_range (_Temporary_buffer< _Ty > &_Buffer)
 
template<class _FwdIt >
 _Temporary_range (_Temporary_buffer< _Ty > &_Buffer, const _FwdIt _First, const _FwdIt _Last, const _Iter_diff_t< _FwdIt > _Count)
 
 _Temporary_range (const _Temporary_range &)=delete
 
_Temporary_rangeoperator= (const _Temporary_range &)=delete
 
 ~_Temporary_range () _NOEXCEPT
 
_Ty * _Begin ()
 
_Ty * _End ()
 
void push_back (_Ty &&_Val)
 

Public Attributes

_Ty * _Data
 
ptrdiff_t _Capacity
 
ptrdiff_t _Size
 

Member Typedef Documentation

template<class _Ty >
using _Temporary_range< _Ty >::value_type = _Ty

Constructor & Destructor Documentation

template<class _Ty >
_Temporary_range< _Ty >::_Temporary_range ( _Temporary_buffer< _Ty > &  _Buffer)
inlineexplicit
57  { // find first char that matches _Val
template<class _Ty >
template<class _FwdIt >
_Temporary_range< _Ty >::_Temporary_range ( _Temporary_buffer< _Ty > &  _Buffer,
const _FwdIt  _First,
const _FwdIt  _Last,
const _Iter_diff_t< _FwdIt >  _Count 
)
inline
57  { // find first char that matches _Val
58  _STLCLRDB_RANGE(_First, _Last);
59  _First = (const char *)std::memchr(_First, _Val, _Last - _First);
60  return (_First == 0 ? _Last : _First);
61  }
62 
63 inline const signed char *find(const signed char *_First,
64  const signed char *_Last, int _Val)
_CRT_BEGIN_C_HEADER _Check_return_ _VCRTIMP void _CONST_RETURN *__cdecl memchr(_In_reads_bytes_opt_(_MaxCount) void const *_Buf, _In_ int _Val, _In_ size_t _MaxCount)
#define _STLCLRDB_RANGE(first, last)
Definition: memory:226
_FwdIt const _Ty _Val
Definition: algorithm:1938
_FwdIt _Last
Definition: algorithm:1936
_InIt find(_InIt _First, _InIt _Last, const _Ty &_Val)
Definition: xutility:3185
template<class _Ty >
_Temporary_range< _Ty >::_Temporary_range ( const _Temporary_range< _Ty > &  )
delete
template<class _Ty >
_Temporary_range< _Ty >::~_Temporary_range ( )
inline
69  : _First);
70  }
71 
72 inline const unsigned char *find(const unsigned char *_First,
_InIt find(_InIt _First, _InIt _Last, const _Ty &_Val)
Definition: xutility:3185

Member Function Documentation

template<class _Ty >
_Ty* _Temporary_range< _Ty >::_Begin ( )
inline
74  { // find first unsigned char that matches _Val
75  _STLCLRDB_RANGE(_First, _Last);
76  _First = (const unsigned char *)std::memchr(_First, _Val,
77  _Last - _First);
_CRT_BEGIN_C_HEADER _Check_return_ _VCRTIMP void _CONST_RETURN *__cdecl memchr(_In_reads_bytes_opt_(_MaxCount) void const *_Buf, _In_ int _Val, _In_ size_t _MaxCount)
#define _STLCLRDB_RANGE(first, last)
Definition: memory:226
_FwdIt const _Ty _Val
Definition: algorithm:1938
_FwdIt _Last
Definition: algorithm:1936
template<class _Ty >
_Ty* _Temporary_range< _Ty >::_End ( )
inline
86  { // find first satisfying _Pred
template<class _Ty >
_Temporary_range& _Temporary_range< _Ty >::operator= ( const _Temporary_range< _Ty > &  )
delete
template<class _Ty >
void _Temporary_range< _Ty >::push_back ( _Ty &&  _Val)
inline
86  { // find first satisfying _Pred
87  for (; _First != _Last; ++_First)
88  if (_Pred(*_First))
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
_FwdIt _Last
Definition: algorithm:1936

Member Data Documentation

template<class _Ty >
ptrdiff_t _Temporary_range< _Ty >::_Capacity
template<class _Ty >
_Ty* _Temporary_range< _Ty >::_Data
template<class _Ty >
ptrdiff_t _Temporary_range< _Ty >::_Size

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