MimIR 0.1
MimIR is my Intermediate Representation
|
This is a thin wrapper for absl::InlinedVector<T, N, / A>
which in turn is a drop-in replacement for std::vector<T, A>
.
More...
#include <mim/util/vector.h>
Public Types | |
using | Base = absl::InlinedVector<T, N, A> |
Public Member Functions | |
Constructors | |
template<class F > requires (std::is_invocable_r_v<T, F, size_t>) | |
constexpr | Vector (size_t size, F &&f) |
template<std::ranges::forward_range R, class F > requires (std::is_invocable_r_v<T, F, decltype(*std::ranges::begin(range))>) | |
constexpr | Vector (const R &range, F &&f) |
Span | |
Span< T > | span () |
Span< const T > | span () const |
Span< const T > | view () const |
Friends | |
void | swap (Vector &v1, Vector &v2) noexcept(noexcept(v1.swap(v2))) |
This is a thin wrapper for absl::InlinedVector<T, N, / A>
which in turn is a drop-in replacement for std::vector<T, A>
.
In addition, there are generator-like/lambda-based constructors and conversions to Span available.
using mim::Vector< T, N, A >::Base = absl::InlinedVector<T, N, A> |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inline |
Definition at line 39 of file vector.h.
References mim::Span().
|
inline |
Definition at line 40 of file vector.h.
References mim::Span().
|
inline |
Definition at line 41 of file vector.h.
References mim::Span().