STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
_Alloc_max_size Struct Reference

Static Public Member Functions

template<class _Ty >
static auto _Fn (int, const _Ty &_Al) _NOEXCEPT-> decltype(_Al.max_size())
 
template<class _Ty >
static auto _Fn (_Wrap_int, const _Ty &) _NOEXCEPT-> typename _Get_size_type< _Ty >::type
 

Member Function Documentation

template<class _Ty >
static auto _Alloc_max_size::_Fn ( int  ,
const _Ty &  _Al 
) -> decltype(_Al.max_size())
inlinestatic
621  { // call allocator supplied version
622  return (_Al.max_size());
623  }
template<class _Ty >
static auto _Alloc_max_size::_Fn ( _Wrap_int  ,
const _Ty &   
) -> typename _Get_size_type<_Ty>::type
inlinestatic
628  { // call default version
629  return ((numeric_limits<typename _Get_size_type<_Ty>::type>::max)()
630  / sizeof(typename _Ty::value_type));
631  }
#define max(a,b)
Definition: minmax.h:14
make_unsigned_t< typename _Get_difference_type< _Ty >::type > type
Definition: xmemory0:398
Definition: limits:102

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