libMesh
Public Member Functions | List of all members
libMesh::casting_compare< Comp > Struct Template Reference

#include <libmesh_common.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 libMesh::casting_compare< Comp >

Definition at line 336 of file libmesh_common.h.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 339 of file libmesh_common.h.

340  {
341  typedef typename std::decay<T1>::type DT1;
342  typedef typename std::decay<T2>::type DT2;
343  return (Comp<DT2>()(static_cast<DT2>(e1), e2) &&
344  Comp<DT1>()(e1, static_cast<DT1>(e2)));
345  }

◆ operator()() [2/2]

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

Definition at line 348 of file libmesh_common.h.

349  {
350  return Comp<T1>()(e1, e2);
351  }

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