use Contains instead of IsMember/IsExist
This commit is contained in:
parent
530eca8461
commit
1e226289d5
@ -1,7 +1,7 @@
|
|||||||
#include<hgl/type/IDName.h>
|
#include<hgl/type/IDName.h>
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
|
|
||||||
void main()
|
int main(int,char **)
|
||||||
{
|
{
|
||||||
using namespace hgl;
|
using namespace hgl;
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ void main()
|
|||||||
AnsiIDName id4("id2");
|
AnsiIDName id4("id2");
|
||||||
|
|
||||||
AnsiIDName id5("id1");
|
AnsiIDName id5("id1");
|
||||||
AnsiIDName id6("id1");
|
AnsiIDName id6("id2");
|
||||||
|
|
||||||
std::cout<<id5.GetID()<<":"<<id5.GetName()<<", ClassID: "<<std::hex<<id5.GetClassID()<<std::endl;
|
std::cout<<id5.GetID()<<":"<<id5.GetName()<<", ClassID: "<<std::hex<<id5.GetClassID()<<std::endl;
|
||||||
std::cout<<id6.GetID()<<":"<<id6.GetName()<<", ClassID: "<<std::hex<<id6.GetClassID()<<std::endl;
|
std::cout<<id6.GetID()<<":"<<id6.GetName()<<", ClassID: "<<std::hex<<id6.GetClassID()<<std::endl;
|
||||||
|
@ -49,7 +49,7 @@ void IntMapTest()
|
|||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
index=rand()%MAX_COUNT;
|
index=rand()%MAX_COUNT;
|
||||||
if(!int_sets.IsMember(index))break;
|
if(!int_sets.Contains(index))break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int_sets.Add(index);
|
int_sets.Add(index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user