From 2ebc0231a0e34a65e762a5614da00ffdd561f0e7 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 17 Apr 2021 16:40:19 -0500 Subject: [PATCH] [ox/std] Cleanup (synced from 69fb4acd249a1878905f9123d8b666c342c4e9e6) --- src/ox/std/vector.hpp | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/ox/std/vector.hpp b/src/ox/std/vector.hpp index 271821887..fea7b1e68 100644 --- a/src/ox/std/vector.hpp +++ b/src/ox/std/vector.hpp @@ -40,21 +40,29 @@ class Vector { Vector &operator=(Vector &&other); - [[nodiscard]] T &operator[](std::size_t i) noexcept; + [[nodiscard]] + T &operator[](std::size_t i) noexcept; - [[nodiscard]] const T &operator[](std::size_t i) const noexcept; + [[nodiscard]] + const T &operator[](std::size_t i) const noexcept; - [[nodiscard]] Result front() noexcept; + [[nodiscard]] + Result front() noexcept; - [[nodiscard]] Result front() const noexcept; + [[nodiscard]] + Result front() const noexcept; - [[nodiscard]] Result back() noexcept; + [[nodiscard]] + Result back() noexcept; - [[nodiscard]] Result back() const noexcept; + [[nodiscard]] + Result back() const noexcept; - [[nodiscard]] std::size_t size() const noexcept; + [[nodiscard]] + std::size_t size() const noexcept; - [[nodiscard]] bool empty() const noexcept; + [[nodiscard]] + bool empty() const noexcept; void clear();