Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
using CppUtils::Container::Stack::Logger = Logger<"CppUtils">;
template <std::size_t I, class... Args>
[[nodiscard]] static consteval auto Stack::getOffset() noexcept -> std::size_t;

[[nodiscard]] constexpr auto Stack::size() const noexcept -> std::size_t;

[[nodiscard]] constexpr auto Stack::empty() const noexcept -> bool;

constexpr auto Stack::set(Type::TriviallyCopyable auto value, std::size_t offset = 0) -> std::expected<void, std::string_view>;

constexpr auto Stack::push(Type::TriviallyCopyable auto value) -> void;

template <Type::TriviallyCopyable T>
[[nodiscard]] constexpr auto Stack::get(std::size_t offset = 0) const -> std::expected<T, std::string_view>;

constexpr auto Stack::drop(std::size_t nbBytes) -> std::expected<void, std::string_view>;

template <Type::TriviallyCopyable T>
[[nodiscard]] constexpr auto Stack::pop() -> std::expected<T, std::string_view>;

constexpr auto Stack::call(auto&& function, std::size_t functionOffset = 0) -> std::expected<void, std::string_view>;

auto Stack::dump() const noexcept -> void;