Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
gc-small-vector.hh
1#pragma once
2
3#include <boost/container/small_vector.hpp>
4
5#include "nix/expr/value.hh"
6
7namespace nix {
8
12template<typename T, size_t nItems>
13using SmallVector = boost::container::small_vector<T, nItems, traceable_allocator<T>>;
14
18template<size_t nItems>
19using SmallValueVector = SmallVector<Value *, nItems>;
20
26template<size_t nItems>
27using SmallTemporaryValueVector = SmallVector<Value, nItems>;
28
35constexpr size_t nonRecursiveStackReservation = 128;
36
43constexpr size_t conservativeStackReservation = 16;
44
45} // namespace nix