![]() |
Spicy
|
#include <node.h>
Public Types | |
using | iterator = SetIterator< T > |
using | const_iterator = SetIterator< T > |
Public Member Functions | |
Set (const Set &other)=default | |
Set (Set &&other) noexcept=default | |
auto | begin () const |
auto | end () const |
size_t | size () const |
bool | empty () const |
void | insert (const T &t) |
std::vector< T > | copy () const |
const T & | operator[] (size_t i) const |
bool | operator== (const Set &other) const |
Set & | operator= (const Set &other)=default |
Set & | operator= (Set &&other) noexcept=default |
A set of AST nodes. The set creates a view of nodes that can be iterated over, yielding a reference to each node in turn. In contrast to Range
, a set can include nodes that are not all part of a continuous slice inside a vector.
|
inline |
Returns a new vector containing copies of all nodes that the range includes.