|
Phosphor
|
#include <cstddef>#include <iterator>#include <stdexcept>#include <initializer_list>#include <new>#include <algorithm>Go to the source code of this file.
Classes | |
| struct | gsl_p::dyn_array< _Tp > |
Namespaces | |
| gsl_p | |
The following is the experimental dyn_array, as described in the C++ core guidelines and early C++14 specs, produced by the LLVM compiler team. It has been slightly modified to remove dependencies on libc++ and to place it inside of the 'gsl_p' (Guideline support library, phosphor) namespace.
dyn_array is similar to a std::vector in that the size of the array is determined at runtime. It differs from std::vector significantly from std::vector in that once the dyn_array is constructed, its size is fixed.
This has a number of advantages, such as a much simpler implementation. One of the key features is the underlying data is guaranteed not to move once during the lifetime of the dyn_array.