| 501 | /// Unsafely find and get the exported instance by name. |
| 502 | template <typename T> |
| 503 | std::enable_if_t<IsEntityV<T>, T *> |
| 504 | unsafeFindExports(const std::map<std::string, T *, std::less<>> &Map, |
| 505 | std::string_view ExtName) const noexcept { |
| 506 | auto Iter = Map.find(ExtName); |
| 507 | if (likely(Iter != Map.cend())) { |
| 508 | return Iter->second; |
| 509 | } |
| 510 | return nullptr; |
| 511 | } |
| 512 | |
| 513 | /// \name Data for compiled functions. |
| 514 | /// @{ |
no test coverage detected