Template Struct stackvec

Struct Documentation

template<uint16_t size>
struct stackvec

Public Functions

stackvec() = default
stackvec(const stackvec&) = delete
stackvec &operator=(const stackvec&) = delete
stackvec(stackvec&&) = delete
stackvec &operator=(stackvec &&other) = delete
inline stackvec(limb_span s)
inline limb &operator[](size_t index) noexcept
inline const limb &operator[](size_t index) const noexcept
inline const limb &rindex(size_t index) const noexcept
inline void set_len(size_t len) noexcept
inline constexpr size_t len() const noexcept
inline constexpr bool is_empty() const noexcept
inline constexpr size_t capacity() const noexcept
inline void push_unchecked(limb value) noexcept
inline bool try_push(limb value) noexcept
inline void extend_unchecked(limb_span s) noexcept
inline bool try_extend(limb_span s) noexcept
inline void resize_unchecked(size_t new_len, limb value) noexcept
inline bool try_resize(size_t new_len, limb value) noexcept
inline bool nonzero(size_t index) const noexcept
inline void normalize() noexcept

Public Members

limb data[size]
uint16_t length = {0}