Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
std::hash< PhosphorEngine::PlacementStateKey > Struct Reference

std::hash alongside qHash, so the key works in a std:: container too. More...

#include <phosphor-engine/include/PhosphorEngine/EngineTypes.h>

Public Member Functions

size_t operator() (const PhosphorEngine::PlacementStateKey &key) const noexcept
 

Detailed Description

std::hash alongside qHash, so the key works in a std:: container too.

Needed where a value is move-only: Qt's containers are implicitly shared and require copyable values, so anything owning a unique_ptr cannot live in a QHash.

Member Function Documentation

◆ operator()()

size_t std::hash< PhosphorEngine::PlacementStateKey >::operator() ( const PhosphorEngine::PlacementStateKey key) const
inlinenoexcept

The documentation for this struct was generated from the following file: