This is a thin wrapper for ankerl::svector<T, N, A> which is a drop-in replacement for std::vector<T, A>.
More...
#include <fe/vector.h>
|
| using | Base = ankerl::svector<T, N, A> |
|
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))> && !std::is_same_v<std::decay_t<R>, Vector>) |
| constexpr | Vector (R &&range, F &&f) |
| constexpr auto | span () noexcept |
| constexpr auto | span () const noexcept |
| constexpr auto | view () const noexcept |
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
class fe::Vector< T, N, A >
This is a thin wrapper for ankerl::svector<T, N, A> which is a drop-in replacement for std::vector<T, A>.
In addition, there are generator-like/lambda-based constructors and conversions to Span available.
Definition at line 25 of file vector.h.
◆ Base
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
| using fe::Vector< T, N, A >::Base = ankerl::svector<T, N, A> |
◆ Vector() [1/2]
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
template<class F>
requires (std::is_invocable_r_v<T, F, size_t>)
| fe::Vector< T, N, A >::Vector |
( |
size_t | size, |
|
|
F && | f ) |
|
inlineexplicitconstexpr |
◆ Vector() [2/2]
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
template<std::ranges::forward_range R, class F>
requires (std::is_invocable_r_v<T, F, decltype(*std::ranges::begin(range))> && !std::is_same_v<std::decay_t<R>, Vector>)
| fe::Vector< T, N, A >::Vector |
( |
R && | range, |
|
|
F && | f ) |
|
inlineexplicitconstexpr |
◆ span() [1/2]
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
◆ span() [2/2]
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
◆ view()
template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
The documentation for this class was generated from the following file: