Check if any operations of a type exist.
- Template Parameters
-
| OpClass | Operation class type to check |
- Returns
- true if at least one exists
Definition at line 321 of file OperationPool.hpp.
322 {
323 std::shared_lock lock(
m_mutex);
324
325 std::type_index target_type(typeid(OpClass));
326
328 [target_type](const auto& pair) {
329 return pair.second.type == target_type;
330 });
331 }
std::shared_mutex m_mutex
std::unordered_map< std::string, PooledOperationInfo > m_info
References m_info, and m_mutex.