NASA Logo
Ocean Color Science Software

ocssw V2022
PrintDebug.hpp File Reference
#include <iostream>
Include dependency graph for PrintDebug.hpp:

Go to the source code of this file.

Classes

struct  iterator_trait< T, typename >
 
struct  iterator_trait< T, std::void_t< typename T::container_type > >
 

Functions

template<typename T , typename U >
std::ostream & operator<< (std::ostream &os, const std::pair< T, U > &data) noexcept
 
template<typename T , std::enable_if_t< is_iterable< T >, bool > = true>
std::ostream & operator<< (std::ostream &os, const T &data) noexcept
 
void print (std::ostream &stream, const char *format)
 
template<typename T , typename... Targs>
void print (std::ostream &stream, const char *format, T &&value, Targs &&... fargs)
 
void print (const char *format)
 
template<typename T , typename... Targs>
void print (const char *format, T &&value, Targs &&... fargs)
 

Variables

template<typename , typename = void>
constexpr bool is_iterable {}
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
const std::pair< T, U > &  data 
)
noexcept

Definition at line 13 of file PrintDebug.hpp.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const T &  data 
)
noexcept

Definition at line 19 of file PrintDebug.hpp.

◆ print() [1/4]

void print ( const char *  format)
inline

Definition at line 53 of file PrintDebug.hpp.

◆ print() [2/4]

void print ( const char *  format,
T &&  value,
Targs &&...  fargs 
)

Definition at line 56 of file PrintDebug.hpp.

◆ print() [3/4]

void print ( std::ostream &  stream,
const char *  format 
)
inline

Definition at line 38 of file PrintDebug.hpp.

◆ print() [4/4]

void print ( std::ostream &  stream,
const char *  format,
T &&  value,
Targs &&...  fargs 
)

Definition at line 41 of file PrintDebug.hpp.

Variable Documentation

◆ is_iterable

constexpr bool is_iterable {}
constexpr

Definition at line 5 of file PrintDebug.hpp.