API
Catch::Detail::IsStreamInsertable< T > Class Template Reference

#include <catch.hpp>

Collaboration diagram for Catch::Detail::IsStreamInsertable< T >:
Collaboration graph

Static Public Attributes

static const bool value = decltype(test<std::ostream, const T&>(0))::value
 

Static Private Member Functions

template<typename Stream , typename U >
static auto test (int) -> decltype(std::declval< Stream & >()<< std::declval< U >(), std::true_type())
 
template<typename , typename >
static auto test (...) -> std::false_type
 

Detailed Description

template<typename T>
class Catch::Detail::IsStreamInsertable< T >

Definition at line 1564 of file catch.hpp.

Member Function Documentation

◆ test() [1/2]

template<typename T >
template<typename , typename >
static auto Catch::Detail::IsStreamInsertable< T >::test (   ...) -> std::false_type
staticprivate

◆ test() [2/2]

template<typename T >
template<typename Stream , typename U >
static auto Catch::Detail::IsStreamInsertable< T >::test ( int  ) -> decltype(std::declval< Stream & >()<< std::declval< U >(), std::true_type())
staticprivate

Member Data Documentation

◆ value

template<typename T >
const bool Catch::Detail::IsStreamInsertable< T >::value = decltype(test<std::ostream, const T&>(0))::value
static

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