HString::Operator== 运算符

指示两个参数是否相等。

inline bool operator==(
               const HString& lhs, 
               const HString& rhs) throw()

inline bool operator==(
                const HString& lhs, 
                const HStringReference& rhs) throw()

inline bool operator==(
                const HStringReference& lhs, 
                const HString& rhs) throw()

inline bool operator==(
                 const HSTRING& lhs, 
                 const HString& rhs) throw()

inline bool operator==(
                 const HString& lhs, 
                 const HSTRING& rhs) throw()

参数

  • lhs
    要比较的第一个参数。 lhs 可以是 HStringReference 对象或 HSTRING 句柄。

  • rhs
    要比较的第二个参数。rhs 可以是 HStringReference 对象或 HSTRING 句柄。

返回值

如果 lhs 和 rhs 参数相等,则为 true;否则为 false。

要求

**标头:**corewrappers.h

**命名空间:**Microsoft::WRL::Wrappers

请参见

参考

HString 类