sandbox
Loading...
Searching...
No Matches
sbx::containers::stable_vector< Type, PageSize > Class Template Reference

Public Types

using value_type = Type
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = value_type *
 
using size_type = std::size_t
 

Public Member Functions

 stable_vector (const stable_vector &other)
 
auto operator= (const stable_vector &other) -> stable_vector &
 
auto clear () -> void
 
auto operator[] (const size_type index) -> reference
 
auto operator[] (const size_type index) const -> const_reference
 
auto get_element_count () const -> size_type
 
auto insert (value_type &&element) -> std::pair< std::uint32_t, reference >
 
auto insert_no_lock (value_type &&element) -> std::pair< std::uint32_t, reference >
 
auto emplace_back () -> std::pair< std::uint32_t, reference >
 
auto emplace_back_no_lock () -> std::pair< std::uint32_t, reference >
 
template<typename Callable >
requires (std::is_invocable_v<Callable, reference>)
auto for_each (Callable &&callable) -> void
 
template<typename Callable >
requires (std::is_invocable_v<Callable, const_reference>)
auto for_each (Callable &&callable) const -> void
 

Static Public Attributes

static constexpr auto page_size = PageSize
 

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