ORIGINAL
Loading...
Searching...
No Matches
original::set< K_TYPE, COMP, ALLOC > Class Template Referenceabstract
Inheritance diagram for original::set< K_TYPE, COMP, ALLOC >:
Inheritance graph
Collaboration diagram for original::set< K_TYPE, COMP, ALLOC >:
Collaboration graph

Public Member Functions

virtual bool add (const K_TYPE &e)=0
 
virtual bool remove (const K_TYPE &e)=0
 
- Public Member Functions inherited from original::container< TYPE, ALLOC >
virtual u_integer size () const =0
 Gets the number of elements in the container.
 
bool empty () const
 Checks if the container is empty.
 
virtual bool contains (const TYPE &e) const =0
 Checks if an element is contained in the container.
 
virtual ~container ()=default
 Destructor for the container class.
 

Protected Member Functions

 set (COMP comp=COMP{}, ALLOC alloc=ALLOC{})
 
- Protected Member Functions inherited from original::container< TYPE, ALLOC >
 container (ALLOC alloc=ALLOC{})
 Constructs a container with specified allocator.
 
TYPE * allocate (u_integer size)
 Allocates raw memory for elements.
 
void deallocate (TYPE *ptr, u_integer size)
 Deallocates memory previously allocated by allocate()
 
template<typename O_TYPE, typename... Args>
void construct (O_TYPE *o_ptr, Args &&... args)
 Constructs an element in-place.
 
template<typename O_TYPE>
void destroy (O_TYPE *o_ptr)
 Destroys an element.
 

Protected Attributes

COMP compare
 
- Protected Attributes inherited from original::container< TYPE, ALLOC >
ALLOC allocator
 The allocator instance used for memory management.
 

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