modify something

This commit is contained in:
CupWater
2026-08-18 13:55:04 +08:00
parent 693db85e3b
commit c7d4b87d3e
15 changed files with 51 additions and 46 deletions
+4 -5
View File
@@ -1,7 +1,7 @@
#ifndef FEATHERLOG_LOG_MESSAGE_FLAG_HPP
#define FEATHERLOG_LOG_MESSAGE_FLAG_HPP
#pragma once
#include <array>
#include <limits>
namespace flog
{
@@ -21,12 +21,11 @@ namespace flog
_NODISCARD bool isFull() const noexcept { return flagCount >= std::numeric_limits<MessageFlag>::digits; }
_NODISCARD bool pushable() const noexcept { return !isFull(); }
_NODISCARD bool isEmpty() const noexcept { return flagCount == 0; }
// _NODISCARD
_NODISCARD bool contains(std::string_view name) const noexcept;
private:
std::array<std::string, std::numeric_limits<MessageFlag>::digits> m_flagMap{};
size_t flagCount { 0 };
};
}
#endif