Tomographer  v5.3
Tomographer C++ Framework Documentation
Tomographer::Tools::hasOStreamOp< T > Struct Template Reference

Traits class to see whether an object exposes a "<<" operator overload for std::ostream. More...

#include <tomographer/tools/fmt.h>

Static Public Attributes

static constexpr bool value
 

Detailed Description

template<typename T>
struct Tomographer::Tools::hasOStreamOp< T >

Traits class to see whether an object exposes a "<<" operator overload for std::ostream.

Use the expression

to test whether a type T can be streamed into a std::ostream. This value is a compile-time boolean and can be used in template parameters.

Definition at line 199 of file fmt.h.

Member Data Documentation

§ value

template<typename T >
constexpr bool Tomographer::Tools::hasOStreamOp< T >::value
static
Initial value:
= (sizeof(tomo_internal::test_has_stream_op<T>(0))
== sizeof(typename tomo_internal::sfinae_yes<>::yes))

Definition at line 200 of file fmt.h.


The documentation for this struct was generated from the following file: