GCC Middle and Back End API Reference
delete_ptr_hash< T > Struct Template Reference

#include <hash-traits.h>

Inheritance diagram for delete_ptr_hash< T >:
Collaboration diagram for delete_ptr_hash< T >:

Public Types

typedef Tvalue_type
 
typedef Tcompare_type
 

Static Public Member Functions

static hashval_t hash (const value_type &)
 
static bool equal (const value_type &existing, const compare_type &candidate)
 
static void mark_deleted (T *&)
 
static void mark_empty (T *&)
 
static bool is_deleted (T *)
 
static bool is_empty (T *)
 
static void remove (T *p)
 

Static Public Attributes

static const bool empty_zero_p
 

Detailed Description

template<typename T>
struct delete_ptr_hash< T >
Traits for pointer elements that should be freed via delete operand when an
element is deleted.   

Member Typedef Documentation

◆ compare_type

T* pointer_hash< T >::compare_type
inherited

◆ value_type

T* pointer_hash< T >::value_type
inherited

Member Function Documentation

◆ equal()

bool pointer_hash< T >::equal ( const value_type & existing,
const compare_type & candidate )
inlinestaticinherited

◆ hash()

hashval_t pointer_hash< T >::hash ( const value_type & candidate)
inlinestaticinherited

◆ is_deleted()

bool pointer_hash< T >::is_deleted ( T * e)
inlinestaticinherited

◆ is_empty()

bool pointer_hash< T >::is_empty ( T * e)
inlinestaticinherited

◆ mark_deleted()

void pointer_hash< T >::mark_deleted ( T *& e)
inlinestaticinherited

◆ mark_empty()

void pointer_hash< T >::mark_empty ( T *& e)
inlinestaticinherited

◆ remove()

void typed_delete_remove< T >::remove ( T * p)
inlinestaticinherited
Remove with delete.   

Field Documentation

◆ empty_zero_p

const bool pointer_hash< T >::empty_zero_p
staticinherited

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