Template Function lsst::afw::typehandling::operator<<(std::ostream&, Key<K, V> const&)¶
Function Documentation¶
-
template<typename
K
, typenameV
>
std::ostream &operator<<
(std::ostream &os, Key<K, V> const &key) Output operator for Key.
The output will use C++ template notation for the key; for example, a key “foo” pointing to an
int
may print as"foo<int>"
.Provides basic exception safety if the output operator of
K
is exception-safe.- Return
a reference to
os
- Parameters
os
: the desired output streamkey
: the key to print
- Warning
the type name is compiler-specific and may be mangled or unintuitive; for example, some compilers say “i” instead of “int”