Skip to content
Snippets Groups Projects
Commit d6726837 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Add operator<<() for Location.

parent fcea8788
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,13 @@ inline bool operator<(const Location& left, const Location& right)
return left.item_id < right.item_id;
}
inline std::ostream& operator<<(std::ostream& os, Location const& l)
{
return os << "(" << l.mesh_id
<< ", " << l.item_type
<< ", " << l.item_id
<< ")";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment