TIMPI
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TIMPI::casting_compare< Comp > Struct Template Reference

#include <timpi_assert.h>

Public Member Functions

template<typename T1 , typename T2 >
bool operator() (const T1 &e1, const T2 &e2) const
 
template<typename T1 >
bool operator() (const T1 &e1, const T1 &e2) const
 

Detailed Description

template<template< class > class Comp>
struct TIMPI::casting_compare< Comp >

Definition at line 135 of file timpi_assert.h.

Member Function Documentation

◆ operator()() [1/2]

template<template< class > class Comp>
template<typename T1 >
bool TIMPI::casting_compare< Comp >::operator() ( const T1 e1,
const T1 e2 
) const
inline

Definition at line 147 of file timpi_assert.h.

148 {
149 return Comp<T1>()(e1, e2);
150 }
Tnew cast_int(Told oldvar)

References TIMPI::cast_int().

◆ operator()() [2/2]

template<template< class > class Comp>
template<typename T1 , typename T2 >
bool TIMPI::casting_compare< Comp >::operator() ( const T1 e1,
const T2 e2 
) const
inline

Definition at line 138 of file timpi_assert.h.

139 {
140 typedef typename std::decay<T1>::type DT1;
141 typedef typename std::decay<T2>::type DT2;
142 return (Comp<DT2>()(static_cast<DT2>(e1), e2) &&
143 Comp<DT1>()(e1, static_cast<DT1>(e2)));
144 }

References TIMPI::cast_int().


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