Unverified Commit 69d2e38f authored by Paul Fultz II's avatar Paul Fultz II Committed by GitHub
Browse files

Add missing has_op function (#704)

* Add missing has_op function

* Formatting
parent 406afeb8
......@@ -16,6 +16,8 @@ operation load_op(const std::string& name)
return at(op_map(), name, "Operator not found: " + name);
}
bool has_op(const std::string& name) { return op_map().count(name) == 1; }
std::vector<std::string> get_operators()
{
std::vector<std::string> result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment