| 204 | } |
| 205 | |
| 206 | ptrdiff_t ApplicationContext::ComponentHolder::convert_offset( |
| 207 | const Id* type) const noexcept { |
| 208 | auto iter = _convert_offset.find(type); |
| 209 | if (iter != _convert_offset.end()) { |
| 210 | return iter->second; |
| 211 | } |
| 212 | return PTRDIFF_MAX; |
| 213 | } |
| 214 | |
| 215 | BABYLON_NAMESPACE_END |