piranha  0.10
Public Member Functions | List of all members
piranha::print_coefficient_impl< T, typename > Struct Template Reference

Default functor for piranha::print_coefficient(). More...

#include <piranha/print_coefficient.hpp>

Public Member Functions

template<typename U >
auto operator() (std::ostream &os, const U &cf) const -> decltype(os<< cf)
 Call operator. More...
 

Detailed Description

template<typename T, typename = void>
struct piranha::print_coefficient_impl< T, typename >

Default functor for piranha::print_coefficient().

This functor should be specialised via the std::enable_if mechanism.

Definition at line 45 of file print_coefficient.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename = void>
template<typename U >
auto piranha::print_coefficient_impl< T, typename >::operator() ( std::ostream &  os,
const U &  cf 
) const -> decltype(os << cf)
inline

Call operator.

Note
This operator is enabled only if the expression os << cf is well-formed.

The default call operator will print to stream the object.

Parameters
ostarget stream.
cfcoefficient to be printed.
Returns
the value returned by the stream insertion operator of U.
Exceptions
unspecifiedany exception thrown by printing cf to stream os.

Definition at line 61 of file print_coefficient.hpp.


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