MySQL 8.0.39
Source Code Documentation
stateless_allocator.h File Reference
#include <assert.h>
#include <stddef.h>
#include <limits>
#include <new>
#include <utility>
#include "my_compiler.h"

Go to the source code of this file.

Classes

struct  My_free_functor
 Functor struct which invokes my_free. More...
 
class  Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN >
 Stateless_allocator is a C++ STL memory allocator skeleton based on Malloc_allocator, which assumes that a global free function can be used to allocate and deallocate memory, so that no state need to be kept by the allocator object. More...
 
struct  Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN >::rebind< U >
 

Functions

template<class T , class ALLOC_FUN , class DEALLOC_FUN >
bool operator== (const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &, const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &)
 
template<class T , class ALLOC_FUN , class DEALLOC_FUN >
bool operator!= (const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &, const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &)
 

Function Documentation

◆ operator!=()

template<class T , class ALLOC_FUN , class DEALLOC_FUN >
bool operator!= ( const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &  ,
const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &   
)

◆ operator==()

template<class T , class ALLOC_FUN , class DEALLOC_FUN >
bool operator== ( const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &  ,
const Stateless_allocator< T, ALLOC_FUN, DEALLOC_FUN > &   
)