#ifndef _GUM_GLYPH_STYLE_ID_H_
#define _GUM_GLYPH_STYLE_ID_H_

#include "gum/GlyphStyle.h"

#include <cu/cu_macro.h>
#include <cu/cu_stl.h>

namespace gum
{

class GlyphStyle;

class GlyphStyleID
{
public:
	int Gen(const GlyphStyle& style);

private:
	static int Hash(const GlyphStyle& style);

private:
	static const int HASH_CAP = 197;

private:
	int m_next_id;
	std::vector<std::pair<GlyphStyle, int> > m_hash[HASH_CAP];

 	std::pair<GlyphStyle, int> m_last;
	
	CU_SINGLETON_DECLARATION(GlyphStyleID)

}; // GlyphStyleID

}

#endif // _GUM_GLYPH_STYLE_ID_H_
#ifndef _GUM_GLYPH_STYLE_ID_H_
#define _GUM_GLYPH_STYLE_ID_H_

#include "gum/GlyphStyle.h"

#include <cu/cu_macro.h>
#include <cu/cu_stl.h>

namespace gum
{

class GlyphStyle;

class GlyphStyleID
{
public:
	int Gen(const GlyphStyle& style);

private:
	static int Hash(const GlyphStyle& style);

private:
	static const int HASH_CAP = 197;

private:
	int m_next_id;
	CU_VEC<std::pair<GlyphStyle, int> > m_hash[HASH_CAP];

 	std::pair<GlyphStyle, int> m_last;
	
	CU_SINGLETON_DECLARATION(GlyphStyleID)

}; // GlyphStyleID

}

#endif // _GUM_GLYPH_STYLE_ID_H_
Revert "[FIXED] not use allocator, for async draw"
Revert "[FIXED] not use allocator, for async draw"

This reverts commit 3cce0321da141d1fb8689d826fd5f5235066c977.
