|
| set (ALLOC alloc=ALLOC{}) |
| Constructor implementation.
|
|
| 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.
|
|
template<typename K_TYPE, typename ALLOC = allocator<K_TYPE>>
class original::set< K_TYPE, ALLOC >
Abstract base class for unique element containers.
- Template Parameters
-
K_TYPE | The element type (must support equality comparison) |
ALLOC | Allocator type for memory management (default: allocator) |
This abstract class defines the common interface for all set implementations in the framework. Concrete implementations should inherit from this class and provide the actual storage mechanism.
The set guarantees:
- Unique elements (no duplicates)
- Efficient membership testing
- Type-safe operations
- Exception safety
- Note
- This class is not meant to be instantiated directly - use concrete implementations like hashSet or treeSet instead.