common: Common namespace for the slot vector container

This commit is contained in:
psucien 2024-06-18 14:05:11 +02:00
parent cee55355bf
commit 8475a62a46
5 changed files with 10 additions and 10 deletions

View file

@ -12,7 +12,7 @@
#include "common/assert.h"
#include "common/types.h"
namespace VideoCore {
namespace Common {
struct SlotId {
static constexpr u32 INVALID_INDEX = std::numeric_limits<u32>::max();
@ -162,11 +162,11 @@ private:
std::vector<u32> free_list;
};
} // namespace VideoCore
} // namespace Common
template <>
struct std::hash<VideoCore::SlotId> {
std::size_t operator()(const VideoCore::SlotId& id) const noexcept {
struct std::hash<Common::SlotId> {
std::size_t operator()(const Common::SlotId& id) const noexcept {
return std::hash<u32>{}(id.index);
}
};