载入中...
搜索中...
未找到
Vocabulary aliases for nullable and checked borrowed references. 更多...
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
类型定义 | |
| template<typename T > | |
| using | eve::OptionalRef = std::optional< std::reference_wrapper< T > > |
Optional borrowed reference; it does not extend T's lifetime. | |
| template<typename T > | |
| using | eve::ResultRef = Result< std::reference_wrapper< T > > |
Checked borrowed reference carried by Result; it does not own T. | |
详细描述
Vocabulary aliases for nullable and checked borrowed references.
These aliases express lookup results without implying ownership or extending the lifetime of the referenced object. The referenced object remains owned by its registry/container and must outlive the use of the returned value.
在文件 BorrowedRef.h 中定义.