mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Removing dependecy on CRT.
This commit is contained in:
@@ -28,13 +28,13 @@ int main()
|
||||
for (uint32_t jj = 0; jj < numElements; ++jj)
|
||||
{
|
||||
tinystl::pair<TinyStlUnorderedMap::iterator, bool> ok = map.insert(tinystl::make_pair(uint64_t(jj), uint16_t(jj) ) );
|
||||
assert(ok.second);
|
||||
assert(ok.second); BX_UNUSED(ok);
|
||||
}
|
||||
|
||||
for (uint32_t jj = 0; jj < numElements; ++jj)
|
||||
{
|
||||
bool ok = bx::mapRemove(map, uint64_t(jj) );
|
||||
assert(ok);
|
||||
assert(ok); BX_UNUSED(ok);
|
||||
}
|
||||
|
||||
assert(map.size() == 0);
|
||||
@@ -56,13 +56,13 @@ int main()
|
||||
for (uint32_t jj = 0; jj < numElements; ++jj)
|
||||
{
|
||||
std::pair<StdUnorderedMap::iterator, bool> ok = map.insert(std::make_pair(uint64_t(jj), uint16_t(jj) ) );
|
||||
assert(ok.second);
|
||||
assert(ok.second); BX_UNUSED(ok);
|
||||
}
|
||||
|
||||
for (uint32_t jj = 0; jj < numElements; ++jj)
|
||||
{
|
||||
bool ok = bx::mapRemove(map, uint64_t(jj) );
|
||||
assert(ok);
|
||||
assert(ok); BX_UNUSED(ok);
|
||||
}
|
||||
|
||||
assert(map.size() == 0);
|
||||
@@ -83,13 +83,13 @@ int main()
|
||||
for (uint32_t jj = 0; jj < numElements; ++jj)
|
||||
{
|
||||
bool ok = map.insert(jj, uint16_t(jj) );
|
||||
assert(ok);
|
||||
assert(ok); BX_UNUSED(ok);
|
||||
}
|
||||
|
||||
for (uint32_t jj = 0; jj < numElements; ++jj)
|
||||
{
|
||||
bool ok = map.removeByKey(uint64_t(jj) );
|
||||
assert(ok);
|
||||
assert(ok); BX_UNUSED(ok);
|
||||
}
|
||||
|
||||
assert(map.getNumElements() == 0);
|
||||
|
||||
Reference in New Issue
Block a user