Null uuid_t 常量或函数?
Null uuid_t constant or function?
在POSIX中是否有一个空的uuid_t
常量或函数可以return一个空的uuid_t
?
我有一个函数在失败时应该 return 一个空值 uuid_t
,因此我需要 generate/return 一个空值 uuid_t
...
uuid_t getComponent(const string& name)
{
if (components.find(name) == components.end())
// return null uuid_t
return components[name];
}
你试过了吗uuid_clear()?
描述:
The uuid_clear function sets the value of the supplied uuid variable
uu to the NULL value.
uuid_clear(uuid);
在POSIX中是否有一个空的uuid_t
常量或函数可以return一个空的uuid_t
?
我有一个函数在失败时应该 return 一个空值 uuid_t
,因此我需要 generate/return 一个空值 uuid_t
...
uuid_t getComponent(const string& name)
{
if (components.find(name) == components.end())
// return null uuid_t
return components[name];
}
你试过了吗uuid_clear()?
描述:
The uuid_clear function sets the value of the supplied uuid variable uu to the NULL value.
uuid_clear(uuid);