aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
std::auxiliary_print_tuple__< N > Struct Template Reference

#include <utils_misc_tpl.h>

Static Public Member Functions

template<typename... T>
static std::enable_if<(N< sizeof...(T)) >::type print (std::ostream &os, const std::tuple< T... > &t)
 
template<typename... T>
static std::enable_if< !(N< sizeof...(T)) >::type print (std::ostream &, const std::tuple< T... > &)
 

Detailed Description

template<size_t N>
struct std::auxiliary_print_tuple__< N >

Definition at line 64 of file utils_misc_tpl.h.

Member Function Documentation

◆ print() [1/2]

template<size_t N>
template<typename... T>
static std::enable_if< (N < sizeof...(T)) >::type std::auxiliary_print_tuple__< N >::print ( std::ostream &  os,
const std::tuple< T... > &  t 
)
inlinestatic

Definition at line 67 of file utils_misc_tpl.h.

67  {
68  char quote
69  = (std::is_convertible< decltype(std::get< N >(t)), std::string >::value)
70  ? '"'
71  : 0;
72  os << ", " << quote << std::get< N >(t) << quote;
74  }
static std::enable_if<(N< sizeof...(T)) >::type print(std::ostream &os, const std::tuple< T... > &t)

◆ print() [2/2]

template<size_t N>
template<typename... T>
static std::enable_if< !(N < sizeof...(T)) >::type std::auxiliary_print_tuple__< N >::print ( std::ostream &  ,
const std::tuple< T... > &   
)
inlinestatic

Definition at line 77 of file utils_misc_tpl.h.

77 {}

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