MySQL 8.0.39
Source Code Documentation
memory::traits Namespace Reference

Functions

template<class T >
auto test_for_allocate (int T::*) -> decltype(std::declval< T >().allocate(std::declval< size_t >()), std::true_type{})
 Tests for the existence of allocate(size_t) in order to disambiguate if T is an allocator class. More...
 
template<class >
std::false_type test_for_allocate (...)
 

Function Documentation

◆ test_for_allocate() [1/2]

template<class >
std::false_type memory::traits::test_for_allocate (   ...)

◆ test_for_allocate() [2/2]

template<class T >
auto memory::traits::test_for_allocate ( int T::*  ) -> decltype(std::declval< T >().allocate(std::declval< size_t >()), std::true_type{})

Tests for the existence of allocate(size_t) in order to disambiguate if T is an allocator class.