Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
Public Member Functions | List of all members
broom::array< T, N > Class Template Reference

#include <broom-array.h>

Inheritance diagram for broom::array< T, N >:
Inheritance graph
[legend]
Collaboration diagram for broom::array< T, N >:
Collaboration graph
[legend]

Public Member Functions

 array ()
 
template<typename... Args>
 array (Args &&... args)
 
- Public Member Functions inherited from broom::BroomValue
virtual ~BroomValue ()
 
virtual void Visit (Visitor *visitor) const =0
 

Additional Inherited Members

- 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, size_t N>
class broom::array< T, N >

A Broom wrapper for std::array. broom::array aims to cover all the cases where one might want to use a std::array, while still remaining safe in the context of garbage collection. Since std::array is not on the stack and won't be scanned automatically, any managed pointer in it will be garbage collected prematurely. broom::array aims to alleviate this concern by implementing it as a precise root. broom::array 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-array.h.

Constructor & Destructor Documentation

◆ array() [1/2]

template<typename T , size_t N>
broom::array< T, N >::array ( )
inline

Definition at line 34 of file broom-array.h.

◆ array() [2/2]

template<typename T , size_t N>
template<typename... Args>
broom::array< T, N >::array ( Args &&...  args)
inline

Definition at line 36 of file broom-array.h.


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