Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
gc-small-vector.hh File Reference
#include "gc-alloc.hh"
#include <boost/container/small_vector.hpp>

Go to the source code of this file.

Typedefs

template<typename T, size_t nItems>
using nix::SmallVector = boost::container::small_vector<T, nItems, TraceableAllocator<T>>
template<size_t nItems>
using nix::SmallValueVector = SmallVector<Value *, nItems>
template<size_t nItems>
using nix::SmallTemporaryValueVector = SmallVector<Value, nItems>

Typedef Documentation

◆ SmallTemporaryValueVector

template<size_t nItems>
using nix::SmallTemporaryValueVector = SmallVector<Value, nItems>

A vector of values that must not be referenced after the vector is destroyed.

See also SmallValueVector.

◆ SmallValueVector

template<size_t nItems>
using nix::SmallValueVector = SmallVector<Value *, nItems>

A vector of value pointers. See SmallVector.

◆ SmallVector

template<typename T, size_t nItems>
using nix::SmallVector = boost::container::small_vector<T, nItems, TraceableAllocator<T>>

A GC compatible vector that may used a reserved portion of nItems on the stack instead of allocating on the heap.