YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
yobject.cpp
浏览该文件的文档.
1 /*
2  © 2009-2013 FrankHB.
3 
4  This file is part of the YSLib project, and may only be used,
5  modified, and distributed under the terms of the YSLib project
6  license, LICENSE.TXT. By continuing to use, modify, or distribute
7  this file you indicate that you have read the license and
8  understand and accept it fully.
9 */
10 
28 #include "YSLib/Core/YModules.h"
29 #include YFM_YSLib_Core_YObject
30 
31 namespace YSLib
32 {
33 
34 bool
35 ValueObject::operator==(const ValueObject& vo) const
36 {
37  const auto x(content.get_holder());
38  const auto y(vo.content.get_holder());
39 
40  return x && y && x->type() == y->type() ? static_cast<const IValueHolder&>(
41  *x) == static_cast<const IValueHolder&>(*y) : false;
42 }
43 
44 } // namespace YSLib;
45 
ystdex::any content
Definition: yobject.h:285
any_ops::holder * get_holder() const
Definition: any.cpp:62
bool operator==(nullptr_t lhs, const _type &rhs)
Definition: ydef.h:625