ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::hasPrintOperator Concept Reference

Define a generic concept whether an object can be piped to an ostream / cout. More...

#include <Acts/Utilities/StringHelpers.hpp>

Concept definition

template<typename ObjType>
concept Acts::hasPrintOperator = requires(const ObjType& obj, std::ostream& ostr) {
{ ostr << obj } -> std::same_as<std::ostream&>;
}
Define a generic concept whether an object can be piped to an ostream / cout.
Definition StringHelpers.hpp:34

Detailed Description

Define a generic concept whether an object can be piped to an ostream / cout.

Template Parameters
ObjTypeGeneric class type