20ย years, 6ย months ago
Domain Expertise
Highlights
Community contributions featuredQuote:Original post by bubu LVI usually do this with #define macro:#define foundInMap(Map, Key) ((Map).find(Key)!=(Map).end())How about... ?template<typename Map, typename Keโฆ
20ย years, 6ย months ago
21ย years ago
Also see Generalizing Observer by Herb Sutter
21ย years ago
21ย years ago
Put in two lines before the loopsassert(m_pTileMap.size() == m_TileMapWidth);for (int i = 0; i < m_TileMapHeight; i++ ){ for (int j = 0; j < m_TileMapWidth; j++ ) { assertโฆ
21ย years ago
Latest Activity
See all in DiscussionsQuote:Original post by bubu LVI usually do this with #define macro:#define foundInMap(Map, Key) ((Map).find(Key)!=(Map).end())How about... ?template<typename Map, typename Key>bool MapContainsKe
20ย years, 6ย months ago
Also see Generalizing Observer by Herb Sutter
21ย years ago
Put in two lines before the loopsassert(m_pTileMap.size() == m_TileMapWidth);for (int i = 0; i < m_TileMapHeight; i++ ){ for (int โฆ
21ย years ago