All pastes #2125946 Raw Edit

Untitled

public cpp v1 · immutable
#2125946 ·published 2012-03-07 18:47 UTC
rendered paste body
struct Glpyh{	uint32_t CodePoint;	uint32_t Size;	bool Bold;	bool Italic;	Glpyh(uint32_t codePoint, uint32_t size, bool bold, bool italic);};bool operator<(const Glyph& g1, const Glyph& g2){	if (g1.CodePoint == g2.CodePoint)	{		if (g1.Size == g2.Size)		{			if (g1.Bold == g2.Bold)			{				if (g1.Italic == g2.Italic)				{					return false;				}				return !g1.Italic;			}			return !g1.Bold;		}		return g1.Size < g2.Size;	}	return g1.CodePoint < g2.CodePoint;}