Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
List of all members
broom::set< T, Compare, Allocator > Class Template Reference

#include <broom-set.h>

Inheritance diagram for broom::set< T, Compare, Allocator >:
Inheritance graph
[legend]
Collaboration diagram for broom::set< T, Compare, Allocator >:
Collaboration graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from broom::BroomValue
virtual ~BroomValue ()
 
virtual void Visit (Visitor *visitor) const =0
 
- Protected Member Functions inherited from broom::BroomValue
 BroomValue (GarbageCollector *gc)
 
 BroomValue ()
 
 BroomValue (const BroomValue &other)
 
BroomValueoperator= (const BroomValue &other)
 
BroomValueoperator= (BroomValue &&other) noexcept
 

Detailed Description

template<typename T, typename Compare = std::less<T>, typename Allocator = std::allocator<T>>
class broom::set< T, Compare, Allocator >

A Broom wrapper for std::set. broom::set aims to cover all the cases where one might want to use a std::set, while still remaining safe in the context of garbage collection. Since std::set is not on the stack and won't be scanned automatically, any managed pointer in it will be garbage collected prematurely. broom::set aims to alleviate this concern by implementing it as a precise root. broom::set is only available as an interface and you should never rely on its implementation details, as they may change.

Definition at line 28 of file broom-set.h.


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