Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
std::hash< impeller::Glyph > Struct Reference

#include <glyph.h>

Public Member Functions

constexpr std::size_t operator() (const impeller::Glyph &g) const
 

Detailed Description

Definition at line 39 of file glyph.h.

Member Function Documentation

◆ operator()()

constexpr std::size_t std::hash< impeller::Glyph >::operator() ( const impeller::Glyph g) const
inlineconstexpr

Definition at line 40 of file glyph.h.

40 {
41 static_assert(sizeof(g.index) == 2);
42 static_assert(sizeof(g.type) == 1);
43 return (static_cast<size_t>(g.type) << 16) | g.index;
44 }
uint16_t index
Definition: glyph.h:22
Type type
Whether the glyph is a path or a bitmap.
Definition: glyph.h:27

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