FE 0.16.1
Fast, Effecient FrontEnds
Loading...
Searching...
No Matches
fe::Vector< T, N, A > Class Template Reference

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>

Inheritance diagram for fe::Vector< T, N, A >:
[legend]

Public Types

using Base = ankerl::svector<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))> && !std::is_same_v<std::decay_t<R>, Vector>)
constexpr Vector (R &&range, F &&f)
Span
constexpr auto span () noexcept
constexpr auto span () const noexcept
constexpr auto view () const noexcept

Detailed Description

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.

Member Typedef Documentation

◆ 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>

Definition at line 27 of file vector.h.

Constructor & Destructor Documentation

◆ 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

Definition at line 33 of file vector.h.

Referenced by fe::Patricia< D, KT, K, N >::create(), and Vector().

◆ 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

Definition at line 40 of file vector.h.

References Vector().

Member Function Documentation

◆ span() [1/2]

template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
auto fe::Vector< T, N, A >::span ( ) const
inlineconstexprnoexcept

Definition at line 53 of file vector.h.

◆ span() [2/2]

template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
auto fe::Vector< T, N, A >::span ( )
inlineconstexprnoexcept

Definition at line 52 of file vector.h.

Referenced by view().

◆ view()

template<class T, size_t N = Default_Inlined_Size<T>, class A = std::allocator<T>>
auto fe::Vector< T, N, A >::view ( ) const
inlineconstexprnoexcept

Definition at line 54 of file vector.h.

References span().


The documentation for this class was generated from the following file: