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 331 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 334 of file libmesh_common.h.

335  {
336  typedef typename std::decay<T1>::type DT1;
337  typedef typename std::decay<T2>::type DT2;
338  return (Comp<DT2>()(static_cast<DT2>(e1), e2) &&
339  Comp<DT1>()(e1, static_cast<DT1>(e2)));
340  }

◆ 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 343 of file libmesh_common.h.

344  {
345  return Comp<T1>()(e1, e2);
346  }

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