libmesh解析
本工作只是尝试解析原libmesh的代码,供学习使用
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 
Public 成员函数 | 所有成员列表
libMesh::casting_compare< Comp > 模板结构体 参考

#include <libmesh_common.h>

Public 成员函数

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
 

详细描述

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

在文件 libmesh_common.h331 行定义.

成员函数说明

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

在文件 libmesh_common.h334 行定义.

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  }
template<template< class > class Comp>
template<typename T1 >
bool libMesh::casting_compare< Comp >::operator() ( const T1 &  e1,
const T1 &  e2 
) const
inline

在文件 libmesh_common.h343 行定义.

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

该结构体的文档由以下文件生成: