nfx-containers 0.6.0
Modern C++20 header-only library providing high-performance hash containers with Robin Hood and perfect hashing
Loading...
Searching...
No Matches
StackVector.h File Reference

Stack vector optimization with stack storage and heap fallback. More...

#include <algorithm>
#include <cstddef>
#include <cstring>
#include <initializer_list>
#include <iterator>
#include <memory>
#include <stdexcept>
#include <type_traits>
#include <vector>
#include "nfx/detail/containers/StackVector.inl"
Include dependency graph for StackVector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nfx::containers::StackVector< T, N >
 Vector with stack storage optimization. More...

Detailed Description

Stack vector optimization with stack storage and heap fallback.

Provides vector-like container optimized for small sizes (N elements on stack). Automatically falls back to heap allocation if size exceeds N.

Definition in file StackVector.h.