aGrUM  0.20.3
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 66 of file utils_misc_tpl.h.

67  {
68  char quote
69  = (std::is_convertible< decltype(std::get< N >(t)), std::string >::value) ? '"' : 0;
70  os << ", " << quote << std::get< N >(t) << quote;
72  }
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 74 of file utils_misc_tpl.h.

75  {}

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