aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd
diff options
context:
space:
mode:
Diffstat (limited to 'libs/kstd')
-rw-r--r--libs/kstd/kstd/allocator.hpp2
-rw-r--r--libs/kstd/kstd/bits/format/formatter/string_view.hpp2
-rw-r--r--libs/kstd/kstd/bits/format/string.hpp2
-rw-r--r--libs/kstd/kstd/bits/shared_ptr.hpp6
4 files changed, 6 insertions, 6 deletions
diff --git a/libs/kstd/kstd/allocator.hpp b/libs/kstd/kstd/allocator.hpp
index 0de0e10d..c54a8973 100644
--- a/libs/kstd/kstd/allocator.hpp
+++ b/libs/kstd/kstd/allocator.hpp
@@ -40,7 +40,7 @@ namespace kstd
return static_cast<T *>(KSTD_OPERATOR_NEW(n * sizeof(T)));
}
- constexpr void deallocate(T * p, std::size_t n) noexcept
+ constexpr auto deallocate(T * p, std::size_t n) noexcept -> void
{
if (alignof(T) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
{
diff --git a/libs/kstd/kstd/bits/format/formatter/string_view.hpp b/libs/kstd/kstd/bits/format/formatter/string_view.hpp
index 7d745798..417ec81c 100644
--- a/libs/kstd/kstd/bits/format/formatter/string_view.hpp
+++ b/libs/kstd/kstd/bits/format/formatter/string_view.hpp
@@ -30,7 +30,7 @@ namespace kstd
return it;
}
- auto format(std::string_view const & string, format_context & context) const -> void
+ auto format(std::string_view string, format_context & context) const -> void
{
context.push(string);
}
diff --git a/libs/kstd/kstd/bits/format/string.hpp b/libs/kstd/kstd/bits/format/string.hpp
index ab034e7c..98ec6926 100644
--- a/libs/kstd/kstd/bits/format/string.hpp
+++ b/libs/kstd/kstd/bits/format/string.hpp
@@ -72,7 +72,7 @@ namespace kstd
template<typename... Args>
struct format_string
{
- consteval format_string(std::string_view const & str) noexcept(false)
+ consteval format_string(std::string_view str) noexcept(false)
: str_view{str}
{
using namespace bits::format;
diff --git a/libs/kstd/kstd/bits/shared_ptr.hpp b/libs/kstd/kstd/bits/shared_ptr.hpp
index c3367967..1c1ae08c 100644
--- a/libs/kstd/kstd/bits/shared_ptr.hpp
+++ b/libs/kstd/kstd/bits/shared_ptr.hpp
@@ -417,7 +417,7 @@ namespace kstd
~enable_shared_from_this() = default;
- void internal_assign_ptr(shared_ptr<T> const & ptr) const
+ auto internal_assign_ptr(shared_ptr<T> const & ptr) const -> void
{
m_weak_this = ptr;
}
@@ -672,7 +672,7 @@ namespace kstd
//! Replace the managed object.
//!
//! @param ptr Pointer to a new object to manage.
- void reset(T * ptr = nullptr)
+ auto reset(T * ptr = nullptr) -> void
{
shared_ptr<T>(ptr).swap(*this);
}
@@ -680,7 +680,7 @@ namespace kstd
//! Exchange ownership of the object manages by this shared pointer and another one.
//!
//! @param other The shared pointer to swap ownership with.
- void swap(shared_ptr & other) noexcept
+ auto swap(shared_ptr & other) noexcept -> void
{
std::ranges::swap(m_pointer, other.m_pointer);
std::ranges::swap(m_control_block, other.m_control_block);